LLVM API Documentation
#include <SelectionDAGISel.h>
Definition at line 43 of file SelectionDAGISel.h.
| SelectionDAGISel::SelectionDAGISel | ( | TargetMachine & | tm, | |
| CodeGenOpt::Level | OL = CodeGenOpt::Default | |||
| ) | [explicit] |
Definition at line 270 of file SelectionDAGISel.cpp.
| SelectionDAGISel::~SelectionDAGISel | ( | ) | [virtual] |
| TargetLowering& llvm::SelectionDAGISel::getTargetLowering | ( | ) | [inline] |
Definition at line 62 of file SelectionDAGISel.h.
References TLI.
Referenced by llvm::createDefaultScheduler().
| void SelectionDAGISel::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [virtual] |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
For MachineFunctionPasses, calling AU.preservesCFG() indicates that the pass does not modify the MachineBasicBlock CFG.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 290 of file SelectionDAGISel.cpp.
References llvm::AnalysisUsage::addPreserved(), llvm::AnalysisUsage::addRequired(), and llvm::MachineFunctionPass::getAnalysisUsage().
| bool SelectionDAGISel::runOnMachineFunction | ( | MachineFunction & | MF | ) | [virtual] |
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis.
Implements llvm::MachineFunctionPass.
Definition at line 300 of file SelectionDAGISel.cpp.
References AA, llvm::Function::begin(), llvm::FunctionLoweringInfo::CatchInfoFound, llvm::FunctionLoweringInfo::CatchInfoLost, llvm::FunctionLoweringInfo::clear(), CurDAG, DEBUG, DW, E, EmitLiveInCopies(), llvm::EnableFastISel, EnableFastISelAbort, EnableFastISelVerbose, llvm::Function::end(), llvm::errs(), FuncInfo, llvm::MachineFunction::getFunction(), llvm::TargetMachine::getInstrInfo(), llvm::Value::getName(), llvm::TargetMachine::getRegisterInfo(), GFI, llvm::Function::hasGC(), llvm::SelectionDAGLowering::init(), llvm::SelectionDAG::init(), llvm::MachineRegisterInfo::livein_begin(), llvm::MachineRegisterInfo::livein_end(), llvm::FunctionLoweringInfo::MBBMap, MF, MMI, RegInfo, SDL, llvm::FunctionLoweringInfo::set(), TII, TM, and TRI.
Definition at line 286 of file SelectionDAGISel.cpp.
References llvm::MachineRegisterInfo::createVirtualRegister(), llvm::TargetLowering::getRegClassFor(), RegInfo, and TLI.
| virtual void llvm::SelectionDAGISel::EmitFunctionEntryCode | ( | Function & | Fn, | |
| MachineFunction & | MF | |||
| ) | [inline, virtual] |
Definition at line 70 of file SelectionDAGISel.h.
| virtual void llvm::SelectionDAGISel::InstructionSelect | ( | ) | [pure virtual] |
| void llvm::SelectionDAGISel::SelectRootInit | ( | ) | [inline] |
Definition at line 73 of file SelectionDAGISel.h.
References llvm::SelectionDAG::AssignTopologicalOrder(), CurDAG, and DAGSize.
| virtual bool llvm::SelectionDAGISel::SelectInlineAsmMemoryOperand | ( | const SDValue & | Op, | |
| char | ConstraintCode, | |||
| std::vector< SDValue > & | OutOps | |||
| ) | [inline, virtual] |
SelectInlineAsmMemoryOperand - Select the specified address as a target addressing mode, according to the specified constraint code. If this does not match or is not implemented, return true. The resultant operands (which will appear in the machine instruction) should be added to the OutOps vector.
Definition at line 82 of file SelectionDAGISel.h.
Referenced by SelectInlineAsmMemoryOperands().
| bool SelectionDAGISel::IsLegalAndProfitableToFold | ( | SDNode * | N, | |
| SDNode * | U, | |||
| SDNode * | Root | |||
| ) | const [virtual] |
IsLegalAndProfitableToFold - Returns true if the specific operand node N of U can be folded during instruction selection that starts at Root and folding N is profitable.
IsLegalAndProfitableToFold - Returns true if the specific operand node N of U can be folded during instruction selection that starts at Root and folding N is profitable.
Definition at line 1192 of file SelectionDAGISel.cpp.
References findFlagUse(), llvm::MVT::Flag, llvm::SDNode::getNumValues(), llvm::SDNode::getValueType(), isNonImmUse(), llvm::CodeGenOpt::None, OptLevel, and VT.
| ScheduleHazardRecognizer * SelectionDAGISel::CreateTargetHazardRecognizer | ( | ) | [virtual] |
CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer to use for this target when scheduling the DAG.
Definition at line 1017 of file SelectionDAGISel.cpp.
Referenced by llvm::createTDListDAGScheduler().
| void SelectionDAGISel::SelectInlineAsmMemoryOperands | ( | std::vector< SDValue > & | Ops | ) | [protected] |
SelectInlineAsmMemoryOperands - Calls to this are automatically generated by tblgen. Others should not call it.
SelectInlineAsmMemoryOperands - Calls to this are automatically generated by tblgen. Others should not call it.
Definition at line 1093 of file SelectionDAGISel.cpp.
References CurDAG, llvm::MVT::Flag, llvm::InlineAsm::getNumOperandRegisters(), llvm::TargetLowering::getPointerTy(), llvm::SelectionDAG::getTargetConstant(), llvm::llvm_report_error(), SelectInlineAsmMemoryOperand(), std::swap(), and TLI.
| bool SelectionDAGISel::CheckAndMask | ( | SDValue | LHS, | |
| ConstantSDNode * | RHS, | |||
| int64_t | DesiredMaskS | |||
| ) | const [protected] |
CheckAndMask - The isel is trying to match something like (and X, 255). If the dag combiner simplified the 255, we still want to match. RHS is the actual value in the DAG on the RHS of an AND, and DesiredMaskS is the value specified in the .td file (e.g. 255).
Definition at line 1030 of file SelectionDAGISel.cpp.
References CurDAG, llvm::ConstantSDNode::getAPIntValue(), llvm::SDValue::getValueSizeInBits(), llvm::APInt::intersects(), and llvm::SelectionDAG::MaskedValueIsZero().
| bool SelectionDAGISel::CheckOrMask | ( | SDValue | LHS, | |
| ConstantSDNode * | RHS, | |||
| int64_t | DesiredMaskS | |||
| ) | const [protected] |
CheckOrMask - The isel is trying to match something like (or X, 255). If the dag combiner simplified the 255, we still want to match. RHS is the actual value in the DAG on the RHS of an OR, and DesiredMaskS is the value specified in the .td file (e.g. 255).
Definition at line 1059 of file SelectionDAGISel.cpp.
References llvm::SelectionDAG::ComputeMaskedBits(), CurDAG, llvm::ConstantSDNode::getAPIntValue(), llvm::SDValue::getValueSizeInBits(), and llvm::APInt::intersects().
Definition at line 45 of file SelectionDAGISel.h.
Referenced by llvm::createBURRListDAGScheduler(), llvm::createTDRRListDAGScheduler(), and runOnMachineFunction().
Definition at line 46 of file SelectionDAGISel.h.
Referenced by getTargetLowering(), MakeReg(), and SelectInlineAsmMemoryOperands().
Definition at line 47 of file SelectionDAGISel.h.
Referenced by runOnMachineFunction(), and ~SelectionDAGISel().
Definition at line 48 of file SelectionDAGISel.h.
Referenced by llvm::createBURRListDAGScheduler(), llvm::createFastDAGScheduler(), llvm::createTDListDAGScheduler(), llvm::createTDRRListDAGScheduler(), and runOnMachineFunction().
Definition at line 49 of file SelectionDAGISel.h.
Referenced by MakeReg(), and runOnMachineFunction().
Definition at line 50 of file SelectionDAGISel.h.
Referenced by CheckAndMask(), CheckOrMask(), runOnMachineFunction(), SelectInlineAsmMemoryOperands(), SelectRootInit(), and ~SelectionDAGISel().
Definition at line 51 of file SelectionDAGISel.h.
Referenced by runOnMachineFunction(), and ~SelectionDAGISel().
Definition at line 52 of file SelectionDAGISel.h.
char SelectionDAGISel::ID = 0 [static] |
Definition at line 56 of file SelectionDAGISel.h.
unsigned llvm::SelectionDAGISel::DAGSize [protected] |
DAGSize - Size of DAG being instruction selected.
Definition at line 101 of file SelectionDAGISel.h.
Referenced by SelectRootInit().