1*9880d681SAndroid Build Coastguard Worker //===-- Lanai.h - Top-level interface for Lanai representation --*- C++ -*-===// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker // 10*9880d681SAndroid Build Coastguard Worker // This file contains the entry points for global functions defined in the LLVM 11*9880d681SAndroid Build Coastguard Worker // Lanai back-end. 12*9880d681SAndroid Build Coastguard Worker // 13*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_TARGET_LANAI_LANAI_H 16*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_TARGET_LANAI_LANAI_H 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker #include "LanaiAluCode.h" 19*9880d681SAndroid Build Coastguard Worker #include "LanaiCondCode.h" 20*9880d681SAndroid Build Coastguard Worker #include "MCTargetDesc/LanaiBaseInfo.h" 21*9880d681SAndroid Build Coastguard Worker #include "MCTargetDesc/LanaiMCTargetDesc.h" 22*9880d681SAndroid Build Coastguard Worker #include "llvm/CodeGen/ISDOpcodes.h" 23*9880d681SAndroid Build Coastguard Worker #include "llvm/Target/TargetMachine.h" 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Worker namespace llvm { 26*9880d681SAndroid Build Coastguard Worker class FunctionPass; 27*9880d681SAndroid Build Coastguard Worker class LanaiTargetMachine; 28*9880d681SAndroid Build Coastguard Worker class MachineFunctionPass; 29*9880d681SAndroid Build Coastguard Worker class TargetMachine; 30*9880d681SAndroid Build Coastguard Worker class formatted_raw_ostream; 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Worker // createLanaiISelDag - This pass converts a legalized DAG into a 33*9880d681SAndroid Build Coastguard Worker // Lanai-specific DAG, ready for instruction scheduling. 34*9880d681SAndroid Build Coastguard Worker FunctionPass *createLanaiISelDag(LanaiTargetMachine &TM); 35*9880d681SAndroid Build Coastguard Worker 36*9880d681SAndroid Build Coastguard Worker // createLanaiDelaySlotFillerPass - This pass fills delay slots 37*9880d681SAndroid Build Coastguard Worker // with useful instructions or nop's 38*9880d681SAndroid Build Coastguard Worker FunctionPass *createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM); 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Worker // createLanaiMemAluCombinerPass - This pass combines loads/stores and 41*9880d681SAndroid Build Coastguard Worker // arithmetic operations. 42*9880d681SAndroid Build Coastguard Worker FunctionPass *createLanaiMemAluCombinerPass(); 43*9880d681SAndroid Build Coastguard Worker 44*9880d681SAndroid Build Coastguard Worker // createLanaiSetflagAluCombinerPass - This pass combines SET_FLAG and ALU 45*9880d681SAndroid Build Coastguard Worker // operations. 46*9880d681SAndroid Build Coastguard Worker FunctionPass *createLanaiSetflagAluCombinerPass(); 47*9880d681SAndroid Build Coastguard Worker 48*9880d681SAndroid Build Coastguard Worker extern Target TheLanaiTarget; 49*9880d681SAndroid Build Coastguard Worker } // namespace llvm 50*9880d681SAndroid Build Coastguard Worker 51*9880d681SAndroid Build Coastguard Worker #endif // LLVM_LIB_TARGET_LANAI_LANAI_H 52