LLVM
8.0.1
|
#include "Target/Hexagon/HexagonISelDAGToDAG.h"
Public Member Functions | |
HexagonDAGToDAGISel (HexagonTargetMachine &tm, CodeGenOpt::Level OptLevel) | |
bool | runOnMachineFunction (MachineFunction &MF) override |
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis. More... | |
bool | ComplexPatternFuncMutatesDAG () const override |
Return true if complex patterns for this target can mutate the DAG. More... | |
void | PreprocessISelDAG () override |
PreprocessISelDAG - This hook allows targets to hack on the graph before instruction selection starts. More... | |
void | EmitFunctionEntryCode () override |
void | Select (SDNode *N) override |
Main hook for targets to transform nodes into machine nodes. More... | |
bool | SelectAddrGA (SDValue &N, SDValue &R) |
bool | SelectAddrGP (SDValue &N, SDValue &R) |
bool | SelectAnyImm (SDValue &N, SDValue &R) |
bool | SelectAnyInt (SDValue &N, SDValue &R) |
bool | SelectAnyImmediate (SDValue &N, SDValue &R, uint32_t LogAlign) |
bool | SelectGlobalAddress (SDValue &N, SDValue &R, bool UseGP, uint32_t LogAlign) |
bool | SelectAddrFI (SDValue &N, SDValue &R) |
bool | DetectUseSxtw (SDValue &N, SDValue &R) |
bool | SelectAnyImm0 (SDValue &N, SDValue &R) |
bool | SelectAnyImm1 (SDValue &N, SDValue &R) |
bool | SelectAnyImm2 (SDValue &N, SDValue &R) |
bool | SelectAnyImm3 (SDValue &N, SDValue &R) |
StringRef | getPassName () const override |
getPassName - Return a nice clean name for a pass. More... | |
MachineSDNode * | LoadInstrForLoadIntrinsic (SDNode *IntN) |
SDNode * | StoreInstrForLoadIntrinsic (MachineSDNode *LoadN, SDNode *IntN) |
void | SelectFrameIndex (SDNode *N) |
bool | SelectInlineAsmMemoryOperand (const SDValue &Op, unsigned ConstraintID, std::vector< SDValue > &OutOps) override |
SelectInlineAsmMemoryOperand - Implement addressing mode selection for inline asm expressions. More... | |
bool | tryLoadOfLoadIntrinsic (LoadSDNode *N) |
bool | SelectBrevLdIntrinsic (SDNode *IntN) |
bool | SelectNewCircIntrinsic (SDNode *IntN) |
Generate a machine instruction node for the new circlar buffer intrinsics. More... | |
void | SelectLoad (SDNode *N) |
void | SelectIndexedLoad (LoadSDNode *LD, const SDLoc &dl) |
void | SelectIndexedStore (StoreSDNode *ST, const SDLoc &dl) |
void | SelectStore (SDNode *N) |
void | SelectSHL (SDNode *N) |
void | SelectZeroExtend (SDNode *N) |
void | SelectIntrinsicWChain (SDNode *N) |
void | SelectIntrinsicWOChain (SDNode *N) |
void | SelectConstant (SDNode *N) |
void | SelectConstantFP (SDNode *N) |
void | SelectV65Gather (SDNode *N) |
void | SelectV65GatherPred (SDNode *N) |
void | SelectHVXDualOutput (SDNode *N) |
void | SelectAddSubCarry (SDNode *N) |
void | SelectVAlign (SDNode *N) |
void | SelectVAlignAddr (SDNode *N) |
void | SelectTypecast (SDNode *N) |
void | SelectP2D (SDNode *N) |
void | SelectD2P (SDNode *N) |
void | SelectQ2V (SDNode *N) |
void | SelectV2Q (SDNode *N) |
Public Member Functions inherited from llvm::SelectionDAGISel | |
SelectionDAGISel (TargetMachine &tm, CodeGenOpt::Level OL=CodeGenOpt::Default) | |
~SelectionDAGISel () override | |
const TargetLowering * | getTargetLowering () const |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this. More... | |
virtual void | PostprocessISelDAG () |
PostprocessISelDAG() - This hook allows the target to hack on the graph right after selection. More... | |
virtual bool | IsProfitableToFold (SDValue N, SDNode *U, SDNode *Root) const |
IsProfitableToFold - Returns true if it's profitable to fold the specific operand node N of U during instruction selection that starts at Root. More... | |
bool | CheckAndMask (SDValue LHS, ConstantSDNode *RHS, int64_t DesiredMaskS) const |
CheckAndMask - The isel is trying to match something like (and X, 255). More... | |
bool | CheckOrMask (SDValue LHS, ConstantSDNode *RHS, int64_t DesiredMaskS) const |
CheckOrMask - The isel is trying to match something like (or X, 255). More... | |
virtual bool | CheckPatternPredicate (unsigned PredNo) const |
CheckPatternPredicate - This function is generated by tblgen in the target. More... | |
virtual bool | CheckNodePredicate (SDNode *N, unsigned PredNo) const |
CheckNodePredicate - This function is generated by tblgen in the target. More... | |
virtual bool | CheckNodePredicateWithOperands (SDNode *N, unsigned PredNo, const SmallVectorImpl< SDValue > &Operands) const |
CheckNodePredicateWithOperands - This function is generated by tblgen in the target. More... | |
virtual bool | CheckComplexPattern (SDNode *Root, SDNode *Parent, SDValue N, unsigned PatternNo, SmallVectorImpl< std::pair< SDValue, SDNode *> > &Result) |
virtual SDValue | RunSDNodeXForm (SDValue V, unsigned XFormNo) |
void | SelectCodeCommon (SDNode *NodeToMatch, const unsigned char *MatcherTable, unsigned TableSize) |
bool | isOrEquivalentToAdd (const SDNode *N) const |
Public Member Functions inherited from llvm::MachineFunctionPass | |
bool | doInitialization (Module &) override |
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before any pass is run. More... | |
Public Member Functions inherited from llvm::FunctionPass | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &OS, const std::string &Banner) const override |
createPrinterPass - Get a function printer pass. More... | |
void | assignPassManager (PMStack &PMS, PassManagerType T) override |
Find appropriate Function Pass Manager or Call Graph Pass Manager in the PM Stack and add self into that manager. More... | |
PassManagerType | getPotentialPassManagerType () const override |
Return what kind of Pass Manager can manage this pass. More... | |
Public Member Functions inherited from llvm::Pass | |
Pass (PassKind K, char &pid) | |
Pass (const Pass &)=delete | |
Pass & | operator= (const Pass &)=delete |
virtual | ~Pass () |
PassKind | getPassKind () const |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual bool | doFinalization (Module &) |
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes have run. More... | |
virtual void | print (raw_ostream &OS, const Module *M) const |
print - Print out the internal state of the pass. More... | |
void | dump () const |
virtual void | preparePassManager (PMStack &) |
Check if available pass managers are suitable for this pass or not. More... | |
void | setResolver (AnalysisResolver *AR) |
AnalysisResolver * | getResolver () const |
virtual void | releaseMemory () |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. More... | |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
getAdjustedAnalysisPointer - This method is used when a pass implements an analysis interface through multiple inheritance. More... | |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information. More... | |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to get analysis information that might be around, for example to update it. More... | |
bool | mustPreserveAnalysisID (char &AID) const |
mustPreserveAnalysisID - This method serves the same function as getAnalysisIfAvailable, but works if you just have an AnalysisID. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Friends | |
struct | HvxSelector |
Definition at line 31 of file HexagonISelDAGToDAG.h.
|
inlineexplicit |
Definition at line 36 of file HexagonISelDAGToDAG.h.
|
inlineoverridevirtual |
Return true if complex patterns for this target can mutate the DAG.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 50 of file HexagonISelDAGToDAG.h.
References DetectUseSxtw(), EmitFunctionEntryCode(), N, PreprocessISelDAG(), Select(), SelectAddrFI(), SelectAddrGA(), SelectAddrGP(), SelectAnyImm(), SelectAnyImm0(), SelectAnyImm1(), SelectAnyImm2(), SelectAnyImm3(), SelectAnyImmediate(), SelectAnyInt(), and SelectGlobalAddress().
Definition at line 1414 of file HexagonISelDAGToDAG.cpp.
References llvm::ISD::AND, llvm::ISD::ANY_EXTEND, assert(), llvm::ISD::AssertSext, llvm::ISD::AssertZext, C, CheckSingleUse, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::MachineFrameInfo::estimateStackSize(), llvm::MemSDNode::getAlignment(), llvm::LoadSDNode::getExtensionType(), llvm::MachineFunction::getFrameInfo(), llvm::SelectionDAG::getMachineNode(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getOpcode(), llvm::SDNode::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::EVT::getSizeInBits(), llvm::EVT::getStoreSize(), llvm::SelectionDAG::getTargetConstant(), llvm::SDValue::getValueType(), llvm::VTSDNode::getVT(), llvm::SDNode::hasOneUse(), llvm::MVT::i32, llvm::MVT::i64, llvm::isInt< 16 >(), llvm::EVT::isInteger(), llvm::ISD::LOAD, llvm::BitmaskEnumDetail::Mask(), llvm::SelectionDAGISel::MF, N, llvm::ISD::OR, llvm::ISD::SEXTLOAD, llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SRA, llvm::ISD::XOR, and llvm::ISD::ZERO_EXTEND.
Referenced by ComplexPatternFuncMutatesDAG().
|
overridevirtual |
Reimplemented from llvm::SelectionDAGISel.
Definition at line 1259 of file HexagonISelDAGToDAG.cpp.
References llvm::BuildMI(), llvm::FunctionLoweringInfo::CreateReg(), llvm::MachineFunction::front(), llvm::SelectionDAGISel::FuncInfo, llvm::MachineFunction::getFrameInfo(), llvm::HexagonSubtarget::getFrameLowering(), llvm::MachineFunction::getInfo(), llvm::MachineFrameInfo::getMaxAlignment(), llvm::MachineFunction::getSubtarget(), llvm::MVT::i32, and llvm::SelectionDAGISel::MF.
Referenced by ComplexPatternFuncMutatesDAG().
|
inlineoverridevirtual |
getPassName - Return a nice clean name for a pass.
This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.
Reimplemented from llvm::Pass.
Definition at line 74 of file HexagonISelDAGToDAG.h.
References llvm::ARM_MB::LD, LoadInstrForLoadIntrinsic(), SelectAddSubCarry(), SelectBrevLdIntrinsic(), SelectConstant(), SelectConstantFP(), SelectD2P(), SelectFrameIndex(), SelectHVXDualOutput(), SelectIndexedLoad(), SelectIndexedStore(), SelectInlineAsmMemoryOperand(), SelectIntrinsicWChain(), SelectIntrinsicWOChain(), SelectLoad(), SelectNewCircIntrinsic(), SelectP2D(), SelectQ2V(), SelectSHL(), SelectStore(), SelectTypecast(), SelectV2Q(), SelectV65Gather(), SelectV65GatherPred(), SelectVAlign(), SelectVAlignAddr(), SelectZeroExtend(), llvm::ARM_MB::ST, StoreInstrForLoadIntrinsic(), and tryLoadOfLoadIntrinsic().
MachineSDNode * HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic | ( | SDNode * | IntN | ) |
Definition at line 186 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetConstant(), llvm::Intrinsic::hexagon_circ_ldb, llvm::Intrinsic::hexagon_circ_ldd, llvm::Intrinsic::hexagon_circ_ldh, llvm::Intrinsic::hexagon_circ_ldub, llvm::Intrinsic::hexagon_circ_lduh, llvm::Intrinsic::hexagon_circ_ldw, I, llvm::MVT::i32, llvm::MVT::i64, llvm::ISD::INTRINSIC_W_CHAIN, and llvm::MVT::Other.
Referenced by getPassName(), SelectIntrinsicWChain(), and tryLoadOfLoadIntrinsic().
|
overridevirtual |
PreprocessISelDAG - This hook allows targets to hack on the graph before instruction selection starts.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 1202 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAG::allnodes(), llvm::SelectionDAG::allnodes_size(), llvm::SelectionDAGISel::CurDAG, llvm::dbgs(), DEBUG_WITH_TYPE, llvm::SelectionDAG::dump(), EnableAddressRebalancing, N, and T.
Referenced by ComplexPatternFuncMutatesDAG().
|
inlineoverridevirtual |
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformation or analysis.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 41 of file HexagonISelDAGToDAG.h.
References llvm::HexagonSubtarget::getInstrInfo(), llvm::HexagonSubtarget::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), and llvm::SelectionDAGISel::runOnMachineFunction().
|
overridevirtual |
Main hook for targets to transform nodes into machine nodes.
Implements llvm::SelectionDAGISel.
Definition at line 871 of file HexagonISelDAGToDAG.cpp.
References llvm::HexagonISD::ADDC, llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::HexagonISD::D2P, llvm::ISD::FrameIndex, llvm::SDNode::getOpcode(), llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::SDNode::isMachineOpcode(), llvm::ISD::LOAD, llvm::HexagonISD::P2D, llvm::HexagonISD::Q2V, SelectAddSubCarry(), SelectConstant(), SelectConstantFP(), SelectD2P(), SelectFrameIndex(), SelectInlineAsmMemoryOperand(), SelectIntrinsicWChain(), SelectIntrinsicWOChain(), SelectLoad(), SelectP2D(), SelectQ2V(), SelectSHL(), SelectStore(), SelectTypecast(), SelectV2Q(), SelectVAlign(), SelectVAlignAddr(), llvm::SDNode::setNodeId(), llvm::ISD::SHL, llvm::ISD::STORE, llvm::HexagonISD::SUBC, llvm::HexagonISD::TYPECAST, llvm::HexagonSubtarget::useHVXOps(), llvm::HexagonISD::V2Q, llvm::HexagonISD::VALIGN, llvm::HexagonISD::VALIGNADDR, llvm::ISD::VECTOR_SHUFFLE, and llvm::HexagonISD::VROR.
Referenced by ComplexPatternFuncMutatesDAG(), and isPermutation().
Definition at line 1275 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::ISD::FrameIndex, llvm::MachineFunction::getFrameInfo(), llvm::HexagonSubtarget::getFrameLowering(), llvm::SDValue::getOpcode(), llvm::SelectionDAG::getTargetFrameIndex(), llvm::MVT::i32, llvm::MachineFrameInfo::isFixedObjectIndex(), llvm::SelectionDAGISel::MF, and N.
Referenced by ComplexPatternFuncMutatesDAG(), and SelectInlineAsmMemoryOperand().
Definition at line 1287 of file HexagonISelDAGToDAG.cpp.
References SelectGlobalAddress().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1291 of file HexagonISelDAGToDAG.cpp.
References SelectGlobalAddress().
Referenced by ComplexPatternFuncMutatesDAG().
void HexagonDAGToDAGISel::SelectAddSubCarry | ( | SDNode * | N | ) |
Definition at line 762 of file HexagonISelDAGToDAG.cpp.
References llvm::HexagonISD::ADDC, C, llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDNode::getVTList(), and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
Definition at line 1295 of file HexagonISelDAGToDAG.cpp.
References SelectAnyImmediate().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1299 of file HexagonISelDAGToDAG.cpp.
References SelectAnyImmediate().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1302 of file HexagonISelDAGToDAG.cpp.
References SelectAnyImmediate().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1305 of file HexagonISelDAGToDAG.cpp.
References SelectAnyImmediate().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1308 of file HexagonISelDAGToDAG.cpp.
References SelectAnyImmediate().
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 1320 of file HexagonISelDAGToDAG.cpp.
References llvm::alignTo(), llvm::ISD::BlockAddress, llvm::ISD::Constant, llvm::HexagonISD::CP, llvm::SelectionDAGISel::CurDAG, llvm::ISD::ExternalSymbol, llvm::getOffset(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getTargetConstant(), llvm::SDValue::getValueType(), llvm::MVT::i32, llvm::HexagonISD::JT, N, and SelectGlobalAddress().
Referenced by ComplexPatternFuncMutatesDAG(), SelectAnyImm(), SelectAnyImm0(), SelectAnyImm1(), SelectAnyImm2(), and SelectAnyImm3().
Definition at line 1312 of file HexagonISelDAGToDAG.cpp.
References llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::isInteger(), and N.
Referenced by ComplexPatternFuncMutatesDAG().
Definition at line 319 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_L2_loadrb_pbr, llvm::Intrinsic::hexagon_L2_loadrd_pbr, llvm::Intrinsic::hexagon_L2_loadrh_pbr, llvm::Intrinsic::hexagon_L2_loadri_pbr, llvm::Intrinsic::hexagon_L2_loadrub_pbr, llvm::Intrinsic::hexagon_L2_loadruh_pbr, llvm::MVT::i32, llvm::MVT::i64, llvm::ISD::INTRINSIC_W_CHAIN, llvm::MVT::Other, llvm::SelectionDAG::RemoveDeadNode(), llvm::SelectionDAGISel::ReplaceUses(), and llvm::SelectionDAG::setNodeMemRefs().
Referenced by getPassName(), and SelectIntrinsicWChain().
void HexagonDAGToDAGISel::SelectConstant | ( | SDNode * | N | ) |
Definition at line 720 of file HexagonISelDAGToDAG.cpp.
References assert(), llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getValueType(), llvm::MVT::i1, N, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectConstantFP | ( | SDNode * | N | ) |
Definition at line 699 of file HexagonISelDAGToDAG.cpp.
References llvm::APFloat::bitcastToAPInt(), llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::MVT::f32, llvm::MVT::f64, llvm::SelectionDAG::getMachineNode(), llvm::SelectionDAG::getTargetConstant(), llvm::ConstantFPSDNode::getValueAPF(), llvm::SDNode::getValueType(), llvm::MVT::i32, llvm::MVT::i64, N, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectD2P | ( | SDNode * | N | ) |
Definition at line 840 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SelectionDAG::getTargetConstant(), llvm::SDNode::getValueType(), llvm::MVT::i32, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectFrameIndex | ( | SDNode * | N | ) |
Definition at line 733 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getCopyFromReg(), llvm::SelectionDAG::getEntryNode(), llvm::MachineFunction::getFrameInfo(), llvm::HexagonSubtarget::getFrameLowering(), llvm::MachineFunction::getInfo(), llvm::SelectionDAG::getMachineNode(), llvm::MachineFrameInfo::getMaxAlignment(), llvm::HexagonMachineFunctionInfo::getStackAlignBaseVReg(), llvm::TargetFrameLowering::getStackAlignment(), llvm::SelectionDAG::getTargetConstant(), llvm::SelectionDAG::getTargetFrameIndex(), llvm::MachineFrameInfo::hasVarSizedObjects(), llvm::MVT::i32, llvm::SelectionDAGISel::MF, N, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
bool HexagonDAGToDAGISel::SelectGlobalAddress | ( | SDValue & | N, |
SDValue & | R, | ||
bool | UseGP, | ||
uint32_t | LogAlign | ||
) |
Definition at line 1364 of file HexagonISelDAGToDAG.cpp.
References llvm::ISD::ADD, llvm::alignTo(), llvm::HexagonISD::CONST32, llvm::HexagonISD::CONST32_GP, llvm::HexagonISD::CP, llvm::SelectionDAGISel::CurDAG, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::SDValue::getValueType(), llvm::HexagonISD::JT, and llvm::ISD::TargetGlobalAddress.
Referenced by ComplexPatternFuncMutatesDAG(), SelectAddrGA(), SelectAddrGP(), and SelectAnyImmediate().
void HexagonDAGToDAGISel::SelectHVXDualOutput | ( | SDNode * | N | ) |
Definition at line 2199 of file HexagonISelDAGToDAGHVX.cpp.
References llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_V6_vaddcarry, llvm::Intrinsic::hexagon_V6_vaddcarry_128B, llvm::Intrinsic::hexagon_V6_vsubcarry, llvm::Intrinsic::hexagon_V6_vsubcarry_128B, llvm_unreachable, llvm::MVT::v1024i1, llvm::MVT::v16i32, llvm::MVT::v32i32, and llvm::MVT::v512i1.
Referenced by getPassName(), and SelectIntrinsicWOChain().
void HexagonDAGToDAGISel::SelectIndexedLoad | ( | LoadSDNode * | LD, |
const SDLoc & | dl | ||
) |
Definition at line 67 of file HexagonISelDAGToDAG.cpp.
References assert(), llvm::SelectionDAGISel::CurDAG, llvm::ISD::EXTLOAD, llvm::MVT::f32, llvm::MVT::f64, From, llvm::LoadSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::LoadSDNode::getExtensionType(), llvm::SelectionDAG::getMachineNode(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getNode(), llvm::LoadSDNode::getOffset(), llvm::EVT::getSimpleVT(), llvm::EVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::SDNode::getValueType(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::MemSDNode::isNonTemporal(), llvm::EVT::isSimple(), llvm::HexagonInstrInfo::isValidAutoIncImm(), llvm_unreachable, N, llvm::ISD::NON_EXTLOAD, llvm::MVT::Other, llvm::SelectionDAG::RemoveDeadNode(), llvm::SelectionDAGISel::ReplaceUses(), llvm::SelectionDAG::setNodeMemRefs(), llvm::ISD::SEXTLOAD, llvm::MVT::SimpleTy, llvm::MVT::v128i8, llvm::MVT::v16i32, llvm::MVT::v16i64, llvm::MVT::v2i16, llvm::MVT::v2i32, llvm::MVT::v32i16, llvm::MVT::v32i32, llvm::MVT::v4i16, llvm::MVT::v4i8, llvm::MVT::v64i16, llvm::MVT::v64i8, llvm::MVT::v8i64, llvm::MVT::v8i8, and llvm::ISD::ZEXTLOAD.
Referenced by getPassName(), and SelectLoad().
void HexagonDAGToDAGISel::SelectIndexedStore | ( | StoreSDNode * | ST, |
const SDLoc & | dl | ||
) |
Definition at line 464 of file HexagonISelDAGToDAG.cpp.
References assert(), llvm::SelectionDAGISel::CurDAG, llvm::MVT::f32, llvm::MVT::f64, From, llvm::StoreSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::SelectionDAG::getMachineNode(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getNode(), llvm::StoreSDNode::getOffset(), llvm::EVT::getSimpleVT(), llvm::EVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::SelectionDAG::getTargetExtractSubreg(), llvm::StoreSDNode::getValue(), llvm::SDValue::getValueType(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::MemSDNode::isNonTemporal(), llvm::EVT::isSimple(), llvm::StoreSDNode::isTruncatingStore(), llvm::HexagonInstrInfo::isValidAutoIncImm(), llvm_unreachable, llvm::MVT::Other, llvm::SelectionDAG::RemoveDeadNode(), llvm::SelectionDAGISel::ReplaceUses(), llvm::SelectionDAG::setNodeMemRefs(), llvm::MVT::SimpleTy, llvm::MVT::v128i8, llvm::MVT::v16i32, llvm::MVT::v16i64, llvm::MVT::v2i16, llvm::MVT::v2i32, llvm::MVT::v32i16, llvm::MVT::v32i32, llvm::MVT::v4i16, llvm::MVT::v4i8, llvm::MVT::v64i16, llvm::MVT::v64i8, llvm::MVT::v8i64, and llvm::MVT::v8i8.
Referenced by getPassName(), and SelectStore().
|
overridevirtual |
SelectInlineAsmMemoryOperand - Implement addressing mode selection for inline asm expressions.
Reimplemented from llvm::SelectionDAGISel.
Definition at line 907 of file HexagonISelDAGToDAG.cpp.
References llvm::InlineAsm::Constraint_i, llvm::InlineAsm::Constraint_m, llvm::InlineAsm::Constraint_o, llvm::InlineAsm::Constraint_v, llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getTargetConstant(), llvm::MVT::i32, and SelectAddrFI().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectIntrinsicWChain | ( | SDNode * | N | ) |
Definition at line 626 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_V6_vgathermh, llvm::Intrinsic::hexagon_V6_vgathermh_128B, llvm::Intrinsic::hexagon_V6_vgathermhq, llvm::Intrinsic::hexagon_V6_vgathermhq_128B, llvm::Intrinsic::hexagon_V6_vgathermhw, llvm::Intrinsic::hexagon_V6_vgathermhw_128B, llvm::Intrinsic::hexagon_V6_vgathermhwq, llvm::Intrinsic::hexagon_V6_vgathermhwq_128B, llvm::Intrinsic::hexagon_V6_vgathermw, llvm::Intrinsic::hexagon_V6_vgathermw_128B, llvm::Intrinsic::hexagon_V6_vgathermwq, llvm::Intrinsic::hexagon_V6_vgathermwq_128B, LoadInstrForLoadIntrinsic(), llvm::SelectionDAG::RemoveDeadNode(), SelectBrevLdIntrinsic(), SelectNewCircIntrinsic(), SelectV65Gather(), SelectV65GatherPred(), and StoreInstrForLoadIntrinsic().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectIntrinsicWOChain | ( | SDNode * | N | ) |
Definition at line 663 of file HexagonISelDAGToDAG.cpp.
References llvm::tgtok::Bits, llvm::SelectionDAGISel::CurDAG, llvm::SDValue::getNode(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), llvm::Intrinsic::hexagon_S2_vsplatrb, llvm::Intrinsic::hexagon_S2_vsplatrh, llvm::Intrinsic::hexagon_V6_vaddcarry, llvm::Intrinsic::hexagon_V6_vaddcarry_128B, llvm::Intrinsic::hexagon_V6_vsubcarry, llvm::Intrinsic::hexagon_V6_vsubcarry_128B, llvm::SelectionDAGISel::ReplaceNode(), and SelectHVXDualOutput().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectLoad | ( | SDNode * | N | ) |
Definition at line 446 of file HexagonISelDAGToDAG.cpp.
References llvm::LSBaseSDNode::getAddressingMode(), llvm::ARM_MB::LD, N, SelectIndexedLoad(), tryLoadOfLoadIntrinsic(), and llvm::ISD::UNINDEXED.
Referenced by getPassName(), and Select().
Generate a machine instruction node for the new circlar buffer intrinsics.
The new versions use a CSx register instead of the K field.
Definition at line 360 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetConstant(), llvm::Intrinsic::hexagon_L2_loadrb_pci, llvm::Intrinsic::hexagon_L2_loadrb_pcr, llvm::Intrinsic::hexagon_L2_loadrd_pci, llvm::Intrinsic::hexagon_L2_loadrd_pcr, llvm::Intrinsic::hexagon_L2_loadrh_pci, llvm::Intrinsic::hexagon_L2_loadrh_pcr, llvm::Intrinsic::hexagon_L2_loadri_pci, llvm::Intrinsic::hexagon_L2_loadri_pcr, llvm::Intrinsic::hexagon_L2_loadrub_pci, llvm::Intrinsic::hexagon_L2_loadrub_pcr, llvm::Intrinsic::hexagon_L2_loadruh_pci, llvm::Intrinsic::hexagon_L2_loadruh_pcr, llvm::Intrinsic::hexagon_S2_storerb_pci, llvm::Intrinsic::hexagon_S2_storerb_pcr, llvm::Intrinsic::hexagon_S2_storerd_pci, llvm::Intrinsic::hexagon_S2_storerd_pcr, llvm::Intrinsic::hexagon_S2_storerf_pci, llvm::Intrinsic::hexagon_S2_storerf_pcr, llvm::Intrinsic::hexagon_S2_storerh_pci, llvm::Intrinsic::hexagon_S2_storerh_pcr, llvm::Intrinsic::hexagon_S2_storeri_pci, llvm::Intrinsic::hexagon_S2_storeri_pcr, I, llvm::MVT::i32, llvm::MVT::i64, llvm::ISD::INTRINSIC_W_CHAIN, llvm::MVT::Other, llvm::SelectionDAG::RemoveDeadNode(), and llvm::SelectionDAGISel::ReplaceUses().
Referenced by getPassName(), and SelectIntrinsicWChain().
void HexagonDAGToDAGISel::SelectP2D | ( | SDNode * | N | ) |
Definition at line 833 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SDNode::getValueType(), and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectQ2V | ( | SDNode * | N | ) |
Definition at line 860 of file HexagonISelDAGToDAG.cpp.
References C, llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SelectionDAG::getTargetConstant(), llvm::SDNode::getValueType(), llvm::MVT::i32, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectSHL | ( | SDNode * | N | ) |
Definition at line 569 of file HexagonISelDAGToDAG.cpp.
References C, llvm::ISD::Constant, llvm::SelectionDAGISel::CurDAG, llvm::Default, llvm::SelectionDAG::getMachineNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetConstant(), llvm::SDNode::getValueType(), llvm::MVT::i32, llvm::ISD::MUL, N, llvm::SelectionDAGISel::ReplaceNode(), llvm::ISD::SHL, and llvm::ISD::SUB.
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectStore | ( | SDNode * | N | ) |
Definition at line 555 of file HexagonISelDAGToDAG.cpp.
References llvm::LSBaseSDNode::getAddressingMode(), N, SelectIndexedStore(), llvm::ARM_MB::ST, and llvm::ISD::UNINDEXED.
Referenced by getPassName(), Select(), and StoreInstrForLoadIntrinsic().
void HexagonDAGToDAGISel::SelectTypecast | ( | SDNode * | N | ) |
Definition at line 825 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::SelectionDAG::MorphNodeTo(), and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectV2Q | ( | SDNode * | N | ) |
Definition at line 849 of file HexagonISelDAGToDAG.cpp.
References C, llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::SelectionDAG::getTargetConstant(), llvm::SDNode::getValueType(), llvm::MVT::i32, and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectV65Gather | ( | SDNode * | N | ) |
Definition at line 2162 of file HexagonISelDAGToDAGHVX.cpp.
References llvm::Address, llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_V6_vgathermh, llvm::Intrinsic::hexagon_V6_vgathermh_128B, llvm::Intrinsic::hexagon_V6_vgathermhw, llvm::Intrinsic::hexagon_V6_vgathermhw_128B, llvm::Intrinsic::hexagon_V6_vgathermw, llvm::Intrinsic::hexagon_V6_vgathermw_128B, llvm_unreachable, N, and llvm::MVT::Other.
Referenced by getPassName(), and SelectIntrinsicWChain().
void HexagonDAGToDAGISel::SelectV65GatherPred | ( | SDNode * | N | ) |
Definition at line 2124 of file HexagonISelDAGToDAGHVX.cpp.
References llvm::Address, llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_V6_vgathermhq, llvm::Intrinsic::hexagon_V6_vgathermhq_128B, llvm::Intrinsic::hexagon_V6_vgathermhwq, llvm::Intrinsic::hexagon_V6_vgathermhwq_128B, llvm::Intrinsic::hexagon_V6_vgathermwq, llvm::Intrinsic::hexagon_V6_vgathermwq_128B, llvm_unreachable, N, and llvm::MVT::Other.
Referenced by getPassName(), and SelectIntrinsicWChain().
void HexagonDAGToDAGISel::SelectVAlign | ( | SDNode * | N | ) |
Definition at line 771 of file HexagonISelDAGToDAG.cpp.
References assert(), C, llvm::SelectionDAGISel::CurDAG, E, llvm::SelectionDAG::getMachineNode(), llvm::SDValue::getNode(), llvm::SDNode::getOperand(), llvm::EVT::getSimpleVT(), llvm::MVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::SelectionDAG::getTargetExtractSubreg(), llvm::SDNode::getValueType(), llvm::MVT::i32, llvm::MVT::i64, llvm::HexagonSubtarget::isHVXVectorType(), llvm::SelectionDAGISel::ReplaceNode(), and llvm::MVT::v8i1.
Referenced by getPassName(), and Select().
void HexagonDAGToDAGISel::SelectVAlignAddr | ( | SDNode * | N | ) |
Definition at line 810 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::AA, assert(), llvm::SelectionDAGISel::CurDAG, llvm::SelectionDAG::getMachineNode(), llvm::SDValue::getNode(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getTargetConstant(), llvm::MVT::i32, llvm::isPowerOf2_32(), llvm::BitmaskEnumDetail::Mask(), and llvm::SelectionDAGISel::ReplaceNode().
Referenced by getPassName(), and Select().
void llvm::HexagonDAGToDAGISel::SelectZeroExtend | ( | SDNode * | N | ) |
Referenced by getPassName().
SDNode * HexagonDAGToDAGISel::StoreInstrForLoadIntrinsic | ( | MachineSDNode * | LoadN, |
SDNode * | IntN | ||
) |
Definition at line 217 of file HexagonISelDAGToDAG.cpp.
References llvm::SelectionDAGISel::CurDAG, F(), llvm::MVT::getIntegerVT(), llvm::SDNode::getMachineOpcode(), llvm::SDValue::getNode(), llvm::SDNode::getOperand(), llvm::SelectionDAG::getStore(), llvm::SelectionDAG::getTruncStore(), llvm::HandleSDNode::getValue(), llvm::HexagonII::MemAccesSizeMask, llvm::HexagonII::MemAccessSizePos, llvm::SelectionDAGISel::ReplaceUses(), SelectStore(), and Size.
Referenced by getPassName(), SelectIntrinsicWChain(), and tryLoadOfLoadIntrinsic().
bool HexagonDAGToDAGISel::tryLoadOfLoadIntrinsic | ( | LoadSDNode * | N | ) |
Definition at line 252 of file HexagonISelDAGToDAG.cpp.
References llvm::array_lengthof(), C, llvm::SelectionDAGISel::CurDAG, F(), llvm::LoadSDNode::getExtensionType(), llvm::SDValue::getNode(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::Intrinsic::hexagon_circ_ldd, llvm::Intrinsic::hexagon_circ_ldub, llvm::Intrinsic::hexagon_circ_lduh, llvm::Intrinsic::hexagon_circ_ldw, llvm::ISD::INTRINSIC_W_CHAIN, LoadInstrForLoadIntrinsic(), llvm::ISD::NON_EXTLOAD, llvm::SelectionDAG::RemoveDeadNode(), llvm::SelectionDAGISel::ReplaceUses(), llvm::ISD::SEXTLOAD, StoreInstrForLoadIntrinsic(), and llvm::ISD::ZEXTLOAD.
Referenced by getPassName(), and SelectLoad().
|
friend |
Definition at line 125 of file HexagonISelDAGToDAG.h.