Go to the documentation of this file.
12 #ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONISELDAGTODAG_H
13 #define LLVM_LIB_TARGET_HEXAGON_HEXAGONISELDAGTODAG_H
25 class MachineFunction;
26 class HexagonInstrInfo;
27 class HexagonRegisterInfo;
73 return "Hexagon DAG->DAG Pattern Instruction Selection";
88 unsigned ConstraintID,
89 std::vector<SDValue> &OutOps)
override;
116 #define GET_DAGISEL_DECL
117 #include "HexagonGenDAGISel.inc"
130 void SelectHvxShuffle(
SDNode *
N);
132 void SelectHvxVAlign(
SDNode *
N);
134 bool keepsLowBits(
const SDValue &Val,
unsigned NumBits,
SDValue &Src);
135 bool isAlignedMemNode(
const MemSDNode *
N)
const;
137 bool isPositiveHalfWord(
const SDNode *
N)
const;
141 void ppSimplifyOrSelect0(std::vector<SDNode*> &&Nodes);
142 void ppAddrReorderAddShl(std::vector<SDNode*> &&Nodes);
143 void ppAddrRewriteAndSrl(std::vector<SDNode*> &&Nodes);
144 void ppHoistZextI1(std::vector<SDNode*> &&Nodes);
156 unsigned getUsesInFunction(
const Value *V);
158 void rebalanceAddressTrees();
162 #endif // LLVM_LIB_TARGET_HEXAGON_HEXAGONISELDAGTODAG_H
bool SelectNewCircIntrinsic(SDNode *IntN)
Generate a machine instruction node for the new circlar buffer intrinsics.
bool ComplexPatternFuncMutatesDAG() const override
Return true if complex patterns for this target can mutate the DAG.
This is an optimization pass for GlobalISel generic memory operations.
void PreprocessISelDAG() override
PreprocessISelDAG - This hook allows targets to hack on the graph before instruction selection starts...
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
void SelectD2P(SDNode *N)
bool SelectAddrGA(SDValue &N, SDValue &R)
bool SelectAnyImmediate(SDValue &N, SDValue &R, Align Alignment)
void SelectAddSubCarry(SDNode *N)
An SDNode that represents everything that will be needed to construct a MachineInstr.
Represents one node in the SelectionDAG.
void SelectV2Q(SDNode *N)
This class is used to represent ISD::LOAD nodes.
This is an abstract virtual class for memory operations.
void SelectP2D(SDNode *N)
SDNode * StoreInstrForLoadIntrinsic(MachineSDNode *LoadN, SDNode *IntN)
void SelectVAlignAddr(SDNode *N)
void SelectSHL(SDNode *N)
void SelectLoad(SDNode *N)
CodeGenOpt::Level OptLevel
void SelectVAlign(SDNode *N)
This struct is a compact representation of a valid (non-zero power of two) alignment.
const HexagonInstrInfo * getInstrInfo() const override
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
void SelectConstantFP(SDNode *N)
void SelectV65GatherPred(SDNode *N)
bool SelectAnyImm0(SDValue &N, SDValue &R)
void SelectFrameIndex(SDNode *N)
HexagonDAGToDAGISel(HexagonTargetMachine &tm, CodeGenOpt::Level OptLevel)
void SelectConstant(SDNode *N)
This class is used to represent ISD::STORE nodes.
bool SelectAnyInt(SDValue &N, SDValue &R)
MachineSDNode * getMachineNode(unsigned Opcode, const SDLoc &dl, EVT VT)
These are used for target selectors to create a new node with specified return type(s),...
bool SelectAnyImm1(SDValue &N, SDValue &R)
void emitFunctionEntryCode() override
void SelectZeroExtend(SDNode *N)
void SelectQ2V(SDNode *N)
void SelectIndexedStore(StoreSDNode *ST, const SDLoc &dl)
void SelectTypecast(SDNode *N)
void SelectIndexedLoad(LoadSDNode *LD, const SDLoc &dl)
StringRef - Represent a constant reference to a string, i.e.
bool SelectGlobalAddress(SDValue &N, SDValue &R, bool UseGP, Align Alignment)
bool tryLoadOfLoadIntrinsic(LoadSDNode *N)
bool SelectAddrGP(SDValue &N, SDValue &R)
void SelectIntrinsicWChain(SDNode *N)
const HexagonRegisterInfo * getRegisterInfo() const override
bool SelectBrevLdIntrinsic(SDNode *IntN)
void SelectV65Gather(SDNode *N)
bool SelectAddrFI(SDValue &N, SDValue &R)
bool SelectAnyImm(SDValue &N, SDValue &R)
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
SelectionDAGISel - This is the common base class used for SelectionDAG-based pattern-matching instruc...
bool SelectInlineAsmMemoryOperand(const SDValue &Op, unsigned ConstraintID, std::vector< SDValue > &OutOps) override
SelectInlineAsmMemoryOperand - Implement addressing mode selection for inline asm expressions.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
bool SelectAnyImm3(SDValue &N, SDValue &R)
MachineSDNode * LoadInstrForLoadIntrinsic(SDNode *IntN)
void Select(SDNode *N) override
Main hook for targets to transform nodes into machine nodes.
bool SelectAnyImm2(SDValue &N, SDValue &R)
void SelectStore(SDNode *N)
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
static bool hasOneUse(unsigned Reg, MachineInstr *Def, MachineRegisterInfo &MRI, MachineDominatorTree &MDT, LiveIntervals &LIS)
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
LLVM Value Representation.
void SelectIntrinsicWOChain(SDNode *N)
void SelectHVXDualOutput(SDNode *N)
bool DetectUseSxtw(SDValue &N, SDValue &R)