|
LLVM
10.0.0
|
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representation suitable for instruction selection. More...
#include "llvm/CodeGen/SelectionDAG.h"
Classes | |
| struct | DAGNodeDeletedListener |
| struct | DAGUpdateListener |
| Clients of various APIs that cause global effects on the DAG can optionally implement this interface. More... | |
Public Types | |
| enum | OverflowKind { OFK_Never, OFK_Sometime, OFK_Always } |
| Used to represent the possible overflow behavior of an operation. More... | |
| using | allnodes_const_iterator = ilist< SDNode >::const_iterator |
| using | allnodes_iterator = ilist< SDNode >::iterator |
Public Member Functions | |
| SelectionDAG (const TargetMachine &TM, CodeGenOpt::Level) | |
| SelectionDAG (const SelectionDAG &)=delete | |
| SelectionDAG & | operator= (const SelectionDAG &)=delete |
| ~SelectionDAG () | |
| void | init (MachineFunction &NewMF, OptimizationRemarkEmitter &NewORE, Pass *PassPtr, const TargetLibraryInfo *LibraryInfo, LegacyDivergenceAnalysis *Divergence, ProfileSummaryInfo *PSIin, BlockFrequencyInfo *BFIin) |
| Prepare this SelectionDAG to process code in the given MachineFunction. More... | |
| void | setFunctionLoweringInfo (FunctionLoweringInfo *FuncInfo) |
| void | clear () |
| Clear state and free memory necessary to make this SelectionDAG ready to process a new block. More... | |
| MachineFunction & | getMachineFunction () const |
| const Pass * | getPass () const |
| const DataLayout & | getDataLayout () const |
| const TargetMachine & | getTarget () const |
| const TargetSubtargetInfo & | getSubtarget () const |
| const TargetLowering & | getTargetLoweringInfo () const |
| const TargetLibraryInfo & | getLibInfo () const |
| const SelectionDAGTargetInfo & | getSelectionDAGInfo () const |
| const LegacyDivergenceAnalysis * | getDivergenceAnalysis () const |
| LLVMContext * | getContext () const |
| OptimizationRemarkEmitter & | getORE () const |
| ProfileSummaryInfo * | getPSI () const |
| BlockFrequencyInfo * | getBFI () const |
| void | viewGraph (const std::string &Title) |
| Pop up a GraphViz/gv window with the DAG rendered using 'dot'. More... | |
| void | viewGraph () |
| void | clearGraphAttrs () |
| Clear all previously defined node graph attributes. More... | |
| void | setGraphAttrs (const SDNode *N, const char *Attrs) |
| Set graph attributes for a node. (eg. "color=red".) More... | |
| const std::string | getGraphAttrs (const SDNode *N) const |
| Get graph attributes for a node. More... | |
| void | setGraphColor (const SDNode *N, const char *Color) |
| Convenience for setting node color attribute. More... | |
| void | setSubgraphColor (SDNode *N, const char *Color) |
| Convenience for setting subgraph color attribute. More... | |
| allnodes_const_iterator | allnodes_begin () const |
| allnodes_const_iterator | allnodes_end () const |
| allnodes_iterator | allnodes_begin () |
| allnodes_iterator | allnodes_end () |
| ilist< SDNode >::size_type | allnodes_size () const |
| iterator_range< allnodes_iterator > | allnodes () |
| iterator_range< allnodes_const_iterator > | allnodes () const |
| const SDValue & | getRoot () const |
| Return the root tag of the SelectionDAG. More... | |
| SDValue | getEntryNode () const |
| Return the token chain corresponding to the entry of the function. More... | |
| const SDValue & | setRoot (SDValue N) |
| Set the current root tag of the SelectionDAG. More... | |
| void | VerifyDAGDiverence () |
| void | Combine (CombineLevel Level, AAResults *AA, CodeGenOpt::Level OptLevel) |
| This iterates over the nodes in the SelectionDAG, folding certain types of nodes together, or eliminating superfluous nodes. More... | |
| bool | LegalizeTypes () |
| This transforms the SelectionDAG into a SelectionDAG that only uses types natively supported by the target. More... | |
| void | Legalize () |
| This transforms the SelectionDAG into a SelectionDAG that is compatible with the target instruction selector, as indicated by the TargetLowering object. More... | |
| bool | LegalizeOp (SDNode *N, SmallSetVector< SDNode *, 16 > &UpdatedNodes) |
| Transforms a SelectionDAG node and any operands to it into a node that is compatible with the target instruction selector, as indicated by the TargetLowering object. More... | |
| bool | LegalizeVectors () |
| This transforms the SelectionDAG into a SelectionDAG that only uses vector math operations supported by the target. More... | |
| void | RemoveDeadNodes () |
| This method deletes all unreachable nodes in the SelectionDAG. More... | |
| void | DeleteNode (SDNode *N) |
| Remove the specified node from the system. More... | |
| SDVTList | getVTList (EVT VT) |
| Return an SDVTList that represents the list of values specified. More... | |
| SDVTList | getVTList (EVT VT1, EVT VT2) |
| SDVTList | getVTList (EVT VT1, EVT VT2, EVT VT3) |
| SDVTList | getVTList (EVT VT1, EVT VT2, EVT VT3, EVT VT4) |
| SDVTList | getVTList (ArrayRef< EVT > VTs) |
| SDValue | getGlobalAddress (const GlobalValue *GV, const SDLoc &DL, EVT VT, int64_t offset=0, bool isTargetGA=false, unsigned TargetFlags=0) |
| SDValue | getTargetGlobalAddress (const GlobalValue *GV, const SDLoc &DL, EVT VT, int64_t offset=0, unsigned TargetFlags=0) |
| SDValue | getFrameIndex (int FI, EVT VT, bool isTarget=false) |
| SDValue | getTargetFrameIndex (int FI, EVT VT) |
| SDValue | getJumpTable (int JTI, EVT VT, bool isTarget=false, unsigned TargetFlags=0) |
| SDValue | getTargetJumpTable (int JTI, EVT VT, unsigned TargetFlags=0) |
| SDValue | getConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned TargetFlags=0) |
| SDValue | getTargetConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offset=0, unsigned TargetFlags=0) |
| SDValue | getConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned TargetFlags=0) |
| SDValue | getTargetConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offset=0, unsigned TargetFlags=0) |
| SDValue | getTargetIndex (int Index, EVT VT, int64_t Offset=0, unsigned TargetFlags=0) |
| SDValue | getBasicBlock (MachineBasicBlock *MBB) |
| SDValue | getBasicBlock (MachineBasicBlock *MBB, SDLoc dl) |
| SDValue | getExternalSymbol (const char *Sym, EVT VT) |
| SDValue | getExternalSymbol (const char *Sym, const SDLoc &dl, EVT VT) |
| SDValue | getTargetExternalSymbol (const char *Sym, EVT VT, unsigned TargetFlags=0) |
| SDValue | getMCSymbol (MCSymbol *Sym, EVT VT) |
| SDValue | getValueType (EVT) |
| SDValue | getRegister (unsigned Reg, EVT VT) |
| SDValue | getRegisterMask (const uint32_t *RegMask) |
| SDValue | getEHLabel (const SDLoc &dl, SDValue Root, MCSymbol *Label) |
| SDValue | getLabelNode (unsigned Opcode, const SDLoc &dl, SDValue Root, MCSymbol *Label) |
| SDValue | getBlockAddress (const BlockAddress *BA, EVT VT, int64_t Offset=0, bool isTarget=false, unsigned TargetFlags=0) |
| SDValue | getTargetBlockAddress (const BlockAddress *BA, EVT VT, int64_t Offset=0, unsigned TargetFlags=0) |
| SDValue | getCopyToReg (SDValue Chain, const SDLoc &dl, unsigned Reg, SDValue N) |
| SDValue | getCopyToReg (SDValue Chain, const SDLoc &dl, unsigned Reg, SDValue N, SDValue Glue) |
| SDValue | getCopyToReg (SDValue Chain, const SDLoc &dl, SDValue Reg, SDValue N, SDValue Glue) |
| SDValue | getCopyFromReg (SDValue Chain, const SDLoc &dl, unsigned Reg, EVT VT) |
| SDValue | getCopyFromReg (SDValue Chain, const SDLoc &dl, unsigned Reg, EVT VT, SDValue Glue) |
| SDValue | getCondCode (ISD::CondCode Cond) |
| SDValue | getVectorShuffle (EVT VT, const SDLoc &dl, SDValue N1, SDValue N2, ArrayRef< int > Mask) |
| Return an ISD::VECTOR_SHUFFLE node. More... | |
| SDValue | getBuildVector (EVT VT, const SDLoc &DL, ArrayRef< SDValue > Ops) |
| Return an ISD::BUILD_VECTOR node. More... | |
| SDValue | getBuildVector (EVT VT, const SDLoc &DL, ArrayRef< SDUse > Ops) |
| Return an ISD::BUILD_VECTOR node. More... | |
| SDValue | getSplatBuildVector (EVT VT, const SDLoc &DL, SDValue Op) |
| Return a splat ISD::BUILD_VECTOR node, consisting of Op splatted to all elements. More... | |
| SDValue | getSplatVector (EVT VT, const SDLoc &DL, SDValue Op) |
| SDValue | getCommutedVectorShuffle (const ShuffleVectorSDNode &SV) |
| Returns an ISD::VECTOR_SHUFFLE node semantically equivalent to the shuffle node in input but with swapped operands. More... | |
| SDValue | getFPExtendOrRound (SDValue Op, const SDLoc &DL, EVT VT) |
| Convert Op, which must be of float type, to the float type VT, by either extending or rounding (by truncation). More... | |
| std::pair< SDValue, SDValue > | getStrictFPExtendOrRound (SDValue Op, SDValue Chain, const SDLoc &DL, EVT VT) |
| Convert Op, which must be a STRICT operation of float type, to the float type VT, by either extending or rounding (by truncation). More... | |
| SDValue | getAnyExtOrTrunc (SDValue Op, const SDLoc &DL, EVT VT) |
| Convert Op, which must be of integer type, to the integer type VT, by either any-extending or truncating it. More... | |
| SDValue | getSExtOrTrunc (SDValue Op, const SDLoc &DL, EVT VT) |
| Convert Op, which must be of integer type, to the integer type VT, by either sign-extending or truncating it. More... | |
| SDValue | getZExtOrTrunc (SDValue Op, const SDLoc &DL, EVT VT) |
| Convert Op, which must be of integer type, to the integer type VT, by either zero-extending or truncating it. More... | |
| SDValue | getZeroExtendInReg (SDValue Op, const SDLoc &DL, EVT VT) |
| Return the expression required to zero extend the Op value assuming it was the smaller SrcTy value. More... | |
| SDValue | getPtrExtOrTrunc (SDValue Op, const SDLoc &DL, EVT VT) |
| Convert Op, which must be of integer type, to the integer type VT, by either truncating it or performing either zero or sign extension as appropriate extension for the pointer's semantics. More... | |
| SDValue | getPtrExtendInReg (SDValue Op, const SDLoc &DL, EVT VT) |
| Return the expression required to extend the Op as a pointer value assuming it was the smaller SrcTy value. More... | |
| SDValue | getBoolExtOrTrunc (SDValue Op, const SDLoc &SL, EVT VT, EVT OpVT) |
| Convert Op, which must be of integer type, to the integer type VT, by using an extension appropriate for the target's BooleanContent for type OpVT or truncating it. More... | |
| SDValue | getNOT (const SDLoc &DL, SDValue Val, EVT VT) |
| Create a bitwise NOT operation as (XOR Val, -1). More... | |
| SDValue | getLogicalNOT (const SDLoc &DL, SDValue Val, EVT VT) |
| Create a logical NOT operation as (XOR Val, BooleanOne). More... | |
| SDValue | getMemBasePlusOffset (SDValue Base, int64_t Offset, const SDLoc &DL, const SDNodeFlags Flags=SDNodeFlags()) |
| Returns sum of the base pointer and offset. More... | |
| SDValue | getMemBasePlusOffset (SDValue Base, SDValue Offset, const SDLoc &DL, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | getObjectPtrOffset (const SDLoc &SL, SDValue Ptr, int64_t Offset) |
| Create an add instruction with appropriate flags when used for addressing some offset of an object. More... | |
| SDValue | getObjectPtrOffset (const SDLoc &SL, SDValue Ptr, SDValue Offset) |
| SDValue | getCALLSEQ_START (SDValue Chain, uint64_t InSize, uint64_t OutSize, const SDLoc &DL) |
| Return a new CALLSEQ_START node, that starts new call frame, in which InSize bytes are set up inside CALLSEQ_START..CALLSEQ_END sequence and OutSize specifies part of the frame set up prior to the sequence. More... | |
| SDValue | getCALLSEQ_END (SDValue Chain, SDValue Op1, SDValue Op2, SDValue InGlue, const SDLoc &DL) |
| Return a new CALLSEQ_END node, which always must have a glue result (to ensure it's not CSE'd). More... | |
| bool | isUndef (unsigned Opcode, ArrayRef< SDValue > Ops) |
| Return true if the result of this operation is always undefined. More... | |
| SDValue | getUNDEF (EVT VT) |
| Return an UNDEF node. UNDEF does not have a useful SDLoc. More... | |
| SDValue | getGLOBAL_OFFSET_TABLE (EVT VT) |
| Return a GLOBAL_OFFSET_TABLE node. This does not have a useful SDLoc. More... | |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDUse > Ops) |
| Gets or creates the specified node. More... | |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDValue > Ops, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, ArrayRef< EVT > ResultTys, ArrayRef< SDValue > Ops) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, ArrayRef< SDValue > Ops) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT) |
| Gets or creates the specified node. More... | |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue Operand, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDValue N4) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDValue N4, SDValue N5) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, SDValue N) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, SDValue N1, SDValue N2) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, SDValue N1, SDValue N2, SDValue N3) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, SDValue N1, SDValue N2, SDValue N3, SDValue N4) |
| SDValue | getNode (unsigned Opcode, const SDLoc &DL, SDVTList VTList, SDValue N1, SDValue N2, SDValue N3, SDValue N4, SDValue N5) |
| SDValue | getStackArgumentTokenFactor (SDValue Chain) |
| Compute a TokenFactor to force all the incoming stack arguments to be loaded from the stack. More... | |
| SDValue | getMemcpy (SDValue Chain, const SDLoc &dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, bool AlwaysInline, bool isTailCall, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) |
| SDValue | getMemmove (SDValue Chain, const SDLoc &dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, bool isTailCall, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) |
| SDValue | getMemset (SDValue Chain, const SDLoc &dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, bool isTailCall, MachinePointerInfo DstPtrInfo) |
| SDValue | getAtomicMemcpy (SDValue Chain, const SDLoc &dl, SDValue Dst, unsigned DstAlign, SDValue Src, unsigned SrcAlign, SDValue Size, Type *SizeTy, unsigned ElemSz, bool isTailCall, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) |
| SDValue | getAtomicMemmove (SDValue Chain, const SDLoc &dl, SDValue Dst, unsigned DstAlign, SDValue Src, unsigned SrcAlign, SDValue Size, Type *SizeTy, unsigned ElemSz, bool isTailCall, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) |
| SDValue | getAtomicMemset (SDValue Chain, const SDLoc &dl, SDValue Dst, unsigned DstAlign, SDValue Value, SDValue Size, Type *SizeTy, unsigned ElemSz, bool isTailCall, MachinePointerInfo DstPtrInfo) |
| SDValue | getSetCC (const SDLoc &DL, EVT VT, SDValue LHS, SDValue RHS, ISD::CondCode Cond, SDValue Chain=SDValue(), bool IsSignaling=false) |
| Helper function to make it easier to build SetCC's if you just have an ISD::CondCode instead of an SDValue. More... | |
| SDValue | getSelect (const SDLoc &DL, EVT VT, SDValue Cond, SDValue LHS, SDValue RHS) |
| Helper function to make it easier to build Select's if you just have operands and don't want to check for vector. More... | |
| SDValue | getSelectCC (const SDLoc &DL, SDValue LHS, SDValue RHS, SDValue True, SDValue False, ISD::CondCode Cond) |
| Helper function to make it easier to build SelectCC's if you just have an ISD::CondCode instead of an SDValue. More... | |
| SDValue | simplifySelect (SDValue Cond, SDValue TVal, SDValue FVal) |
| Try to simplify a select/vselect into 1 of its operands or a constant. More... | |
| SDValue | simplifyShift (SDValue X, SDValue Y) |
| Try to simplify a shift into 1 of its operands or a constant. More... | |
| SDValue | simplifyFPBinop (unsigned Opcode, SDValue X, SDValue Y) |
| Try to simplify a floating-point binary operation into 1 of its operands or a constant. More... | |
| SDValue | getVAArg (EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, SDValue SV, unsigned Align) |
| VAArg produces a result and token chain, and takes a pointer and a source value as input. More... | |
| SDValue | getAtomicCmpSwap (unsigned Opcode, const SDLoc &dl, EVT MemVT, SDVTList VTs, SDValue Chain, SDValue Ptr, SDValue Cmp, SDValue Swp, MachineMemOperand *MMO) |
| Gets a node for an atomic cmpxchg op. More... | |
| SDValue | getAtomic (unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, MachineMemOperand *MMO) |
| Gets a node for an atomic op, produces result (if relevant) and chain and takes 2 operands. More... | |
| SDValue | getAtomic (unsigned Opcode, const SDLoc &dl, EVT MemVT, EVT VT, SDValue Chain, SDValue Ptr, MachineMemOperand *MMO) |
| Gets a node for an atomic op, produces result and chain and takes 1 operand. More... | |
| SDValue | getAtomic (unsigned Opcode, const SDLoc &dl, EVT MemVT, SDVTList VTList, ArrayRef< SDValue > Ops, MachineMemOperand *MMO) |
| Gets a node for an atomic op, produces result and chain and takes N operands. More... | |
| SDValue | getMemIntrinsicNode (unsigned Opcode, const SDLoc &dl, SDVTList VTList, ArrayRef< SDValue > Ops, EVT MemVT, MachinePointerInfo PtrInfo, unsigned Align=0, MachineMemOperand::Flags Flags=MachineMemOperand::MOLoad|MachineMemOperand::MOStore, uint64_t Size=0, const AAMDNodes &AAInfo=AAMDNodes()) |
| Creates a MemIntrinsicNode that may produce a result and takes a list of operands. More... | |
| SDValue | getMemIntrinsicNode (unsigned Opcode, const SDLoc &dl, SDVTList VTList, ArrayRef< SDValue > Ops, EVT MemVT, MachineMemOperand *MMO) |
| SDValue | getLifetimeNode (bool IsStart, const SDLoc &dl, SDValue Chain, int FrameIndex, int64_t Size, int64_t Offset=-1) |
Creates a LifetimeSDNode that starts (IsStart==true) or ends (IsStart==false) the lifetime of the portion of FrameIndex between offsets Offset and Offset + Size. More... | |
| SDValue | getMergeValues (ArrayRef< SDValue > Ops, const SDLoc &dl) |
| Create a MERGE_VALUES node from the given operands. More... | |
| SDValue | getLoad (EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, MachinePointerInfo PtrInfo, unsigned Alignment=0, MachineMemOperand::Flags MMOFlags=MachineMemOperand::MONone, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr) |
| Loads are not normal binary operators: their result type is not determined by their operands, and they produce a value AND a token chain. More... | |
| SDValue | getLoad (EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, MachineMemOperand *MMO) |
| SDValue | getExtLoad (ISD::LoadExtType ExtType, const SDLoc &dl, EVT VT, SDValue Chain, SDValue Ptr, MachinePointerInfo PtrInfo, EVT MemVT, unsigned Alignment=0, MachineMemOperand::Flags MMOFlags=MachineMemOperand::MONone, const AAMDNodes &AAInfo=AAMDNodes()) |
| SDValue | getExtLoad (ISD::LoadExtType ExtType, const SDLoc &dl, EVT VT, SDValue Chain, SDValue Ptr, EVT MemVT, MachineMemOperand *MMO) |
| SDValue | getIndexedLoad (SDValue OrigLoad, const SDLoc &dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM) |
| SDValue | getLoad (ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, SDValue Offset, MachinePointerInfo PtrInfo, EVT MemVT, unsigned Alignment=0, MachineMemOperand::Flags MMOFlags=MachineMemOperand::MONone, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr) |
| SDValue | getLoad (ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, SDValue Offset, EVT MemVT, MachineMemOperand *MMO) |
| SDValue | getStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, unsigned Alignment=0, MachineMemOperand::Flags MMOFlags=MachineMemOperand::MONone, const AAMDNodes &AAInfo=AAMDNodes()) |
| Helper function to build ISD::STORE nodes. More... | |
| SDValue | getStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Ptr, MachineMemOperand *MMO) |
| SDValue | getTruncStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, EVT SVT, unsigned Alignment=0, MachineMemOperand::Flags MMOFlags=MachineMemOperand::MONone, const AAMDNodes &AAInfo=AAMDNodes()) |
| SDValue | getTruncStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Ptr, EVT SVT, MachineMemOperand *MMO) |
| SDValue | getIndexedStore (SDValue OrigStore, const SDLoc &dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM) |
| SDValue | getMaskedLoad (EVT VT, const SDLoc &dl, SDValue Chain, SDValue Base, SDValue Offset, SDValue Mask, SDValue Src0, EVT MemVT, MachineMemOperand *MMO, ISD::MemIndexedMode AM, ISD::LoadExtType, bool IsExpanding=false) |
| SDValue | getIndexedMaskedLoad (SDValue OrigLoad, const SDLoc &dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM) |
| SDValue | getMaskedStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Base, SDValue Offset, SDValue Mask, EVT MemVT, MachineMemOperand *MMO, ISD::MemIndexedMode AM, bool IsTruncating=false, bool IsCompressing=false) |
| SDValue | getIndexedMaskedStore (SDValue OrigStore, const SDLoc &dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM) |
| SDValue | getMaskedGather (SDVTList VTs, EVT VT, const SDLoc &dl, ArrayRef< SDValue > Ops, MachineMemOperand *MMO, ISD::MemIndexType IndexType) |
| SDValue | getMaskedScatter (SDVTList VTs, EVT VT, const SDLoc &dl, ArrayRef< SDValue > Ops, MachineMemOperand *MMO, ISD::MemIndexType IndexType) |
| template<class TargetMemSDNode > | |
| SDValue | getTargetMemSDNode (SDVTList VTs, ArrayRef< SDValue > Ops, const SDLoc &dl, EVT MemVT, MachineMemOperand *MMO) |
| Return (create a new or find existing) a target-specific node. More... | |
| SDValue | getSrcValue (const Value *v) |
| Construct a node to track a Value* through the backend. More... | |
| SDValue | getMDNode (const MDNode *MD) |
| Return an MDNodeSDNode which holds an MDNode. More... | |
| SDValue | getBitcast (EVT VT, SDValue V) |
| Return a bitcast using the SDLoc of the value operand, and casting to the provided type. More... | |
| SDValue | getAddrSpaceCast (const SDLoc &dl, EVT VT, SDValue Ptr, unsigned SrcAS, unsigned DestAS) |
| Return an AddrSpaceCastSDNode. More... | |
| SDValue | getShiftAmountOperand (EVT LHSTy, SDValue Op) |
| Return the specified value casted to the target's desired shift amount type. More... | |
| SDValue | expandVAArg (SDNode *Node) |
Expand the specified ISD::VAARG node as the Legalize pass would. More... | |
| SDValue | expandVACopy (SDNode *Node) |
Expand the specified ISD::VACOPY node as the Legalize pass would. More... | |
| SDValue | getSymbolFunctionGlobalAddress (SDValue Op, Function **TargetFunction=nullptr) |
| Returs an GlobalAddress of the function from the current module with name matching the given ExternalSymbol. More... | |
| SDNode * | UpdateNodeOperands (SDNode *N, SDValue Op) |
| Mutate the specified node in-place to have the specified operands. More... | |
| SDNode * | UpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2) |
| SDNode * | UpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3) |
| SDNode * | UpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3, SDValue Op4) |
| SDNode * | UpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3, SDValue Op4, SDValue Op5) |
| SDNode * | UpdateNodeOperands (SDNode *N, ArrayRef< SDValue > Ops) |
| SDValue | getTokenFactor (const SDLoc &DL, SmallVectorImpl< SDValue > &Vals) |
Creates a new TokenFactor containing Vals. More... | |
| void | setNodeMemRefs (MachineSDNode *N, ArrayRef< MachineMemOperand *> NewMemRefs) |
| Mutate the specified machine node's memory references to the provided list. More... | |
| void | updateDivergence (SDNode *N) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT) |
| These are used for target selectors to mutate the specified node to have the specified return type, Target opcode, and operands. More... | |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT, SDValue Op1) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT, SDValue Op1, SDValue Op2) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT, SDValue Op1, SDValue Op2, SDValue Op3) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT, ArrayRef< SDValue > Ops) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT1, EVT VT2) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT1, EVT VT2, ArrayRef< SDValue > Ops) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT1, EVT VT2, EVT VT3, ArrayRef< SDValue > Ops) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, SDValue Op1) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2) |
| SDNode * | SelectNodeTo (SDNode *N, unsigned MachineOpc, SDVTList VTs, ArrayRef< SDValue > Ops) |
| SDNode * | MorphNodeTo (SDNode *N, unsigned Opc, SDVTList VTs, ArrayRef< SDValue > Ops) |
| This mutates the specified node to have the specified return type, opcode, and operands. More... | |
| SDNode * | mutateStrictFPToFP (SDNode *Node) |
| Mutate the specified strict FP node to its non-strict equivalent, unlinking the node from its chain and dropping the metadata arguments. More... | |
| 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), MachineInstr opcode, and operands. More... | |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT, SDValue Op1) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT, SDValue Op1, SDValue Op2) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT, SDValue Op1, SDValue Op2, SDValue Op3) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT, ArrayRef< SDValue > Ops) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2, SDValue Op3) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, ArrayRef< SDValue > Ops) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, EVT VT3, SDValue Op1, SDValue Op2) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, EVT VT3, SDValue Op1, SDValue Op2, SDValue Op3) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, EVT VT1, EVT VT2, EVT VT3, ArrayRef< SDValue > Ops) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, ArrayRef< EVT > ResultTys, ArrayRef< SDValue > Ops) |
| MachineSDNode * | getMachineNode (unsigned Opcode, const SDLoc &dl, SDVTList VTs, ArrayRef< SDValue > Ops) |
| SDValue | getTargetExtractSubreg (int SRIdx, const SDLoc &DL, EVT VT, SDValue Operand) |
| A convenience function for creating TargetInstrInfo::EXTRACT_SUBREG nodes. More... | |
| SDValue | getTargetInsertSubreg (int SRIdx, const SDLoc &DL, EVT VT, SDValue Operand, SDValue Subreg) |
| A convenience function for creating TargetInstrInfo::INSERT_SUBREG nodes. More... | |
| SDNode * | getNodeIfExists (unsigned Opcode, SDVTList VTList, ArrayRef< SDValue > Ops, const SDNodeFlags Flags=SDNodeFlags()) |
| Get the specified node if it's already available, or else return NULL. More... | |
| SDDbgValue * | getDbgValue (DIVariable *Var, DIExpression *Expr, SDNode *N, unsigned R, bool IsIndirect, const DebugLoc &DL, unsigned O) |
| Creates a SDDbgValue node. More... | |
| SDDbgValue * | getConstantDbgValue (DIVariable *Var, DIExpression *Expr, const Value *C, const DebugLoc &DL, unsigned O) |
| Creates a constant SDDbgValue node. More... | |
| SDDbgValue * | getFrameIndexDbgValue (DIVariable *Var, DIExpression *Expr, unsigned FI, bool IsIndirect, const DebugLoc &DL, unsigned O) |
| Creates a FrameIndex SDDbgValue node. More... | |
| SDDbgValue * | getVRegDbgValue (DIVariable *Var, DIExpression *Expr, unsigned VReg, bool IsIndirect, const DebugLoc &DL, unsigned O) |
| Creates a VReg SDDbgValue node. More... | |
| SDDbgLabel * | getDbgLabel (DILabel *Label, const DebugLoc &DL, unsigned O) |
| Creates a SDDbgLabel node. More... | |
| void | transferDbgValues (SDValue From, SDValue To, unsigned OffsetInBits=0, unsigned SizeInBits=0, bool InvalidateDbg=true) |
| Transfer debug values from one node to another, while optionally generating fragment expressions for split-up values. More... | |
| void | RemoveDeadNode (SDNode *N) |
| Remove the specified node from the system. More... | |
| void | RemoveDeadNodes (SmallVectorImpl< SDNode *> &DeadNodes) |
| This method deletes the unreachable nodes in the given list, and any nodes that become unreachable as a result. More... | |
| void | ReplaceAllUsesWith (SDValue From, SDValue To) |
| Modify anything using 'From' to use 'To' instead. More... | |
| void | ReplaceAllUsesWith (SDNode *From, SDNode *To) |
| ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. More... | |
| void | ReplaceAllUsesWith (SDNode *From, const SDValue *To) |
| ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. More... | |
| void | ReplaceAllUsesOfValueWith (SDValue From, SDValue To) |
| Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone. More... | |
| void | ReplaceAllUsesOfValuesWith (const SDValue *From, const SDValue *To, unsigned Num) |
| Like ReplaceAllUsesOfValueWith, but for multiple values at once. More... | |
| SDValue | makeEquivalentMemoryOrdering (LoadSDNode *Old, SDValue New) |
| If an existing load has uses of its chain, create a token factor node with that chain and the new memory node's chain and update users of the old chain to the token factor. More... | |
| unsigned | AssignTopologicalOrder () |
| Topological-sort the AllNodes list and a assign a unique node id for each node in the DAG based on their topological order. More... | |
| void | RepositionNode (allnodes_iterator Position, SDNode *N) |
| Move node N in the AllNodes list to be immediately before the given iterator Position. More... | |
| void | AddDbgValue (SDDbgValue *DB, SDNode *SD, bool isParameter) |
| Add a dbg_value SDNode. More... | |
| void | AddDbgLabel (SDDbgLabel *DB) |
| Add a dbg_label SDNode. More... | |
| ArrayRef< SDDbgValue * > | GetDbgValues (const SDNode *SD) const |
| Get the debug values which reference the given SDNode. More... | |
| bool | hasDebugValues () const |
| Return true if there are any SDDbgValue nodes associated with this SelectionDAG. More... | |
| SDDbgInfo::DbgIterator | DbgBegin () const |
| SDDbgInfo::DbgIterator | DbgEnd () const |
| SDDbgInfo::DbgIterator | ByvalParmDbgBegin () const |
| SDDbgInfo::DbgIterator | ByvalParmDbgEnd () const |
| SDDbgInfo::DbgLabelIterator | DbgLabelBegin () const |
| SDDbgInfo::DbgLabelIterator | DbgLabelEnd () const |
| void | salvageDebugInfo (SDNode &N) |
| To be invoked on an SDNode that is slated to be erased. More... | |
| void | dump () const |
| SDValue | CreateStackTemporary (EVT VT, unsigned minAlign=1) |
| Create a stack temporary, suitable for holding the specified value type. More... | |
| SDValue | CreateStackTemporary (EVT VT1, EVT VT2) |
| Create a stack temporary suitable for holding either of the specified value types. More... | |
| SDValue | FoldSymbolOffset (unsigned Opcode, EVT VT, const GlobalAddressSDNode *GA, const SDNode *N2) |
| SDValue | FoldConstantArithmetic (unsigned Opcode, const SDLoc &DL, EVT VT, SDNode *N1, SDNode *N2) |
| SDValue | FoldConstantArithmetic (unsigned Opcode, const SDLoc &DL, EVT VT, const ConstantSDNode *C1, const ConstantSDNode *C2) |
| SDValue | FoldConstantVectorArithmetic (unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDValue > Ops, const SDNodeFlags Flags=SDNodeFlags()) |
| SDValue | foldConstantFPMath (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2) |
| Fold floating-point operations with 2 operands when both operands are constants and/or undefined. More... | |
| SDValue | FoldSetCC (EVT VT, SDValue N1, SDValue N2, ISD::CondCode Cond, const SDLoc &dl) |
| Constant fold a setcc to true or false. More... | |
| SDValue | GetDemandedBits (SDValue V, const APInt &DemandedBits) |
| See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used. More... | |
| SDValue | GetDemandedBits (SDValue V, const APInt &DemandedBits, const APInt &DemandedElts) |
| See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used in the elements specified by DemandedElts. More... | |
| bool | SignBitIsZero (SDValue Op, unsigned Depth=0) const |
| Return true if the sign bit of Op is known to be zero. More... | |
| bool | MaskedValueIsZero (SDValue Op, const APInt &Mask, unsigned Depth=0) const |
| Return true if 'Op & Mask' is known to be zero. More... | |
| bool | MaskedValueIsZero (SDValue Op, const APInt &Mask, const APInt &DemandedElts, unsigned Depth=0) const |
| Return true if 'Op & Mask' is known to be zero in DemandedElts. More... | |
| bool | MaskedValueIsAllOnes (SDValue Op, const APInt &Mask, unsigned Depth=0) const |
| Return true if '(Op & Mask) == Mask'. More... | |
| KnownBits | computeKnownBits (SDValue Op, unsigned Depth=0) const |
| Determine which bits of Op are known to be either zero or one and return them in Known. More... | |
| KnownBits | computeKnownBits (SDValue Op, const APInt &DemandedElts, unsigned Depth=0) const |
| Determine which bits of Op are known to be either zero or one and return them in Known. More... | |
| OverflowKind | computeOverflowKind (SDValue N0, SDValue N1) const |
| Determine if the result of the addition of 2 node can overflow. More... | |
| bool | isKnownToBeAPowerOfTwo (SDValue Val) const |
| Test if the given value is known to have exactly one bit set. More... | |
| unsigned | ComputeNumSignBits (SDValue Op, unsigned Depth=0) const |
| Return the number of times the sign bit of the register is replicated into the other bits. More... | |
| unsigned | ComputeNumSignBits (SDValue Op, const APInt &DemandedElts, unsigned Depth=0) const |
| Return the number of times the sign bit of the register is replicated into the other bits. More... | |
| bool | isBaseWithConstantOffset (SDValue Op) const |
| Return true if the specified operand is an ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an ISD::OR with a ConstantSDNode that is guaranteed to have the same semantics as an ADD. More... | |
| bool | isKnownNeverNaN (SDValue Op, bool SNaN=false, unsigned Depth=0) const |
| Test whether the given SDValue is known to never be NaN. More... | |
| bool | isKnownNeverSNaN (SDValue Op, unsigned Depth=0) const |
| bool | isKnownNeverZeroFloat (SDValue Op) const |
| Test whether the given floating point SDValue is known to never be positive or negative zero. More... | |
| bool | isKnownNeverZero (SDValue Op) const |
| Test whether the given SDValue is known to contain non-zero value(s). More... | |
| bool | isEqualTo (SDValue A, SDValue B) const |
| Test whether two SDValues are known to compare equal. More... | |
| bool | haveNoCommonBitsSet (SDValue A, SDValue B) const |
| Return true if A and B have no common bits set. More... | |
| bool | isSplatValue (SDValue V, const APInt &DemandedElts, APInt &UndefElts) |
Test whether V has a splatted value for all the demanded elements. More... | |
| bool | isSplatValue (SDValue V, bool AllowUndefs=false) |
Test whether V has a splatted value. More... | |
| SDValue | getSplatSourceVector (SDValue V, int &SplatIndex) |
| If V is a splatted value, return the source vector and its splat index. More... | |
| SDValue | getSplatValue (SDValue V) |
| If V is a splat vector, return its scalar source operand by extracting that element from the source vector. More... | |
| SDValue | matchBinOpReduction (SDNode *Extract, ISD::NodeType &BinOp, ArrayRef< ISD::NodeType > CandidateBinOps, bool AllowPartials=false) |
| Match a binop + shuffle pyramid that represents a horizontal reduction over the elements of a vector starting from the EXTRACT_VECTOR_ELT node /p Extract. More... | |
| SDValue | UnrollVectorOp (SDNode *N, unsigned ResNE=0) |
| Utility function used by legalize and lowering to "unroll" a vector operation by splitting out the scalars and operating on each element individually. More... | |
| std::pair< SDValue, SDValue > | UnrollVectorOverflowOp (SDNode *N, unsigned ResNE=0) |
| Like UnrollVectorOp(), but for the [US](ADD|SUB|MUL)O family of opcodes. More... | |
| bool | areNonVolatileConsecutiveLoads (LoadSDNode *LD, LoadSDNode *Base, unsigned Bytes, int Dist) const |
| Return true if loads are next to each other and can be merged. More... | |
| unsigned | InferPtrAlignment (SDValue Ptr) const |
| Infer alignment of a load / store address. More... | |
| std::pair< EVT, EVT > | GetSplitDestVTs (const EVT &VT) const |
| Compute the VTs needed for the low/hi parts of a type which is split (or expanded) into two not necessarily identical pieces. More... | |
| std::pair< SDValue, SDValue > | SplitVector (const SDValue &N, const SDLoc &DL, const EVT &LoVT, const EVT &HiVT) |
| Split the vector with EXTRACT_SUBVECTOR using the provides VTs and return the low/high part. More... | |
| std::pair< SDValue, SDValue > | SplitVector (const SDValue &N, const SDLoc &DL) |
| Split the vector with EXTRACT_SUBVECTOR and return the low/high part. More... | |
| std::pair< SDValue, SDValue > | SplitVectorOperand (const SDNode *N, unsigned OpNo) |
| Split the node's operand with EXTRACT_SUBVECTOR and return the low/high part. More... | |
| SDValue | WidenVector (const SDValue &N, const SDLoc &DL) |
| Widen the vector up to the next power of two using INSERT_SUBVECTOR. More... | |
| void | ExtractVectorElements (SDValue Op, SmallVectorImpl< SDValue > &Args, unsigned Start=0, unsigned Count=0) |
| Append the extracted elements from Start to Count out of the vector Op in Args. More... | |
| unsigned | getEVTAlignment (EVT MemoryVT) const |
| Compute the default alignment value for the given type. More... | |
| SDNode * | isConstantIntBuildVectorOrConstantInt (SDValue N) |
| Test whether the given value is a constant int or similar node. More... | |
| SDNode * | isConstantFPBuildVectorOrConstantFP (SDValue N) |
| Test whether the given value is a constant FP or similar node. More... | |
| bool | isConstantValueOfAnyType (SDValue N) |
| void | addCallSiteInfo (const SDNode *CallNode, CallSiteInfoImpl &&CallInfo) |
| CallSiteInfo | getSDCallSiteInfo (const SDNode *CallNode) |
| void | addHeapAllocSite (const SDNode *Node, MDNode *MD) |
| MDNode * | getHeapAllocSite (const SDNode *Node) |
| Return the HeapAllocSite type associated with the SDNode, if it exists. More... | |
| DenormalMode | getDenormalMode (EVT VT) const |
| Return the current function's default denormal handling kind for the given floating point type. More... | |
| bool | shouldOptForSize () const |
| SDValue | getConstant (uint64_t Val, const SDLoc &DL, EVT VT, bool isTarget=false, bool isOpaque=false) |
| Create a ConstantSDNode wrapping a constant value. More... | |
| SDValue | getConstant (const APInt &Val, const SDLoc &DL, EVT VT, bool isTarget=false, bool isOpaque=false) |
| SDValue | getAllOnesConstant (const SDLoc &DL, EVT VT, bool IsTarget=false, bool IsOpaque=false) |
| SDValue | getConstant (const ConstantInt &Val, const SDLoc &DL, EVT VT, bool isTarget=false, bool isOpaque=false) |
| SDValue | getIntPtrConstant (uint64_t Val, const SDLoc &DL, bool isTarget=false) |
| SDValue | getShiftAmountConstant (uint64_t Val, EVT VT, const SDLoc &DL, bool LegalTypes=true) |
| SDValue | getTargetConstant (uint64_t Val, const SDLoc &DL, EVT VT, bool isOpaque=false) |
| SDValue | getTargetConstant (const APInt &Val, const SDLoc &DL, EVT VT, bool isOpaque=false) |
| SDValue | getTargetConstant (const ConstantInt &Val, const SDLoc &DL, EVT VT, bool isOpaque=false) |
| SDValue | getBoolConstant (bool V, const SDLoc &DL, EVT VT, EVT OpVT) |
Create a true or false constant of type VT using the target's BooleanContent for type OpVT. More... | |
| SDValue | getConstantFP (double Val, const SDLoc &DL, EVT VT, bool isTarget=false) |
| Create a ConstantFPSDNode wrapping a constant value. More... | |
| SDValue | getConstantFP (const APFloat &Val, const SDLoc &DL, EVT VT, bool isTarget=false) |
| SDValue | getConstantFP (const ConstantFP &V, const SDLoc &DL, EVT VT, bool isTarget=false) |
| SDValue | getTargetConstantFP (double Val, const SDLoc &DL, EVT VT) |
| SDValue | getTargetConstantFP (const APFloat &Val, const SDLoc &DL, EVT VT) |
| SDValue | getTargetConstantFP (const ConstantFP &Val, const SDLoc &DL, EVT VT) |
Static Public Member Functions | |
| static const fltSemantics & | EVTToAPFloatSemantics (EVT VT) |
| Returns an APFloat semantics tag appropriate for the given type. More... | |
Public Attributes | |
| bool | NewNodesMustHaveLegalTypes = false |
| When true, additional steps are taken to ensure that getConstant() and similar functions return DAG nodes that have legal types. More... | |
| std::map< const SDNode *, std::string > | NodeGraphAttrs |
Static Public Attributes | |
| static constexpr unsigned | MaxRecursionDepth = 6 |
Friends | |
| struct | DAGUpdateListener |
| DAGUpdateListener is a friend so it can manipulate the listener stack. More... | |
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representation suitable for instruction selection.
This DAG is constructed as the first step of instruction selection in order to allow implementation of machine specific optimizations and code simplifications.
The representation used by the SelectionDAG is a target-independent representation, which has some similarities to the GCC RTL representation, but is significantly more simple, powerful, and is a graph form instead of a linear form.
Definition at line 223 of file SelectionDAG.h.
Definition at line 460 of file SelectionDAG.h.
| using llvm::SelectionDAG::allnodes_iterator = ilist<SDNode>::iterator |
Definition at line 465 of file SelectionDAG.h.
Used to represent the possible overflow behavior of an operation.
Never: the operation cannot overflow. Always: the operation will always overflow. Sometime: the operation may or may not overflow.
| Enumerator | |
|---|---|
| OFK_Never | |
| OFK_Sometime | |
| OFK_Always | |
Definition at line 1547 of file SelectionDAG.h.
|
explicit |
Definition at line 1012 of file SelectionDAG.cpp.
|
delete |
| SelectionDAG::~SelectionDAG | ( | ) |
Definition at line 1038 of file SelectionDAG.cpp.
References assert().
|
inline |
Definition at line 1716 of file SelectionDAG.h.
Referenced by llvm::ARMTargetLowering::CCAssignFnForReturn(), getMOVL(), and mayTailCallThisCC().
| void SelectionDAG::AddDbgLabel | ( | SDDbgLabel * | DB | ) |
Add a dbg_label SDNode.
Definition at line 8758 of file SelectionDAG.cpp.
Referenced by FixedPointIntrinsicToOpcode().
| void SelectionDAG::AddDbgValue | ( | SDDbgValue * | DB, |
| SDNode * | SD, | ||
| bool | isParameter | ||
| ) |
Add a dbg_value SDNode.
AddDbgValue - Add a dbg_value SDNode.
If SD is non-null that means the value is produced by SD.
Definition at line 8750 of file SelectionDAG.cpp.
References assert(), llvm::SDNode::getHasDebugValue(), and llvm::SDNode::setHasDebugValue().
Referenced by FixedPointIntrinsicToOpcode(), getUnderlyingArgRegs(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), salvageDebugInfo(), llvm::SelectionDAGBuilder::salvageUnresolvedDbgValue(), and transferDbgValues().
Definition at line 1727 of file SelectionDAG.h.
References llvm::FoldingSetBase::Node::Node().
Referenced by getMOVL().
|
inline |
Definition at line 474 of file SelectionDAG.h.
References llvm::make_range().
Referenced by llvm::HexagonDAGToDAGISel::PreprocessISelDAG(), updateDivergence(), and VerifyDAGDiverence().
|
inline |
Definition at line 477 of file SelectionDAG.h.
References llvm::make_range().
|
inline |
Definition at line 462 of file SelectionDAG.h.
Referenced by AssignTopologicalOrder(), llvm::SelectionDAGISel::getUninvalidatedNodeId(), isTargetConstant(), and llvm::GraphTraits< SelectionDAG * >::nodes_begin().
|
inline |
Definition at line 467 of file SelectionDAG.h.
|
inline |
Definition at line 463 of file SelectionDAG.h.
Referenced by AssignTopologicalOrder(), isTargetConstant(), and llvm::GraphTraits< SelectionDAG * >::nodes_end().
|
inline |
Definition at line 468 of file SelectionDAG.h.
Definition at line 470 of file SelectionDAG.h.
Referenced by llvm::HexagonDAGToDAGISel::PreprocessISelDAG().
| bool SelectionDAG::areNonVolatileConsecutiveLoads | ( | LoadSDNode * | LD, |
| LoadSDNode * | Base, | ||
| unsigned | Bytes, | ||
| int | Dist | ||
| ) | const |
Return true if loads are next to each other and can be merged.
Check that both are nonvolatile and if LD is loading 'Bytes' bytes from a location that is 'Dist' units away from the location that the 'Base' load is loading from.
Definition at line 9372 of file SelectionDAG.cpp.
References llvm::MemSDNode::getChain(), llvm::EVT::getSizeInBits(), llvm::SDNode::getValueType(), llvm::LSBaseSDNode::isIndexed(), llvm::MemSDNode::isSimple(), llvm::MemSDNode::isVolatile(), and llvm::BaseIndexOffset::match().
Referenced by EltsFromConsecutiveLoads(), and getBuildPairElt().
| unsigned SelectionDAG::AssignTopologicalOrder | ( | ) |
Topological-sort the AllNodes list and a assign a unique node id for each node in the DAG based on their topological order.
AssignTopologicalOrder - Assign a unique node id for each node in the DAG based on their topological order.
Returns the number of nodes.
It returns the maximum id and a vector of the SDNodes* in assigned order by reference.
Definition at line 8661 of file SelectionDAG.cpp.
References allnodes_begin(), allnodes_end(), assert(), llvm::checkForCycles(), E, llvm::SDNode::getNumOperands(), I, and llvm::SDNode::setNodeId().
Referenced by llvm::SelectionDAGISel::getUninvalidatedNodeId().
|
inline |
Definition at line 1437 of file SelectionDAG.h.
References llvm::SDDbgInfo::ByvalParmDbgBegin().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
|
inline |
Definition at line 1440 of file SelectionDAG.h.
References llvm::SDDbgInfo::ByvalParmDbgEnd().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
| void SelectionDAG::clear | ( | ) |
Clear state and free memory necessary to make this SelectionDAG ready to process a new block.
Definition at line 1100 of file SelectionDAG.cpp.
References llvm::SDDbgInfo::clear(), getEntryNode(), and llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset().
| void SelectionDAG::clearGraphAttrs | ( | ) |
Clear all previously defined node graph attributes.
clearGraphAttrs - Clear all previously defined node graph attributes.
Intended to be used from a debugging tool (eg. gdb).
Definition at line 169 of file SelectionDAGPrinter.cpp.
References llvm::errs().
| void SelectionDAG::Combine | ( | CombineLevel | Level, |
| AAResults * | AA, | ||
| CodeGenOpt::Level | OptLevel | ||
| ) |
This iterates over the nodes in the SelectionDAG, folding certain types of nodes together, or eliminating superfluous nodes.
This is the entry point for the file.
The Level argument controls whether Combine is allowed to produce nodes and types that are illegal on the target.
This is the main entry point to this class.
Definition at line 21219 of file DAGCombiner.cpp.
Determine which bits of Op are known to be either zero or one and return them in Known.
For vectors, the known bits are those that are shared by every vector element. Targets can implement the computeKnownBitsForTargetNode method in the TargetLowering class to allow target nodes to be understood.
For vectors, the known bits are those that are shared by every vector element.
Definition at line 2489 of file SelectionDAG.cpp.
References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().
Referenced by adjustForRedundantAnd(), llvm::SelectionDAGISel::CheckOrMask(), combineShiftOfShiftedLogic(), combineSubToSubus(), combineVectorSignBitsTruncation(), computeKnownBits(), computeKnownBitsBinOp(), llvm::SparcTargetLowering::computeKnownBitsForTargetNode(), llvm::LanaiTargetLowering::computeKnownBitsForTargetNode(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), llvm::AArch64TargetLowering::computeKnownBitsForTargetNode(), llvm::ARMTargetLowering::computeKnownBitsForTargetNode(), llvm::SystemZTargetLowering::computeKnownBitsForTargetNode(), llvm::X86TargetLowering::computeKnownBitsForTargetNode(), ComputeNumSignBits(), computeOverflowKind(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::TargetLowering::expandFixedPointDiv(), foldMaskAndShiftToScale(), generateEquivalentSub(), GetDemandedBits(), getFauxShuffleMask(), haveNoCommonBitsSet(), isBitfieldPositioningOp(), isKnownToBeAPowerOfTwo(), isSubBorrowChain(), isTruncateOf(), isWordAligned(), LowerAndToBT(), LowerMUL(), LowerTruncateVecI1(), MaskedValueIsAllOnes(), MaskedValueIsZero(), matchRotateSub(), llvm::AMDGPUTargetLowering::numBitsUnsigned(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), llvm::AMDGPUTargetLowering::performShlCombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::PPCTargetLowering::SelectAddressRegReg(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifyMultipleUseDemandedBits(), tryBitfieldInsertOpFromOr(), and tryBitfieldInsertOpFromOrAndImm().
| KnownBits SelectionDAG::computeKnownBits | ( | SDValue | Op, |
| const APInt & | DemandedElts, | ||
| unsigned | Depth = 0 |
||
| ) | const |
Determine which bits of Op are known to be either zero or one and return them in Known.
The DemandedElts argument allows us to only collect the known bits that are shared by the requested vector elements. Targets can implement the computeKnownBitsForTargetNode method in the TargetLowering class to allow target nodes to be understood.
The DemandedElts argument allows us to only collect the known bits that are shared by the requested vector elements.
Definition at line 2500 of file SelectionDAG.cpp.
References llvm::ISD::ABS, llvm::ISD::ADD, llvm::ISD::ADDC, llvm::ISD::ADDCARRY, llvm::ISD::ADDE, llvm::ISD::AND, llvm::ISD::ANY_EXTEND, llvm::APInt::ashrInPlace(), assert(), llvm::ISD::AssertZext, llvm::ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS, llvm::ISD::BITCAST, llvm::ISD::BITREVERSE, llvm::ISD::BSWAP, llvm::ISD::BUILD_VECTOR, llvm::ISD::BUILTIN_OP_END, llvm::APInt::byteSwap(), C, llvm::APInt::clearAllBits(), llvm::APInt::clearSignBit(), llvm::KnownBits::computeForAddCarry(), llvm::KnownBits::computeForAddSub(), computeKnownBits(), llvm::TargetLowering::computeKnownBitsForFrameIndex(), llvm::TargetLowering::computeKnownBitsForTargetNode(), llvm::computeKnownBitsFromRangeMetadata(), llvm::ISD::CONCAT_VECTORS, llvm::KnownBits::countMaxLeadingZeros(), llvm::KnownBits::countMaxPopulation(), llvm::KnownBits::countMaxTrailingZeros(), llvm::KnownBits::countMinLeadingOnes(), llvm::KnownBits::countMinLeadingZeros(), llvm::KnownBits::countMinTrailingZeros(), llvm::ISD::CTLZ, llvm::ISD::CTLZ_ZERO_UNDEF, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::ISD::CTTZ_ZERO_UNDEF, llvm::dyn_cast(), llvm::numbers::e, llvm::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::APInt::extractBits(), llvm::ISD::FGETSIGN, llvm::ISD::FrameIndex, llvm::ISD::FSHL, llvm::ISD::FSHR, llvm::Constant::getAggregateElement(), llvm::APInt::getAllOnesValue(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitsSet(), llvm::KnownBits::getBitWidth(), llvm::APInt::getBitWidth(), llvm::TargetLoweringBase::getBooleanContents(), llvm::APInt::getBoolValue(), llvm::SDValue::getConstantOperandVal(), getDataLayout(), llvm::LoadSDNode::getExtensionType(), llvm::APInt::getHiBits(), llvm::APInt::getHighBitsSet(), llvm::APInt::getLowBitsSet(), llvm::ShuffleVectorSDNode::getMask(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getNode(), llvm::SDValue::getNumOperands(), llvm::APInt::getNumSignBits(), llvm::APInt::getOneBitSet(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::Type::getPrimitiveSizeInBits(), llvm::MemSDNode::getRanges(), llvm::SDValue::getResNo(), llvm::Type::getScalarSizeInBits(), llvm::EVT::getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), llvm::APInt::getSignMask(), llvm::EVT::getSizeInBits(), llvm::Constant::getSplatValue(), llvm::TargetLowering::getTargetConstantFromLoad(), getValidMinimumShiftAmountConstant(), getValidShiftAmountConstant(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ConstantSDNode::getZExtValue(), llvm::KnownBits::hasConflict(), if(), llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INSERT_VECTOR_ELT, llvm::APInt::intersects(), llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::isConstOrConstSplat(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::DataLayout::isLittleEndian(), llvm::APInt::isNegative(), llvm::ISD::isNON_EXTLoad(), llvm::APInt::isNonNegative(), llvm::APInt::isPowerOf2(), llvm::SDNode::isStrictFPOpcode(), llvm::APInt::isSubsetOf(), llvm::KnownBits::isUnknown(), llvm::EVT::isVector(), llvm::Type::isVectorTy(), llvm::ISD::isZEXTLoad(), llvm::ARM_MB::LD, LLVM_FALLTHROUGH, llvm::ISD::LOAD, llvm::Log2_32(), llvm::APInt::lshr(), llvm::APInt::lshrInPlace(), llvm::max(), MaxRecursionDepth, llvm::ISD::MUL, llvm::ISD::NON_EXTLOAD, llvm::KnownBits::One, llvm::ISD::OR, RA, llvm::KnownBits::resetAll(), llvm::APInt::reverseBits(), llvm::ISD::SADDO, llvm::ISD::SCALAR_TO_VECTOR, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::APInt::setAllBits(), llvm::APInt::setBit(), llvm::APInt::setBitsFrom(), llvm::ISD::SETCC, llvm::APInt::setHighBits(), llvm::APInt::setLowBits(), llvm::KnownBits::sext(), llvm::ISD::SHL, llvm::APInt::shl(), llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SIGN_EXTEND_VECTOR_INREG, llvm::ArrayRef< T >::size(), llvm::APInt::sle(), llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SMULO, llvm::ISD::SRA, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SSUBO, llvm::ISD::STRICT_FSETCC, llvm::ISD::STRICT_FSETCCS, llvm::ISD::SUB, llvm::ISD::SUBC, std::swap(), llvm::ISD::TargetFrameIndex, llvm::KnownBits::trunc(), llvm::APInt::trunc(), llvm::ISD::TRUNCATE, llvm::ISD::UADDO, llvm::ISD::UDIV, llvm::APInt::ule(), llvm::APInt::ult(), llvm::ISD::UMAX, llvm::ISD::UMIN, llvm::ISD::UMULO, llvm::ISD::UREM, llvm::ISD::USUBO, llvm::ISD::VECTOR_SHUFFLE, llvm::ISD::VSELECT, llvm::ISD::XOR, llvm::KnownBits::Zero, llvm::ISD::ZERO_EXTEND, llvm::ISD::ZERO_EXTEND_VECTOR_INREG, llvm::TargetLoweringBase::ZeroOrOneBooleanContent, llvm::KnownBits::zext(), llvm::APInt::zext(), llvm::APInt::zextOrSelf(), and llvm::APInt::zextOrTrunc().
Return the number of times the sign bit of the register is replicated into the other bits.
We know that at least 1 bit is always equal to the sign bit (itself), but other cases can give us information. For example, immediately after an "SRA X, 2", we know that the top 3 bits are all equal to each other, so we return 3. Targets can implement the ComputeNumSignBitsForTarget method in the TargetLowering class to allow target nodes to be understood.
Definition at line 3493 of file SelectionDAG.cpp.
References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().
Referenced by canReduceVMulWidth(), combineAndMaskToShift(), combineGatherScatter(), combineHorizontalPredicateResult(), combineLogicBlendIntoConditionalNegate(), combineLogicBlendIntoPBLENDV(), combineMulToPMULDQ(), combineShiftOfShiftedLogic(), combineSIntToFP(), combineVectorPack(), combineVectorSignBitsTruncation(), ComputeNumSignBits(), computeNumSignBitsBinOp(), llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::SystemZTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::X86TargetLowering::ComputeNumSignBitsForTargetNode(), earlyExpandDIVFIX(), EmitCmp(), llvm::TargetLowering::expandFixedPointDiv(), llvm::TargetLowering::expandMUL_LOHI(), foldAddSubMasked1(), foldExtendedSignBitTest(), generateEquivalentSub(), getFauxShuffleMask(), isADDADDMUL(), isS16(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), LowerTruncateVecI1(), matchShuffleWithPACK(), llvm::AMDGPUTargetLowering::numBitsSigned(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::X86TargetLowering::SimplifyDemandedBitsForTargetNode(), simplifyShuffleOfShuffle(), and widenCtPop().
| unsigned SelectionDAG::ComputeNumSignBits | ( | SDValue | Op, |
| const APInt & | DemandedElts, | ||
| unsigned | Depth = 0 |
||
| ) | const |
Return the number of times the sign bit of the register is replicated into the other bits.
We know that at least 1 bit is always equal to the sign bit (itself), but other cases can give us information. For example, immediately after an "SRA X, 2", we know that the top 3 bits are all equal to each other, so we return 3. The DemandedElts argument allows us to only collect the minimum sign bits of the requested vector elements. Targets can implement the ComputeNumSignBitsForTarget method in the TargetLowering class to allow target nodes to be understood.
Definition at line 3501 of file SelectionDAG.cpp.
References llvm::ISD::ADD, llvm::ISD::ADDC, llvm::ISD::AND, assert(), llvm::ISD::AssertSext, llvm::ISD::AssertZext, llvm::ISD::BITCAST, llvm::ISD::BUILD_VECTOR, llvm::ISD::BUILTIN_OP_END, C, llvm::APInt::clearBit(), computeKnownBits(), ComputeNumSignBits(), llvm::TargetLowering::ComputeNumSignBitsForTargetNode(), llvm::ISD::CONCAT_VECTORS, llvm::APInt::countLeadingZeros(), llvm::dyn_cast(), llvm::numbers::e, llvm::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::APInt::extractBits(), llvm::Constant::getAggregateElement(), llvm::APInt::getAllOnesValue(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitsSet(), llvm::APInt::getBitWidth(), llvm::TargetLoweringBase::getBooleanContents(), llvm::SDValue::getConstantOperandVal(), getDataLayout(), llvm::ShuffleVectorSDNode::getMask(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getNumOperands(), llvm::APInt::getNumSignBits(), llvm::APInt::getOneBitSet(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::Type::getPrimitiveSizeInBits(), llvm::SDValue::getResNo(), llvm::EVT::getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), llvm::TargetLowering::getTargetConstantFromLoad(), getValidMaximumShiftAmountConstant(), getValidMinimumShiftAmountConstant(), getValidShiftAmountConstant(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ConstantSDNode::getZExtValue(), llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::isConstOrConstSplat(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::DataLayout::isLittleEndian(), llvm::KnownBits::isNegative(), llvm::KnownBits::isNonNegative(), llvm::SDNode::isStrictFPOpcode(), llvm::EVT::isVector(), llvm::Type::isVectorTy(), llvm::ARM_MB::LD, llvm::APInt::lshr(), llvm::BitmaskEnumDetail::Mask(), llvm::max(), MaxRecursionDepth, llvm::ISD::MUL, llvm::ISD::NON_EXTLOAD, llvm::KnownBits::One, llvm::ISD::OR, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SADDO, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::APInt::setBit(), llvm::ISD::SETCC, llvm::ISD::SEXTLOAD, llvm::ISD::SHL, llvm::APInt::shl(), llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SIGN_EXTEND_VECTOR_INREG, llvm::ArrayRef< T >::size(), llvm::APInt::sle(), llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SMULO, llvm::ISD::SRA, llvm::ISD::SSUBO, llvm::ISD::STRICT_FSETCC, llvm::ISD::STRICT_FSETCCS, llvm::ISD::SUB, std::swap(), llvm::APInt::trunc(), llvm::ISD::TRUNCATE, llvm::ISD::UADDO, llvm::APInt::ule(), llvm::APInt::ult(), llvm::ISD::UMAX, llvm::ISD::UMIN, llvm::ISD::UMULO, llvm::ISD::USUBO, llvm::ISD::VECTOR_SHUFFLE, llvm::ISD::VSELECT, llvm::ISD::XOR, llvm::KnownBits::Zero, llvm::TargetLoweringBase::ZeroOrNegativeOneBooleanContent, llvm::ISD::ZEXTLOAD, and llvm::APInt::zextOrSelf().
| SelectionDAG::OverflowKind SelectionDAG::computeOverflowKind | ( | SDValue | N0, |
| SDValue | N1 | ||
| ) | const |
Determine if the result of the addition of 2 node can overflow.
Definition at line 3421 of file SelectionDAG.cpp.
References computeKnownBits(), llvm::APInt::getBoolValue(), llvm::KnownBits::getMaxValue(), llvm::SDValue::getOpcode(), llvm::SDValue::getResNo(), llvm::isNullConstant(), OFK_Never, OFK_Sometime, llvm::APInt::uadd_ov(), llvm::ISD::UMUL_LOHI, and llvm::KnownBits::Zero.
Referenced by extractBooleanFlip(), foldAddSubMasked1(), and foldAddSubOfSignBit().
Create a stack temporary, suitable for holding the specified value type.
If minAlign is specified, the slot size will have at least that alignment.
Definition at line 1982 of file SelectionDAG.cpp.
References llvm::MachineFrameInfo::CreateStackObject(), getContext(), getDataLayout(), getFrameIndex(), llvm::TargetLoweringBase::getFrameIndexTy(), llvm::MachineFunction::getFrameInfo(), getMachineFunction(), llvm::EVT::getStoreSize(), llvm::EVT::getTypeForEVT(), and llvm::max().
Referenced by llvm::StatepointLoweringState::allocateStackSlot(), CC_RISCV_FastCC(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), getMOVL(), llvm::SystemZTargetLowering::LowerCall(), lowerUINT_TO_FP_vec(), and truncateScalarIntegerArg().
Create a stack temporary suitable for holding either of the specified value types.
Definition at line 1993 of file SelectionDAG.cpp.
References llvm::MachineFrameInfo::CreateStackObject(), getContext(), getDataLayout(), getFrameIndex(), llvm::TargetLoweringBase::getFrameIndexTy(), llvm::MachineFunction::getFrameInfo(), getMachineFunction(), llvm::DataLayout::getPrefTypeAlignment(), llvm::EVT::getStoreSize(), llvm::EVT::getTypeForEVT(), and llvm::max().
|
inline |
Definition at line 1434 of file SelectionDAG.h.
References llvm::SDDbgInfo::DbgBegin().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
|
inline |
Definition at line 1435 of file SelectionDAG.h.
References llvm::SDDbgInfo::DbgEnd().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
|
inline |
Definition at line 1444 of file SelectionDAG.h.
References llvm::SDDbgInfo::DbgLabelBegin().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
|
inline |
Definition at line 1447 of file SelectionDAG.h.
References llvm::computeKnownBits(), llvm::SDDbgInfo::DbgLabelEnd(), llvm::Depth, llvm::dump(), llvm::MaskedValueIsZero(), and llvm::salvageDebugInfo().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
| void SelectionDAG::DeleteNode | ( | SDNode * | N | ) |
Remove the specified node from the system.
This node must have no referrers.
Definition at line 757 of file SelectionDAG.cpp.
References assert(), llvm::SDNode::DropOperands(), llvm::ilist_node_impl< OptionsT >::getIterator(), N, and llvm::SDNode::use_empty().
Referenced by addStackMapLiveVars(), and llvm::TargetLowering::DAGCombinerInfo::CommitTargetLoweringOpt().
| LLVM_DUMP_METHOD void SelectionDAG::dump | ( | ) | const |
Definition at line 835 of file SelectionDAGDumper.cpp.
Referenced by llvm::HexagonDAGToDAGISel::PreprocessISelDAG().
|
inlinestatic |
Returns an APFloat semantics tag appropriate for the given type.
If VT is a vector type, the element semantics are returned.
Definition at line 1405 of file SelectionDAG.h.
References llvm::MVT::f128, llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::MVT::f80, llvm::EVT::getScalarType(), llvm::EVT::getSimpleVT(), llvm::APFloatBase::IEEEdouble(), llvm::APFloatBase::IEEEhalf(), llvm::APFloatBase::IEEEquad(), llvm::APFloatBase::IEEEsingle(), llvm_unreachable, llvm::APFloatBase::PPCDoubleDouble(), llvm::MVT::ppcf128, llvm::MVT::SimpleTy, and llvm::APFloatBase::x87DoubleExtended().
Referenced by foldConstantFPMath(), FoldIntToFPToInt(), getConstantFP(), GetFPLibCall(), getMemsetValue(), getNode(), llvm::ConstantFPSDNode::isValueValidForType(), LowerFABSorFNEG(), LowerFCOPYSIGN(), and vectorEltWillFoldAway().
Expand the specified ISD::VAARG node as the Legalize pass would.
Definition at line 1934 of file SelectionDAG.cpp.
Expand the specified ISD::VACOPY node as the Legalize pass would.
Definition at line 1968 of file SelectionDAG.cpp.
Referenced by LowerVACOPY().
| void SelectionDAG::ExtractVectorElements | ( | SDValue | Op, |
| SmallVectorImpl< SDValue > & | Args, | ||
| unsigned | Start = 0, |
||
| unsigned | Count = 0 |
||
| ) |
Append the extracted elements from Start to Count out of the vector Op in Args.
If Count is 0, all of the elements will be extracted.
Definition at line 9476 of file SelectionDAG.cpp.
Referenced by adjustLoadValueTypeImpl(), callingConvSupported(), constructRetValue(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), parseTexFail(), and widenVectorToPartType().
| SDValue SelectionDAG::FoldConstantArithmetic | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDNode * | N1, | ||
| SDNode * | N2 | ||
| ) |
Definition at line 4883 of file SelectionDAG.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::EVT::bitsGT(), llvm::EVT::bitsLT(), llvm::ISD::BUILTIN_OP_END, llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::dyn_cast(), FoldSymbolOffset(), getBuildVector(), getContext(), getNode(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), llvm::EVT::getScalarType(), llvm::TargetLoweringBase::getTypeToTransformTo(), getUNDEF(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), I, llvm::TargetLoweringBase::isCommutativeBinOp(), llvm::EVT::isInteger(), llvm::SDValue::isUndef(), llvm::SDNode::isUndef(), isUndef(), llvm::EVT::isVector(), NewNodesMustHaveLegalTypes, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::SmallVectorImpl< T >::resize(), llvm::ISD::SIGN_EXTEND, llvm::SmallVectorBase::size(), llvm::ISD::TRUNCATE, and llvm::NVPTX::PTXLdStInstCode::V2.
Referenced by combineShiftAnd1ToBitTest(), combineShiftOfShiftedLogic(), foldAddSubOfSignBit(), getNode(), simplifyDivRem(), stripTruncAndExt(), tryFoldToZero(), and visitORCommutative().
| SDValue SelectionDAG::FoldConstantArithmetic | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| const ConstantSDNode * | C1, | ||
| const ConstantSDNode * | C2 | ||
| ) |
Definition at line 4827 of file SelectionDAG.cpp.
References FoldValue(), llvm::ConstantSDNode::getAPIntValue(), getConstant(), and llvm::ConstantSDNode::isOpaque().
| SDValue SelectionDAG::foldConstantFPMath | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | N1, | ||
| SDValue | N2 | ||
| ) |
Fold floating-point operations with 2 operands when both operands are constants and/or undefined.
Definition at line 5067 of file SelectionDAG.cpp.
References llvm::APFloat::add(), llvm::APFloat::convert(), llvm::APFloat::copySign(), llvm::APFloat::divide(), llvm::dyn_cast(), EVTToAPFloatSemantics(), llvm::ISD::FADD, llvm::ISD::FCOPYSIGN, llvm::ISD::FDIV, llvm::ISD::FMUL, llvm::ISD::FP_ROUND, llvm::ISD::FREM, llvm::ISD::FSUB, getConstantFP(), llvm::APFloat::getNaN(), llvm::SDValue::getNode(), getUNDEF(), llvm::SDValue::isUndef(), llvm::APFloat::mod(), llvm::APFloat::multiply(), llvm::APFloatBase::rmNearestTiesToEven, and llvm::APFloat::subtract().
Referenced by getNode().
| SDValue SelectionDAG::FoldConstantVectorArithmetic | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| ArrayRef< SDValue > | Ops, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 4971 of file SelectionDAG.cpp.
References llvm::all_of(), llvm::EVT::bitsGT(), llvm::EVT::bitsLT(), llvm::ISD::BUILTIN_OP_END, llvm::ISD::CONDCODE, llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::dyn_cast(), getBuildVector(), getContext(), getNode(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), llvm::EVT::getScalarType(), llvm::TargetLoweringBase::getTypeToTransformTo(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::MVT::i1, llvm::BuildVectorSDNode::isConstant(), llvm::EVT::isInteger(), llvm::SDValue::isUndef(), isUndef(), llvm::EVT::isVector(), NewNodesMustHaveLegalTypes, NewSDValueDbgMsg(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::ISD::SETCC, llvm::ISD::SIGN_EXTEND, and llvm::ISD::TRUNCATE.
Referenced by getNode(), and scalarizeBinOpOfSplats().
| SDValue SelectionDAG::FoldSetCC | ( | EVT | VT, |
| SDValue | N1, | ||
| SDValue | N2, | ||
| ISD::CondCode | Cond, | ||
| const SDLoc & | dl | ||
| ) |
Constant fold a setcc to true or false.
Definition at line 2006 of file SelectionDAG.cpp.
Referenced by getNode().
| SDValue SelectionDAG::FoldSymbolOffset | ( | unsigned | Opcode, |
| EVT | VT, | ||
| const GlobalAddressSDNode * | GA, | ||
| const SDNode * | N2 | ||
| ) |
Definition at line 4838 of file SelectionDAG.cpp.
References llvm::ISD::ADD, llvm::dyn_cast(), llvm::GlobalAddressSDNode::getGlobal(), getGlobalAddress(), llvm::GlobalAddressSDNode::getOffset(), llvm::SDNode::getOpcode(), llvm::ISD::GlobalAddress, llvm::TargetLowering::isOffsetFoldingLegal(), and llvm::ISD::SUB.
Referenced by FoldConstantArithmetic().
| SDValue SelectionDAG::getAddrSpaceCast | ( | const SDLoc & | dl, |
| EVT | VT, | ||
| SDValue | Ptr, | ||
| unsigned | SrcAS, | ||
| unsigned | DestAS | ||
| ) |
Return an AddrSpaceCastSDNode.
Definition at line 1903 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::ISD::ADDRSPACECAST, E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), and getVTList().
|
inline |
Definition at line 591 of file SelectionDAG.h.
References llvm::APInt::getAllOnesValue(), and llvm::EVT::getScalarSizeInBits().
Referenced by combineShiftOfShiftedLogic(), flipBoolean(), foldAddSubMasked1(), foldAddSubOfSignBit(), foldExtendedSignBitTest(), getBoolConstant(), getNode(), isBSwapHWordPair(), isLowerSaturatingConditional(), LowerADDSAT_SUBSAT(), lowerShuffleAsBitBlend(), lowerShuffleAsBitMask(), matchRotateSub(), PerformORCombine_i1(), simplifyDivRem(), stripTruncAndExt(), tryFoldToZero(), and visitORCommutative().
Convert Op, which must be of integer type, to the integer type VT, by either any-extending or truncating it.
Definition at line 1142 of file SelectionDAG.cpp.
References llvm::ISD::ANY_EXTEND, llvm::EVT::bitsGT(), getNode(), llvm::SDValue::getValueType(), and llvm::ISD::TRUNCATE.
Referenced by combineBitcast(), combineScalarToVector(), combineToExtendBoolVectorInReg(), createGPRPairNode(), createMMXBuildVector(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), generateEquivalentSub(), getCopyFromPartsVector(), getCopyToPartsVector(), getDUPLANEOp(), getNode(), getShiftAmountTyForConstant(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerMUL(), llvm::HexagonTargetLowering::ReplaceNodeResults(), scalarizeExtractedBinop(), llvm::SITargetLowering::shouldEmitPCReloc(), ShrinkLoadReplaceStoreWithStore(), and widenCtPop().
| SDValue SelectionDAG::getAtomic | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | MemVT, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| SDValue | Val, | ||
| MachineMemOperand * | MMO | ||
| ) |
Gets a node for an atomic op, produces result (if relevant) and chain and takes 2 operands.
Definition at line 6613 of file SelectionDAG.cpp.
References assert(), llvm::ISD::ATOMIC_LOAD_ADD, llvm::ISD::ATOMIC_LOAD_AND, llvm::ISD::ATOMIC_LOAD_CLR, llvm::ISD::ATOMIC_LOAD_FADD, llvm::ISD::ATOMIC_LOAD_FSUB, llvm::ISD::ATOMIC_LOAD_MAX, llvm::ISD::ATOMIC_LOAD_MIN, llvm::ISD::ATOMIC_LOAD_NAND, llvm::ISD::ATOMIC_LOAD_OR, llvm::ISD::ATOMIC_LOAD_SUB, llvm::ISD::ATOMIC_LOAD_UMAX, llvm::ISD::ATOMIC_LOAD_UMIN, llvm::ISD::ATOMIC_LOAD_XOR, llvm::ISD::ATOMIC_STORE, llvm::ISD::ATOMIC_SWAP, llvm::SDValue::getValueType(), getVTList(), and llvm::MVT::Other.
Referenced by combineSetCCAtomicArith(), earlyExpandDIVFIX(), getAtomic(), getAtomicCmpSwap(), getBufferOffsetForMMO(), GetPromotionOpcode(), getReductionSDNode(), getUniformBase(), isSubBorrowChain(), and lowerAtomicArith().
| SDValue SelectionDAG::getAtomic | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | MemVT, | ||
| EVT | VT, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| MachineMemOperand * | MMO | ||
| ) |
Gets a node for an atomic op, produces result and chain and takes 1 operand.
Definition at line 6641 of file SelectionDAG.cpp.
References assert(), llvm::ISD::ATOMIC_LOAD, getAtomic(), getVTList(), and llvm::MVT::Other.
| SDValue SelectionDAG::getAtomic | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | MemVT, | ||
| SDVTList | VTList, | ||
| ArrayRef< SDValue > | Ops, | ||
| MachineMemOperand * | MMO | ||
| ) |
Gets a node for an atomic op, produces result and chain and takes N operands.
Definition at line 6579 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), and llvm::EVT::getRawBits().
| SDValue SelectionDAG::getAtomicCmpSwap | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | MemVT, | ||
| SDVTList | VTs, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| SDValue | Cmp, | ||
| SDValue | Swp, | ||
| MachineMemOperand * | MMO | ||
| ) |
Gets a node for an atomic cmpxchg op.
There are two valid Opcodes. ISD::ATOMIC_CMO_SWAP produces the value loaded and a chain result. ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS produces the value loaded, a success flag (initially i1), and a chain.
Definition at line 6601 of file SelectionDAG.cpp.
References assert(), llvm::ISD::ATOMIC_CMP_SWAP, llvm::ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS, getAtomic(), and llvm::SDValue::getValueType().
Referenced by getUniformBase().
| SDValue SelectionDAG::getAtomicMemcpy | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| unsigned | DstAlign, | ||
| SDValue | Src, | ||
| unsigned | SrcAlign, | ||
| SDValue | Size, | ||
| Type * | SizeTy, | ||
| unsigned | ElemSz, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo, | ||
| MachinePointerInfo | SrcPtrInfo | ||
| ) |
Definition at line 6333 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args.
Referenced by FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getAtomicMemmove | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| unsigned | DstAlign, | ||
| SDValue | Src, | ||
| unsigned | SrcAlign, | ||
| SDValue | Size, | ||
| Type * | SizeTy, | ||
| unsigned | ElemSz, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo, | ||
| MachinePointerInfo | SrcPtrInfo | ||
| ) |
Definition at line 6437 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args.
Referenced by FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getAtomicMemset | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| unsigned | DstAlign, | ||
| SDValue | Value, | ||
| SDValue | Size, | ||
| Type * | SizeTy, | ||
| unsigned | ElemSz, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo | ||
| ) |
Definition at line 6539 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args.
Referenced by FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getBasicBlock | ( | MachineBasicBlock * | MBB | ) |
Definition at line 1532 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), llvm::ISD::BasicBlock, E, getVTList(), llvm::None, and llvm::MVT::Other.
Referenced by AddNodeIDCustom(), callingConvSupported(), findMatchingInlineAsmOperand(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), and llvm::SelectionDAGBuilder::visitJumpTableHeader().
| SDValue llvm::SelectionDAG::getBasicBlock | ( | MachineBasicBlock * | MBB, |
| SDLoc | dl | ||
| ) |
|
inline |
Definition at line 433 of file SelectionDAG.h.
References llvm::AMDGPUISD::BFI.
Return a bitcast using the SDLoc of the value operand, and casting to the provided type.
Use getNode to set a custom SDLoc.
Definition at line 1896 of file SelectionDAG.cpp.
References llvm::ISD::BITCAST, getNode(), and llvm::SDValue::getValueType().
Referenced by BuildSplatI(), callingConvSupported(), canonicalizeBitSelect(), combineAnd(), combineAndMaskToShift(), combineAndnp(), combineANDXORWithAllOnesIntoANDNP(), combineBasicSADPattern(), combineBitcast(), combineBitcastvxi1(), combineCastedMaskArithmetic(), combineCompareEqual(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineConcatVectorOps(), combineCVTP2I_CVTTP2I(), combineExtractSubvector(), combineExtractVectorElt(), combineExtractWithShuffle(), combineFneg(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineLoad(), combineLogicBlendIntoConditionalNegate(), combineLogicBlendIntoPBLENDV(), combineMOVMSK(), combineMulToPMADDWD(), combineOr(), combinePMULDQ(), combineReductionToHorizontal(), combineRedundantDWordShuffle(), combineScalarAndWithMaskSetcc(), combineScalarToVector(), combineShuffleToVectorExtend(), combineSIntToFP(), combineStore(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineToFPTruncExtElt(), combineTruncationShuffle(), combineVectorCompareAndMaskUnaryOp(), combineVectorSizedSetCCEquality(), combineX86INT_TO_FP(), combineX86ShuffleChain(), combineX86ShuffleChainWithExtract(), combineX86ShufflesConstants(), combineXor(), convertIntLogicToFPLogic(), convertShiftLeftToScale(), createMMXBuildVector(), createVariablePermute(), EltsFromConsecutiveLoads(), ExtractBitFromMaskVector(), foldBitcastedFPLogic(), FoldIntToFPToInt(), GeneratePerfectShuffle(), getBuildDwordsVector(), getConstVector(), getCopyFromPartsVector(), getCopyToPartsVector(), getDUPLANEOp(), GetFPLibCall(), getMaskNode(), getMemCmpLoad(), getMemsetValue(), getMOVL(), llvm::X86TargetLowering::getNegatedExpression(), getOnesVector(), GetPromotionOpcode(), getScalarMaskingNode(), getScalarValueForVectorElement(), getTargetVShiftByConstNode(), getTargetVShiftNode(), getv64i1Argument(), getVShift(), getZeroVector(), llvm::TargetLowering::IncrementMemoryAddress(), isHorizontalBinOp(), IsNOT(), isSortedByValueNo(), lower256BitShuffle(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), llvm::HexagonTargetLowering::LowerCall(), LowerCTPOP(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_VECTOR_ELT_SSE4(), LowerHorizontalByteSum(), lowerINT_TO_FP_vXi64(), LowerLoad(), lowerMasksToReg(), LowerMUL(), LowerMULH(), lowerRegToMasks(), LowerRotate(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerShift(), lowerShuffleAsBitMask(), lowerShuffleAsBlend(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsBroadcast(), lowerShuffleAsByteRotate(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsByteShiftMask(), lowerShuffleAsElementInsertion(), lowerShuffleAsLanePermuteAndShuffle(), lowerShuffleAsPermuteAndUnpack(), lowerShuffleAsShift(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsVTRUNCAndUnpack(), lowerShuffleAsZeroOrAnyExtend(), lowerShuffleWithPACK(), lowerShuffleWithPSHUFB(), LowerStore(), LowerTruncateVecI1(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i32(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), lowerV16I32Shuffle(), lowerV16I8Shuffle(), lowerV2I64Shuffle(), lowerV4I32Shuffle(), lowerV4I64Shuffle(), lowerV8I16GeneralSingleInputShuffle(), lowerV8I32Shuffle(), lowerV8I64Shuffle(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE(), LowerVectorAllZeroTest(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOP(), lowerX86FPLogicOp(), matchShuffleWithPACK(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), numVectorEltsOrZero(), parseTexFail(), Passv64i1ArgInRegs(), recoverFramePointer(), reduceBuildVecToShuffleWithZero(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeExtractedBinop(), scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedVectorElts(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(), llvm::TargetLowering::SimplifyMultipleUseDemandedBits(), simplifyShuffleOfShuffle(), splitAndLowerShuffle(), truncateScalarIntegerArg(), truncateVectorWithPACK(), visitFMinMax(), widenCtPop(), and widenVec().
| SDValue SelectionDAG::getBlockAddress | ( | const BlockAddress * | BA, |
| EVT | VT, | ||
| int64_t | Offset = 0, |
||
| bool | isTarget = false, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1843 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), llvm::ISD::BlockAddress, E, getVTList(), llvm::None, and llvm::ISD::TargetBlockAddress.
Referenced by llvm::SelectionDAGBuilder::getValueImpl(), and llvm::LanaiTargetLowering::LowerBlockAddress().
Create a true or false constant of type VT using the target's BooleanContent for type OpVT.
Definition at line 1206 of file SelectionDAG.cpp.
References getAllOnesConstant(), llvm::TargetLoweringBase::getBooleanContents(), getConstant(), llvm_unreachable, llvm::TargetLoweringBase::UndefinedBooleanContent, llvm::TargetLoweringBase::ZeroOrNegativeOneBooleanContent, and llvm::TargetLoweringBase::ZeroOrOneBooleanContent.
Referenced by foldExtendedSignBitTest(), and getLogicalNOT().
Convert Op, which must be of integer type, to the integer type VT, by using an extension appropriate for the target's BooleanContent for type OpVT or truncating it.
Definition at line 1160 of file SelectionDAG.cpp.
References llvm::EVT::bitsLE(), llvm::TargetLoweringBase::getBooleanContents(), llvm::TargetLoweringBase::getExtendForContent(), getNode(), llvm::SDValue::getValueType(), and llvm::ISD::TRUNCATE.
Referenced by extractBooleanFlip(), and getShiftAmountTyForConstant().
|
inline |
Return an ISD::BUILD_VECTOR node.
The number of elements in VT, which must be a vector type, must match the number of operands in Ops. The operands must have the same type as (or, for integers, a type wider than) VT's element type.
Definition at line 758 of file SelectionDAG.h.
References llvm::ISD::BUILD_VECTOR.
Referenced by adjustLoadValueTypeImpl(), llvm::SparcTargetLowering::bitcastConstantFPToInt(), BuildExactSDIV(), buildScalarToVector(), llvm::TargetLowering::BuildSDIV(), llvm::TargetLowering::BuildUDIV(), callingConvSupported(), CollectOpsToWiden(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractSubvector(), combineShiftOfShiftedLogic(), combineShuffleOfScalars(), combineStore(), combineToExtendBoolVectorInReg(), combineX86ShuffleChain(), CompactSwizzlableVector(), ConstantBuildVector(), constructRetValue(), convertLocVTToValVT(), convertShiftLeftToScale(), elementPairIsContiguous(), ExtendToType(), extractSubVector(), foldBitcastedFPLogic(), foldCONCAT_VECTORS(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), GeneratePerfectShuffle(), GenerateTBL(), getBuildDwordsVector(), getBuildVectorSplat(), getConstant(), getConstVector(), getCopyFromPartsVector(), getGeneralPermuteNode(), getLoadExtOrTrunc(), llvm::TargetLowering::getNegatedExpression(), getNode(), getSPDenormModeValue(), getTargetVShiftByConstNode(), getTargetVShiftNode(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), incDecVectorConstant(), isClampZeroToOne(), LowerBITREVERSE(), LowerBITREVERSE_XOP(), LowerBUILD_VECTOR_i1(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorToBitOp(), LowerBuildVectorv4x32(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::AMDGPUTargetLowering::LowerFP64_TO_INT(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), lowerINT_TO_FP_vXi64(), lowerMSABinaryBitImmIntr(), lowerMSABitClearImm(), lowerMSASplatZExt(), LowerMUL(), LowerMULH(), LowerShift(), lowerShuffleAsBitBlend(), lowerShuffleAsBitMask(), lowerShuffleAsBlend(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleWithPSHUFB(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), LowerTruncateVectorStore(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerV16I8Shuffle(), lowerVECTOR_SHUFFLE_VSHF(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOPInRegLUT(), narrowExtractedVectorLoad(), NormalizeBuildVector(), parseTexFail(), PerformBUILD_VECTORCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), llvm::AMDGPUTargetLowering::performSraCombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), ReorganizeVector(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::SITargetLowering::shouldEmitPCReloc(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedVectorElts(), simplifyShuffleOfShuffle(), skipExtensionForVectorMULL(), SkipExtensionForVMULL(), splitAndLowerShuffle(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), tryBuildVectorShuffle(), tryToFoldExtendOfConstant(), vectorEltWillFoldAway(), and widenVectorToPartType().
|
inline |
Return an ISD::BUILD_VECTOR node.
The number of elements in VT, which must be a vector type, must match the number of operands in Ops. The operands must have the same type as (or, for integers, a type wider than) VT's element type.
Definition at line 767 of file SelectionDAG.h.
References llvm::ISD::BUILD_VECTOR.
|
inline |
Return a new CALLSEQ_END node, which always must have a glue result (to ensure it's not CSE'd).
CALLSEQ_END does not have a useful SDLoc.
Definition at line 895 of file SelectionDAG.h.
References llvm::ISD::CALLSEQ_END, llvm::SDValue::getNode(), llvm::MVT::Glue, isUndef(), llvm::MVT::Other, and llvm::SmallVectorTemplateBase< T >::push_back().
Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), getMOVL(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::BPFTargetLowering::LowerOperation(), LowerToTLSExecModel(), mayTailCallThisCC(), and PrepareTailCall().
|
inline |
Return a new CALLSEQ_START node, that starts new call frame, in which InSize bytes are set up inside CALLSEQ_START..CALLSEQ_END sequence and OutSize specifies part of the frame set up prior to the sequence.
Definition at line 883 of file SelectionDAG.h.
References llvm::ISD::CALLSEQ_START, llvm::MVT::Glue, and llvm::MVT::Other.
Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), getMOVL(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::BPFTargetLowering::LowerOperation(), LowerToTLSExecModel(), mayTailCallThisCC(), and truncateScalarIntegerArg().
| SDValue SelectionDAG::getCommutedVectorShuffle | ( | const ShuffleVectorSDNode & | SV | ) |
Returns an ISD::VECTOR_SHUFFLE node semantically equivalent to the shuffle node in input but with swapped operands.
Example: shuffle A, B, <0,5,2,7> -> shuffle B, A, <4,1,6,3>
Definition at line 1780 of file SelectionDAG.cpp.
References llvm::ArrayRef< T >::begin(), llvm::ShuffleVectorSDNode::commuteMask(), llvm::ArrayRef< T >::end(), llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), and getVectorShuffle().
Referenced by lowerVECTOR_SHUFFLE(), and simplifyShuffleOfShuffle().
| SDValue SelectionDAG::getCondCode | ( | ISD::CondCode | Cond | ) |
Definition at line 1587 of file SelectionDAG.cpp.
Referenced by FixedPointIntrinsicToOpcode(), GetFPLibCall(), lowerFCMPIntrinsic(), lowerICMPIntrinsic(), LowerVSETCC(), ReplaceCMP_SWAP_64Results(), and llvm::R600TargetLowering::ReplaceNodeResults().
| SDValue SelectionDAG::getConstant | ( | uint64_t | Val, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| bool | isTarget = false, |
||
| bool | isOpaque = false |
||
| ) |
Create a ConstantSDNode wrapping a constant value.
If VT is a vector type, the constant is splatted into a BUILD_VECTOR.
If only legal types can be produced, this does the necessary transformations (e.g., if the vector element type is illegal).
Definition at line 1221 of file SelectionDAG.cpp.
References assert(), llvm::EVT::getScalarType(), and llvm::EVT::getSizeInBits().
Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), addIPMSequence(), adjustForSubtraction(), adjustForTestUnderMask(), adjustICmpTruncate(), adjustSubwordCmp(), adjustZeroCmp(), AnalyzeReturnValues(), llvm::SparcTargetLowering::bitcastConstantFPToInt(), bitcastf32Toi32(), buildCallOperands(), BuildExactSDIV(), BuildIntrinsicOp(), llvm::SITargetLowering::buildRSRC(), llvm::TargetLowering::BuildSDIV(), llvm::PPCTargetLowering::BuildSDIVPow2(), BuildSplatI(), llvm::TargetLowering::BuildUDIV(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), clampDynamicVectorIndex(), CollectOpsToWiden(), combineAcrossLanesIntrinsic(), combineADC(), combineADDCARRYDiamond(), combineAddOrSubToADCOrSBB(), combineADDToADDZE(), combineAnd(), combineAndnp(), CombineANDShift(), CombineBaseUpdate(), combineBEXTR(), combineBitcast(), combineCarryDiamond(), combineCMP(), combineCompareEqual(), combineExtractSubvector(), combineExtractVectorElt(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineKSHIFT(), combineLoopMAddPattern(), combineLoopSADPattern(), combineMOVMSK(), combineMul(), combineMulSpecial(), combineOr(), combineParity(), combinePMULDQ(), combineReductionToHorizontal(), combineScalarAndWithMaskSetcc(), combineSetCC(), combineSetCCAtomicArith(), combineSext(), combineShiftAnd1ToBitTest(), combineShiftLeft(), combineShiftOfShiftedLogic(), combineShiftRightArithmetic(), combineShiftRightLogical(), combineSub(), combineSubToSubus(), combineToExtendBoolVectorInReg(), combineVectorCompare(), combineVectorShiftImm(), combineVectorShiftVar(), combineVectorSizedSetCCEquality(), combineVectorTruncationWithPACKUS(), CombineVMOVDRRCandidateWithVecOp(), combinevXi1ConstantToInteger(), combineX86AddSub(), combineX86ShuffleChain(), combineZext(), ConstantAddressBlock(), ConstantBuildVector(), constantFoldBFE(), ConvertBooleanCarryToCarryFlag(), ConvertCarryFlagToBooleanCarry(), ConvertI1VectorToInteger(), convertShiftLeftToScale(), convertValVTToLocVT(), CreateCopyOfByValArgument(), createFPCmp(), createGPRPairNode(), createLoadLR(), createMMXBuildVector(), createPSADBW(), createStoreLR(), createVariablePermute(), detectAVGPattern(), earlyExpandDIVFIX(), elementPairIsContiguous(), EltsFromConsecutiveLoads(), emitCLC(), EmitCMP(), EmitCmp(), emitConditionalComparison(), emitConstantSizeRepmov(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitMemMem(), emitSETCC(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrlen(), EmitTest(), EnsureStackAlignment(), Expand64BitShift(), llvm::TargetLowering::expandABS(), ExpandBITCAST(), expandf64Toi32(), llvm::TargetLowering::expandFixedPointDiv(), expandIntrinsicWChainHelper(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), ExtendToType(), ExtendUsesToFormExtLoad(), ExtractBitFromMaskVector(), extractBooleanFlip(), extractF64Exponent(), extractShiftForRotate(), FixedPointIntrinsicToOpcode(), flipBoolean(), foldAddSubBoolOfMaskedVal(), foldAddSubMasked1(), foldAddSubOfSignBit(), foldBitcastedFPLogic(), FoldConstantArithmetic(), foldExtendedSignBitTest(), FoldIntToFPToInt(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToBEXTR(), foldMaskedShiftToScaledMask(), fp16SrcZerosHighBits(), genConstMult(), generateEquivalentSub(), GeneratePerfectShuffle(), GenerateTBL(), getAArch64Cmp(), getAArch64XALUOOp(), getAbsolute(), llvm::MipsTargetLowering::getAddrNonPICSym64(), getARMIndexedAddressParts(), getBoolConstant(), getBufferOffsetForMMO(), getBuildVectorSplat(), getCCResult(), getCombineLoadStoreParts(), getConstant(), getConstVector(), getCopyFromParts(), getCopyFromPartsVector(), llvm::RegsForValue::getCopyFromRegs(), getCopyToPartsVector(), GetDemandedBits(), getDUPLANEOp(), getExpandedMinMaxOps(), GetExponent(), GetFPLibCall(), getGeneralPermuteNode(), llvm::AMDGPUTargetLowering::getHiHalf64(), getIntPtrConstant(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), llvm::AMDGPUTargetLowering::getLoHalf64(), getMaskNode(), getMemBasePlusOffset(), getMemCmpLoad(), getMemsetStringVal(), getMemsetValue(), getMOVL(), getMVEIndexedAddressParts(), getNode(), getNormalLoadInput(), getNOT(), getOnesVector(), getPermuteMask(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPMOVMSKB(), llvm::AVRTargetLowering::getPostIndexedAddressParts(), llvm::AVRTargetLowering::getPreIndexedAddressParts(), GetPromotionOpcode(), getReductionSDNode(), getShiftAmountConstant(), getShiftAmountTyForConstant(), getShuffleScalarElt(), GetSignificand(), getSPDenormModeValue(), llvm::NVPTXTargetLowering::getSqrtEstimate(), getT2IndexedAddressParts(), getTargetNode(), llvm::ARCTargetLowering::getTargetNodeName(), getTargetVShiftByConstNode(), getTargetVShiftNode(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), getZeroExtendInReg(), getZeroVector(), incDecVectorConstant(), llvm::TargetLowering::IncrementMemoryAddress(), initAccumulator(), insert1BitVector(), llvm::intCCToAVRCC(), IntCondCCodeToICC(), isADDADDMUL(), isAddSubZExt(), isBLACompatibleAddress(), isBSwapHWordPair(), isClampZeroToOne(), isConditionalZeroOrAllOnes(), isFloatingPointZero(), llvm::PPCTargetLowering::isLegalAddressingMode(), isLowerSaturatingConditional(), isMemOPCandidate(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), IsSmallObject(), isSubBorrowChain(), isTargetConstant(), llvm::SITargetLowering::isTypeDesirableForOp(), isVMOVModifiedImm(), isVShiftRImm(), isWordAligned(), llvm::AMDGPUTargetLowering::loadInputValue(), lower1BitShuffle(), LowerABS(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDSAT_SUBSAT(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAndToBT(), LowerAsSplatVectorLoad(), LowerATOMIC_FENCE(), lowerAtomicArith(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITREVERSE(), LowerBITREVERSE_XOP(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBUILD_VECTOR(), LowerBUILD_VECTOR_i1(), LowerBUILD_VECTORAsVariablePermute(), LowerBuildVectorv16i8(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), llvm::TargetLowering::lowerCmpEqZeroToCtlzSrl(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS_i1(), LowerCONCAT_VECTORSvXi1(), LowerCTLZ(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), LowerCTPOP(), LowerCTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_SUBVECTOR(), LowerEXTRACT_VECTOR_ELT_i1(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), lowerFABS32(), lowerFABS64(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), LowerFGETSIGN(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), LowerFunnelShift(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), LowerHorizontalByteSum(), LowerINSERT_VECTOR_ELT_i1(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP64(), lowerINT_TO_FP_vXi64(), LowerInterruptReturn(), llvm::HexagonTargetLowering::LowerINTRINSIC_VOID(), LowerINTRINSIC_W_CHAIN(), llvm::MSP430TargetLowering::LowerJumpTable(), LowerLabelRef(), llvm::MipsTargetLowering::lowerLOAD(), LowerMemOpCallTo(), LowerMINMAX(), lowerMSABinaryBitImmIntr(), lowerMSABitClear(), lowerMSABitClearImm(), lowerMSASplatImm(), lowerMSASplatZExt(), llvm::LanaiTargetLowering::LowerMUL(), LowerMUL(), lowerMUL_LOHI32(), LowerMULH(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), LowerPredicateLoad(), LowerPredicateStore(), llvm::HexagonTargetLowering::LowerPREFETCH(), LowerPREFETCH(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerReverse_VECTOR_SHUFFLEv16i8_v8i16(), LowerRotate(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerShift(), LowerShiftParts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), lowerShuffleAsBitBlend(), lowerShuffleAsBitMask(), lowerShuffleAsBlend(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsTruncBroadcast(), lowerShuffleAsVTRUNCAndUnpack(), lowerShuffleToEXPAND(), lowerShuffleWithPSHUFB(), LowerSIGN_EXTEND_Mask(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), LowerSVEIntReduction(), LowerSVEIntrinsicEXT(), LowerToTLSExecModel(), LowerTruncateVecI1(), LowerTruncateVectorStore(), llvm::HexagonTargetLowering::LowerUAddSubO(), LowerUDIV(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerUMULO_SMULO(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), lowerV16I8Shuffle(), LowerVASTART(), LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE_i1(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorCTLZ_AVX512CDI(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOPInRegLUT(), LowerVectorINT_TO_FP(), LowerVSETCC(), LowerWRITE_REGISTER(), lowerX86CmpEqZeroToCtlzSrl(), LowerXALUO(), LowerXOR(), LowerZERO_EXTEND_Mask(), llvm::SparcTargetLowering::makeAddress(), mayTailCallThisCC(), memsetStore(), MergeInputChains(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), NegateCC(), NormalizeBuildVector(), numVectorEltsOrZero(), optimizeLogicalImm(), parseTexFail(), Passv64i1ArgInRegs(), PerformAddcSubcCombine(), PerformAddeSubeCombine(), performANDCombine(), PerformARMBUILD_VECTORCombine(), PerformBFICombine(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::HexagonTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performDSPShiftCombine(), performExtendCombine(), llvm::AMDGPUTargetLowering::performFAbsCombine(), performFDivCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), performFpToIntCombine(), performGlobalAddressCombine(), performIntegerAbsCombine(), PerformIntrinsicCombine(), performLDNT1Combine(), performMulCombine(), PerformMULCombine(), performORCombine(), PerformORCombine_i1(), PerformORCombineToBFI(), performSetccAddFolding(), PerformShiftCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), performSHLCombine(), PerformSHLSimplify(), PerformSplittingToNarrowingStores(), llvm::AMDGPUTargetLowering::performSraCombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), PerformSTORECombine(), PerformSUBCombine(), performTBZCombine(), PerformTruncatingStoreCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVDUPCombine(), performXorCombine(), promoteExtBeforeAdd(), llvm::AArch64TargetLowering::ReconstructShuffle(), recoverFramePointer(), reduceBuildVecToShuffleWithZero(), ReorganizeVector(), ReplaceCMP_SWAP_64Results(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::AVRTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), replaceShuffleOfInsert(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), llvm::TargetLowering::scalarizeVectorStore(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::TargetLowering::ShrinkDemandedConstant(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::X86TargetLowering::SimplifyDemandedBitsForTargetNode(), llvm::TargetLowering::SimplifyDemandedVectorElts(), simplifyDivRem(), simplifyShift(), simplifyShuffleOfShuffle(), skipExtensionForVectorMULL(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), llvm::AMDGPUTargetLowering::split64BitValue(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), splitInt128(), splitStores(), splitStoreSplat(), llvm::AMDGPUTargetLowering::splitVector(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::storeStackInputValue(), stripTruncAndExt(), llvm::ARMTargetLowering::targetShrinkDemandedConstant(), llvm::X86TargetLowering::targetShrinkDemandedConstant(), TranslateX86CC(), truncateScalarIntegerArg(), truncateVecElts(), tryAdvSIMDModImm16(), tryAdvSIMDModImm32(), tryAdvSIMDModImm321s(), tryAdvSIMDModImm64(), tryAdvSIMDModImm8(), tryAdvSIMDModImmFP(), tryBuildVectorShuffle(), tryCombineShiftImm(), tryCombineToEXTR(), tryConvertSVEWideCompare(), tryExtendDUPToExtractHigh(), tryFoldToZero(), tryFormConcatFromShuffle(), tryLowerToSLI(), TryMULWIDECombine(), tryToFoldExtendOfConstant(), UnpackFromArgumentSlot(), unrollVectorShift(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), visitFMinMax(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), widenCtPop(), widenVec(), WidenVector(), llvm::AMDGPUTargetLowering::WidenVectorLoad(), willShiftRightEliminate(), and WinDBZCheckDenominator().
| SDValue SelectionDAG::getConstant | ( | const APInt & | Val, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| bool | isTarget = false, |
||
| bool | isOpaque = false |
||
| ) |
Definition at line 1230 of file SelectionDAG.cpp.
References llvm::ConstantInt::get(), and getConstant().
| SDValue SelectionDAG::getConstant | ( | const ConstantInt & | Val, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| bool | isTarget = false, |
||
| bool | isOpaque = false |
||
| ) |
Definition at line 1235 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddBoolean(), AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), assert(), llvm::ISD::BITCAST, llvm::ISD::Constant, llvm::numbers::e, llvm::SmallVectorTemplateCommon< T >::end(), llvm::ConstantInt::get(), llvm::ConstantInt::getBitWidth(), getBuildVector(), getConstant(), getContext(), getDataLayout(), getNode(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), getSplatBuildVector(), getSplatVector(), llvm::TargetLoweringBase::getTypeAction(), llvm::TargetLoweringBase::getTypeToTransformTo(), llvm::ConstantInt::getValue(), llvm::EVT::getVectorNumElements(), llvm::EVT::getVectorVT(), getVTList(), llvm::SmallVectorImpl< T >::insert(), llvm::DataLayout::isBigEndian(), llvm::EVT::isInteger(), llvm::EVT::isScalableVector(), llvm::EVT::isVector(), llvm::APInt::lshr(), NewNodesMustHaveLegalTypes, NewSDValueDbgMsg(), llvm::None, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::reverse(), llvm::ISD::TargetConstant, llvm::TargetLoweringBase::TypeExpandInteger, llvm::TargetLoweringBase::TypePromoteInteger, and llvm::APInt::zextOrTrunc().
| SDDbgValue * SelectionDAG::getConstantDbgValue | ( | DIVariable * | Var, |
| DIExpression * | Expr, | ||
| const Value * | C, | ||
| const DebugLoc & | DL, | ||
| unsigned | O | ||
| ) |
Creates a constant SDDbgValue node.
Definition at line 8130 of file SelectionDAG.cpp.
References assert(), and llvm::SDDbgInfo::getAlloc().
Referenced by getUnderlyingArgRegs(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), and llvm::SelectionDAGBuilder::salvageUnresolvedDbgValue().
Create a ConstantFPSDNode wrapping a constant value.
If VT is a vector type, the constant is splatted into a BUILD_VECTOR.
If only legal types can be produced, this does the necessary transformations (e.g., if the vector element type is illegal). The forms that take a double should only be used for simple constants that can be exactly represented in VT. No checks are made.
Definition at line 1376 of file SelectionDAG.cpp.
References llvm::lltok::APFloat, llvm::APFloat::convert(), EVTToAPFloatSemantics(), llvm::MVT::f128, llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::MVT::f80, llvm::EVT::getScalarType(), llvm_unreachable, llvm::MVT::ppcf128, and llvm::APFloatBase::rmNearestTiesToEven.
Referenced by callingConvSupported(), combineBitcast(), combineExtractWithShuffle(), combineFneg(), EltsFromConsecutiveLoads(), expandExp(), expandLog(), ExpandPowI(), foldConstantFPMath(), foldFPToIntToFP(), getConstantFP(), getConstVector(), getEstimate(), getF32Constant(), GetFPLibCall(), getFPTernOp(), getMemsetStringVal(), getMemsetValue(), llvm::TargetLowering::getNegatedExpression(), getNode(), getNormalLoadInput(), getShuffleScalarElt(), getSPDenormModeValue(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), getZeroVector(), llvm::SITargetLowering::isCanonicalized(), isContractable(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerFABSorFNEG(), llvm::AMDGPUTargetLowering::LowerFCEIL(), LowerFCOPYSIGN(), llvm::AMDGPUTargetLowering::lowerFEXP(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::AMDGPUTargetLowering::LowerFLOG(), llvm::AMDGPUTargetLowering::LowerFP64_TO_INT(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFROUND_LegalFTRUNC(), lowerShuffleAsBitMask(), LowerTruncateVecI1(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i32(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), parseTexFail(), llvm::AMDGPUTargetLowering::performRcpCombine(), reduceBuildVecToShuffleWithZero(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), truncateScalarIntegerArg(), vectorEltWillFoldAway(), visitFMinMax(), and widenVec().
| SDValue SelectionDAG::getConstantFP | ( | const APFloat & | Val, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| bool | isTarget = false |
||
| ) |
Definition at line 1339 of file SelectionDAG.cpp.
References llvm::ConstantFP::get(), getConstantFP(), and getContext().
| SDValue SelectionDAG::getConstantFP | ( | const ConstantFP & | V, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| bool | isTarget = false |
||
| ) |
Definition at line 1344 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), assert(), llvm::ISD::ConstantFP, llvm::EVT::getScalarType(), getSplatBuildVector(), getVTList(), llvm::EVT::isFloatingPoint(), llvm::EVT::isVector(), NewSDValueDbgMsg(), llvm::None, and llvm::ISD::TargetConstantFP.
| SDValue SelectionDAG::getConstantPool | ( | const Constant * | C, |
| EVT | VT, | ||
| unsigned | Align = 0, |
||
| int | Offs = 0, |
||
| bool | isT = false, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1461 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), assert(), C, llvm::ISD::ConstantPool, E, llvm::DataLayout::getABITypeAlignment(), getDataLayout(), llvm::DataLayout::getPrefTypeAlignment(), llvm::Value::getType(), getVTList(), llvm::None, shouldOptForSize(), and llvm::ISD::TargetConstantPool.
Referenced by getAddressForMemoryInput(), getNormalLoadInput(), IsSmallObject(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), and scalarizeBinOpOfSplats().
| SDValue SelectionDAG::getConstantPool | ( | MachineConstantPoolValue * | C, |
| EVT | VT, | ||
| unsigned | Align = 0, |
||
| int | Offs = 0, |
||
| bool | isT = false, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1489 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::MachineConstantPoolValue::addSelectionDAGCSEId(), assert(), C, llvm::ISD::ConstantPool, E, getDataLayout(), llvm::DataLayout::getPrefTypeAlignment(), llvm::MachineConstantPoolValue::getType(), getVTList(), llvm::None, and llvm::ISD::TargetConstantPool.
|
inline |
Definition at line 430 of file SelectionDAG.h.
References Context.
Referenced by AddCombineVUZPToVPADDL(), llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), adjustLoadValueTypeImpl(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), buildPCRelGlobalAddress(), callingConvSupported(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), CollectOpsToWiden(), combineAnd(), combineBitcastvxi1(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineConcatVectorOps(), combineExtInVec(), combineExtractVectorElt(), combineFMinNumFMaxNum(), combineGatherScatter(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineLoad(), combineLoopMAddPattern(), combineMinNumMaxNum(), combineOr(), combineShiftAnd1ToBitTest(), combineShiftOfShiftedLogic(), combineShuffleToVectorExtend(), combineSIntToFP(), combineStore(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineToFPTruncExtElt(), combineTruncateWithSat(), combineUIntToFP(), CombineVMOVDRRCandidateWithVecOp(), combinevXi1ConstantToInteger(), concatSubVectors(), ConstantBuildVector(), CreateStackTemporary(), detectPMADDUBSW(), earlyExpandDIVFIX(), EltsFromConsecutiveLoads(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), errorUnsupported(), expandDivFix(), llvm::TargetLowering::expandFixedPointDiv(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), extractSubVector(), fail(), findMatchingInlineAsmOperand(), FindMemType(), foldBitcastedFPLogic(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), foldShuffleOfConcatUndefs(), foldXorTruncShiftIntoCmp(), getBufferOffsetForMMO(), getBuildPairElt(), getConstant(), getConstantFP(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), getEstimate(), getEVTAlignment(), getExpandedMinMaxOps(), getFauxShuffleMask(), GetFPLibCall(), getFPTernOp(), getLoadExtOrTrunc(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMemsetStringVal(), getMemsetValue(), getMOVL(), getNormalLoadInput(), getPermuteMask(), GetPromotionOpcode(), GetRegistersForValue(), llvm::AVRTargetLowering::getSetCCResultType(), getShiftAmountTyForConstant(), getSPDenormModeValue(), llvm::AMDGPUTargetLowering::getSplitDestVTs(), getTargetNode(), llvm::ARCTargetLowering::getTargetNodeName(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::TargetLowering::IncrementMemoryAddress(), llvm::SelectionDAGBuilder::init(), isClampZeroToOne(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFunctionGlobalAddress(), llvm::AMDGPUTargetLowering::isLoadBitCastBeneficial(), llvm::TargetLoweringBase::isLoadBitCastBeneficial(), isNegativeOne(), isSETCCorConvertedSETCC(), IsSmallObject(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), LowerADDSAT_SUBSAT(), LowerADDSUBCARRY(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBUILD_VECTOR_i1(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::SITargetLowering::LowerCallResult(), LowerCallResult(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), lowerFABS64(), llvm::AMDGPUTargetLowering::LowerFCEIL(), lowerFCMPIntrinsic(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFROUND_LegalFTRUNC(), LowerFSINCOS(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), lowerICMPIntrinsic(), LowerINSERT_VECTOR_ELT_i1(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), LowerInterruptReturn(), LowerMSCATTER(), llvm::BPFTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), LowerPredicateLoad(), LowerPredicateStore(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), lowerRegToMasks(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), LowerStore(), LowerSVEIntReduction(), LowerSVEIntrinsicEXT(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVASTART(), LowerVECTOR_SHUFFLE(), LowerVectorINT_TO_FP(), LowerVSETCC(), MatchingStackOffset(), matchPMADDWD(), matchPMADDWD_2(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), numVectorEltsOrZero(), parseTexFail(), Passv64i1ArgInRegs(), PerformARMBUILD_VECTORCombine(), PerformBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performExtendCombine(), PerformInsertEltCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), performSelectCombine(), PerformSplittingToNarrowingStores(), PerformSplittingToWideningLoad(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PerformTruncatingStoreCombine(), printMemOperand(), promoteToConstantPool(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceBuildVecToShuffleWithZero(), reduceVMULWidth(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeExtractedBinop(), llvm::TargetLowering::scalarizeVectorStore(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), llvm::SITargetLowering::shouldEmitPCReloc(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), simplifyShuffleOfShuffle(), llvm::TargetLowering::softenSetCCOperands(), splitStores(), stripTruncAndExt(), truncateScalarIntegerArg(), truncateVectorWithPACK(), tryFoldToZero(), tryFormConcatFromShuffle(), tryToElideArgumentCopy(), UnpackFromArgumentSlot(), llvm::TargetLowering::verifyReturnAddressArgumentIsConstant(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), widenCtPop(), widenVec(), and llvm::AMDGPUTargetLowering::WidenVectorLoad().
|
inline |
Definition at line 729 of file SelectionDAG.h.
References llvm::ISD::CopyFromReg, and llvm::MVT::Other.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), buildCallOperands(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), EnsureStackAlignment(), expandIntrinsicWChainHelper(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), llvm::RegsForValue::getCopyFromRegs(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getFRAMEADDR(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), getReadTimeStampCounter(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getv64i1Argument(), isFunctionGlobalAddress(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::IsLegalToFold(), llvm::ARMTargetLowering::isReadOnly(), isSortedByValueNo(), isSubBorrowChain(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::SITargetLowering::LowerCallResult(), LowerCallResult(), LowerCMP_SWAP(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), lowerFABS64(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), LowerMUL(), llvm::BPFTargetLowering::LowerOperation(), lowerRegToMasks(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerSETCC(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerVASTART(), LowerVectorINT_TO_FP(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), Passv64i1ArgInRegs(), performDivRemCombine(), recoverFramePointer(), llvm::SparcTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceZeroVectorStore(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::SITargetLowering::shouldEmitPCReloc(), truncateScalarIntegerArg(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromRegLoc(), llvm::SelectionDAGBuilder::visitBitTestCase(), and llvm::SelectionDAGBuilder::visitJumpTable().
|
inline |
Definition at line 738 of file SelectionDAG.h.
References llvm::ISD::CopyFromReg, getCondCode(), llvm::SDValue::getNode(), llvm::MVT::Glue, llvm::makeArrayRef(), and llvm::MVT::Other.
|
inline |
Definition at line 703 of file SelectionDAG.h.
References llvm::ISD::CopyToReg, llvm::SDValue::getValueType(), and llvm::MVT::Other.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), buildCallOperands(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), emitRepmovs(), expandIntrinsicWChainHelper(), llvm::RegsForValue::getCopyToRegs(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), getReductionSDNode(), llvm::ARCTargetLowering::getTargetNodeName(), isFloatingPointZero(), llvm::SelectionDAGISel::IsLegalToFold(), isSortedByValueNo(), isSubBorrowChain(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), llvm::HexagonTargetLowering::LowerCallResult(), LowerCallResult(), LowerCMP_SWAP(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFABS64(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSLocalDynamicModel(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), parseTexFail(), Passv64i1ArgInRegs(), llvm::ARMTargetLowering::PerformCMOVCombine(), prepareDescriptorIndirectCall(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::SITargetLowering::shouldEmitPCReloc(), truncateScalarIntegerArg(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitBitTestHeader(), and llvm::SelectionDAGBuilder::visitJumpTableHeader().
|
inline |
Definition at line 712 of file SelectionDAG.h.
References llvm::ISD::CopyToReg, llvm::SDValue::getNode(), llvm::SDValue::getValueType(), llvm::MVT::Glue, llvm::makeArrayRef(), and llvm::MVT::Other.
|
inline |
Definition at line 721 of file SelectionDAG.h.
References llvm::ISD::CopyToReg, llvm::SDValue::getNode(), llvm::MVT::Glue, llvm::makeArrayRef(), N, llvm::MVT::Other, and Reg.
|
inline |
Definition at line 423 of file SelectionDAG.h.
References llvm::MachineFunction::getDataLayout().
Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), addShuffleForVecExtend(), addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), llvm::SparcTargetLowering::bitcastConstantFPToInt(), buildCallOperands(), BuildExactSDIV(), buildPCRelGlobalAddress(), llvm::TargetLowering::BuildSDIV(), llvm::TargetLowering::BuildUDIV(), callingConvSupported(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), CollectOpsToWiden(), combineBVOfVecSExt(), combineConcatVectorOps(), combineFMinNumFMaxNum(), combineHorizontalPredicateResult(), combineLoad(), combineOrShiftToFunnelShift(), combineShiftAnd1ToBitTest(), combineShuffleToVectorExtend(), combineStore(), combineTruncationShuffle(), combineVectorSizedSetCCEquality(), computeKnownBits(), ComputeNumSignBits(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), createGPRPairNode(), CreateStackTemporary(), earlyExpandDIVFIX(), EltsFromConsecutiveLoads(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::emitStackGuardXorFP(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::TargetLowering::expandABS(), ExpandBITCAST(), llvm::TargetLowering::expandFixedPointDiv(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), foldBitcastedFPLogic(), foldXorTruncShiftIntoCmp(), generateEquivalentSub(), GeneratePerfectShuffle(), getAddressForMemoryInput(), getAVX2GatherNode(), getBufferOffsetForMMO(), getBuildPairElt(), getConstant(), getConstantPool(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), getEstimate(), getEVTAlignment(), GetExponent(), GetFPLibCall(), getFPTernOp(), llvm::SelectionDAGBuilder::getFrameIndexTy(), getGatherNode(), getGlobalAddress(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), getIntPtrConstant(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLifetimeNode(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), getLoadStackGuard(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMemsetStringVal(), getMOVL(), getNextIntArgReg(), getNormalLoadInput(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBase(), llvm::TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPPCf128HiElementSelector(), getPrefetchNode(), getReductionSDNode(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), getScatterNode(), getShiftAmountConstant(), getShiftAmountOperand(), getShiftAmountTyForConstant(), getSPDenormModeValue(), llvm::PPC::getSplatIdxForPPCMnemonics(), getSymbolFunctionGlobalAddress(), getTargetNode(), llvm::ARCTargetLowering::getTargetNodeName(), getUnderlyingArgRegs(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::SelectionDAGBuilder::init(), llvm::intCCToAVRCC(), isBLACompatibleAddress(), isExtendedBUILD_VECTOR(), llvm::AMDGPUTargetLowering::isLoadBitCastBeneficial(), llvm::TargetLoweringBase::isLoadBitCastBeneficial(), IsPredicateKnownToFail(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), IsSmallObject(), isSortedByValueNo(), isTargetConstant(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorReductionOp(), isVMOVModifiedImm(), llvm::PPC::isVMRGEOShuffleMask(), llvm::PPC::isVMRGHShuffleMask(), llvm::PPC::isVMRGLShuffleMask(), llvm::PPC::isVPKUDUMShuffleMask(), llvm::PPC::isVPKUHUMShuffleMask(), llvm::PPC::isVPKUWUMShuffleMask(), llvm::PPC::isVSLDOIShuffleMask(), isWordAligned(), LowerADDSAT_SUBSAT(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), llvm::MSP430TargetLowering::LowerBlockAddress(), llvm::HexagonTargetLowering::LowerBlockAddress(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), LowerCTPOP(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), LowerF64Op(), llvm::AMDGPUTargetLowering::LowerFCEIL(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFROUND_LegalFTRUNC(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), llvm::HexagonTargetLowering::LowerGLOBAL_OFFSET_TABLE(), llvm::LanaiTargetLowering::LowerGlobalAddress(), llvm::MSP430TargetLowering::LowerGlobalAddress(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), llvm::NVPTXTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), LowerINTRINSIC_W_CHAIN(), llvm::SparcTargetLowering::LowerINTRINSIC_WO_CHAIN(), llvm::LanaiTargetLowering::LowerJumpTable(), llvm::MSP430TargetLowering::LowerJumpTable(), LowerMemOpCallTo(), lowerMSABitClearImm(), LowerMUL(), llvm::R600TargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::MSP430TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), LowerVASTART(), LowerWRITE_REGISTER(), llvm::SparcTargetLowering::makeAddress(), mapWasmLandingPadIndex(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), numVectorEltsOrZero(), parseTexFail(), Passv64i1ArgInRegs(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformSTORECombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PerformTruncatingStoreCombine(), PerformVMOVRRDCombine(), pickOpcodeForVT(), promoteToConstantPool(), recoverFramePointer(), reduceBuildVecToShuffleWithZero(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), llvm::TargetLowering::scalarizeVectorStore(), llvm::AVRDAGToDAGISel::SelectAddr(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::SelectionDAGISel::SelectCodeCommon(), selectI64Imm(), llvm::AVRDAGToDAGISel::selectIndexedLoad(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifyDemandedVectorElts(), simplifyDivRem(), llvm::TargetLowering::SimplifyMultipleUseDemandedBits(), simplifyShuffleOfShuffle(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), llvm::AMDGPUTargetLowering::splitVector(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), stripTruncAndExt(), transformCallee(), truncateScalarIntegerArg(), tryToElideArgumentCopy(), UnpackFromArgumentSlot(), unpackFromMemLoc(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), widenCtPop(), llvm::AMDGPUTargetLowering::WidenVectorLoad(), and WinDBZCheckDenominator().
| SDDbgLabel * SelectionDAG::getDbgLabel | ( | DILabel * | Label, |
| const DebugLoc & | DL, | ||
| unsigned | O | ||
| ) |
Creates a SDDbgLabel node.
Definition at line 8264 of file SelectionDAG.cpp.
References assert(), DAGUpdateListener, E, and llvm::SDDbgInfo::getAlloc().
Referenced by FixedPointIntrinsicToOpcode().
| SDDbgValue * SelectionDAG::getDbgValue | ( | DIVariable * | Var, |
| DIExpression * | Expr, | ||
| SDNode * | N, | ||
| unsigned | R, | ||
| bool | IsIndirect, | ||
| const DebugLoc & | DL, | ||
| unsigned | O | ||
| ) |
Creates a SDDbgValue node.
getDbgValue - Creates a SDDbgValue node.
Definition at line 8120 of file SelectionDAG.cpp.
References assert(), and llvm::SDDbgInfo::getAlloc().
Referenced by FixedPointIntrinsicToOpcode(), getUnderlyingArgRegs(), salvageDebugInfo(), and transferDbgValues().
|
inline |
Get the debug values which reference the given SDNode.
Definition at line 1425 of file SelectionDAG.h.
References llvm::SDDbgInfo::getSDDbgValues().
Referenced by ProcessSDDbgValues(), salvageDebugInfo(), and transferDbgValues().
See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used.
If so, return the simpler operand, otherwise return a null SDValue.
(This exists alongside SimplifyDemandedBits because GetDemandedBits can simplify nodes with multiple uses more aggressively.)
TODO: really we should be making this into the DAG equivalent of SimplifyMultipleUseDemandedBits and not generate any new nodes.
Definition at line 2165 of file SelectionDAG.cpp.
References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().
Referenced by combineBT(), GetDemandedBits(), ShrinkLoadReplaceStoreWithStore(), and simplifyI24().
| SDValue SelectionDAG::GetDemandedBits | ( | SDValue | V, |
| const APInt & | DemandedBits, | ||
| const APInt & | DemandedElts | ||
| ) |
See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used in the elements specified by DemandedElts.
If so, return the simpler operand, otherwise return a null SDValue.
(This exists alongside SimplifyDemandedBits because GetDemandedBits can simplify nodes with multiple uses more aggressively.)
TODO: really we should be making this into the DAG equivalent of SimplifyMultipleUseDemandedBits and not generate any new nodes.
Definition at line 2178 of file SelectionDAG.cpp.
References llvm::ISD::AND, llvm::ISD::ANY_EXTEND, assert(), computeKnownBits(), llvm::ISD::Constant, llvm::APInt::getActiveBits(), llvm::APInt::getBitWidth(), getConstant(), GetDemandedBits(), llvm::SDValue::getNode(), getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getScalarValueSizeInBits(), llvm::SDValue::getValueType(), llvm::SDNode::hasOneUse(), llvm::isConstOrConstSplat(), llvm::APInt::isSubsetOf(), llvm::ISD::OR, llvm::ISD::SIGN_EXTEND_INREG, llvm::TargetLowering::SimplifyMultipleUseDemandedBits(), llvm::ISD::SRL, llvm::APInt::trunc(), and llvm::ISD::XOR.
|
inline |
Return the current function's default denormal handling kind for the given floating point type.
Definition at line 1741 of file SelectionDAG.h.
References llvm::MachineFunction::getDenormalMode().
|
inline |
Definition at line 429 of file SelectionDAG.h.
Referenced by llvm::FunctionLoweringInfo::set().
Definition at line 1819 of file SelectionDAG.cpp.
References llvm::ISD::EH_LABEL, and getLabelNode().
Referenced by llvm::SelectionDAGBuilder::lowerInvokable().
|
inline |
Return the token chain corresponding to the entry of the function.
Definition at line 485 of file SelectionDAG.h.
Referenced by llvm::AMDGPUTargetLowering::addTokenForArgument(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), buildPCRelGlobalAddress(), callingConvSupported(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), clear(), llvm::SITargetLowering::copyToM0(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), llvm::AMDGPUTargetLowering::CreateLiveInRegisterRaw(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), llvm::MipsTargetLowering::getAddrLocal(), llvm::SelectionDAGBuilder::getCopyFromRegs(), getFLUSHW(), getFRAMEADDR(), getInputChainForNode(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMemCmpLoad(), getNormalLoadInput(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::AVRTargetLowering::getSetCCResultType(), getSPDenormModeValue(), getStackArgumentTokenFactor(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), getZeroVector(), HandleMergeInputChains(), isFloatingPointZero(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADJUST_TRAMPOLINE(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), lowerFABS64(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), lowerINT_TO_FP_vXi64(), LowerINTRINSIC_W_CHAIN(), LowerMUL(), LowerMULH(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerSETCC(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSGeneralDynamicModel64(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVectorINT_TO_FP(), llvm::SparcTargetLowering::makeAddress(), llvm::TargetLowering::makeLibCall(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), parseTexFail(), llvm::ARMTargetLowering::PerformCMOVCombine(), performDivRemCombine(), recoverFramePointer(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceZeroVectorStore(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), llvm::SITargetLowering::shouldEmitPCReloc(), truncateScalarIntegerArg(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and WinDBZCheckDenominator().
Compute the default alignment value for the given type.
Definition at line 1003 of file SelectionDAG.cpp.
References llvm::PointerType::get(), llvm::DataLayout::getABITypeAlignment(), getContext(), getDataLayout(), llvm::Type::getInt8Ty(), llvm::EVT::getTypeForEVT(), and llvm::MVT::iPTR.
Referenced by getLoad(), getMemIntrinsicNode(), getStore(), getTruncStore(), and getUniformBase().
Definition at line 1560 of file SelectionDAG.cpp.
Referenced by FixedPointIntrinsicToOpcode(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), and LowerToTLSExecModel().
| SDValue SelectionDAG::getExtLoad | ( | ISD::LoadExtType | ExtType, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| MachinePointerInfo | PtrInfo, | ||
| EVT | MemVT, | ||
| unsigned | Alignment = 0, |
||
| MachineMemOperand::Flags | MMOFlags = MachineMemOperand::MONone, |
||
| const AAMDNodes & | AAInfo = AAMDNodes() |
||
| ) |
Definition at line 6885 of file SelectionDAG.cpp.
References getLoad(), getUNDEF(), llvm::SDValue::getValueType(), llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
Referenced by adjustSubwordCmp(), buildCallOperands(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), combineExtInVec(), combineShiftAnd1ToBitTest(), ConstantAddressBlock(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), ExtendUsesToFormExtLoad(), foldExtendedSignBitTest(), FoldIntToFPToInt(), GetFPLibCall(), getLoadExtOrTrunc(), getMemcpyLoadsAndStores(), getShiftAmountTyForConstant(), getVectorCompareInfo(), isSubBorrowChain(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), LowerPredicateLoad(), LowerToTLSExecModel(), lowerUINT_TO_FP_vec(), numVectorEltsOrZero(), llvm::SparcTargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), llvm::TargetLowering::scalarizeVectorLoad(), ShrinkLoadReplaceStoreWithStore(), SkipLoadExtensionForVMULL(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), stripTruncAndExt(), truncateScalarIntegerArg(), tryToFoldExtOfExtload(), tryToFoldExtOfLoad(), unpackFromMemLoc(), widenCtPop(), and llvm::AMDGPUTargetLowering::WidenVectorLoad().
| SDValue SelectionDAG::getExtLoad | ( | ISD::LoadExtType | ExtType, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6896 of file SelectionDAG.cpp.
References getLoad(), getUNDEF(), llvm::SDValue::getValueType(), llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
Convert Op, which must be of float type, to the float type VT, by either extending or rounding (by truncation).
Definition at line 1122 of file SelectionDAG.cpp.
References llvm::EVT::bitsGT(), llvm::ISD::FP_EXTEND, llvm::ISD::FP_ROUND, getIntPtrConstant(), getNode(), and llvm::SDValue::getValueType().
Referenced by getCopyFromPartsVector(), and LowerUINT_TO_FP_i32().
Definition at line 1427 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), E, llvm::ISD::FrameIndex, getVTList(), llvm::None, and llvm::ISD::TargetFrameIndex.
Referenced by llvm::StatepointLoweringState::allocateStackSlot(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::X86TargetLowering::BuildFILD(), CalculateTailCallArgDest(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), CreateStackTemporary(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), EnsureStackAlignment(), FixedPointIntrinsicToOpcode(), getAddressForMemoryInput(), getLifetimeNode(), getMOVL(), getNextIntArgReg(), getNormalLoadInput(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::intCCToAVRCC(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), lowerCallResult(), LowerCallResult(), llvm::TargetLowering::LowerCallTo(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerINT_TO_FP_vXi64(), LowerINTRINSIC_W_CHAIN(), lowerStatepointMetaArgs(), llvm::MipsTargetLowering::lowerSTORE(), lowerUINT_TO_FP_vec(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), mayTailCallThisCC(), shouldGuaranteeTCO(), truncateScalarIntegerArg(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().
| SDDbgValue * SelectionDAG::getFrameIndexDbgValue | ( | DIVariable * | Var, |
| DIExpression * | Expr, | ||
| unsigned | FI, | ||
| bool | IsIndirect, | ||
| const DebugLoc & | DL, | ||
| unsigned | O | ||
| ) |
Creates a FrameIndex SDDbgValue node.
FrameIndex.
Definition at line 8140 of file SelectionDAG.cpp.
References assert(), llvm::SDDbgValue::FRAMEIX, and llvm::SDDbgInfo::getAlloc().
Referenced by FixedPointIntrinsicToOpcode(), getUnderlyingArgRegs(), and llvm::SelectionDAGBuilder::handleDebugValue().
Return a GLOBAL_OFFSET_TABLE node. This does not have a useful SDLoc.
Definition at line 916 of file SelectionDAG.h.
References llvm::ISD::GLOBAL_OFFSET_TABLE, and Size.
Referenced by llvm::TargetLowering::getPICJumpTableRelocBase(), and llvm::HexagonTargetLowering::LowerGLOBALADDRESS().
| SDValue SelectionDAG::getGlobalAddress | ( | const GlobalValue * | GV, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| int64_t | offset = 0, |
||
| bool | isTargetGA = false, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1394 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), assert(), E, getDataLayout(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::GlobalValue::getType(), getVTList(), llvm::ISD::GlobalAddress, llvm::ISD::GlobalTLSAddress, llvm::GlobalValue::isThreadLocal(), llvm::None, llvm::SignExtend64(), llvm::ISD::TargetGlobalAddress, and llvm::ISD::TargetGlobalTLSAddress.
Referenced by FoldSymbolOffset(), llvm::XCoreTargetLowering::getJumpTableEncoding(), getSymbolFunctionGlobalAddress(), llvm::SelectionDAGBuilder::getValueImpl(), isWordAligned(), performGlobalAddressCombine(), and tryFoldToZero().
Get graph attributes for a node.
getGraphAttrs - Get graph attributes for a node.
(eg. "color=red".) Used from getNodeAttributes.
Definition at line 193 of file SelectionDAGPrinter.cpp.
References llvm::errs(), and I.
Referenced by llvm::DOTGraphTraits< SelectionDAG * >::getNodeAttributes().
Return the HeapAllocSite type associated with the SDNode, if it exists.
Definition at line 1732 of file SelectionDAG.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), and llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
| SDValue SelectionDAG::getIndexedLoad | ( | SDValue | OrigLoad, |
| const SDLoc & | dl, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| ISD::MemIndexedMode | AM | ||
| ) |
Definition at line 6904 of file SelectionDAG.cpp.
References assert(), llvm::MemSDNode::getAAInfo(), llvm::MemSDNode::getAlignment(), llvm::MemSDNode::getChain(), llvm::LoadSDNode::getExtensionType(), llvm::MachineMemOperand::getFlags(), getLoad(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::LoadSDNode::getOffset(), llvm::MemSDNode::getPointerInfo(), llvm::SDValue::getValueType(), llvm::SDValue::isUndef(), llvm::ARM_MB::LD, llvm::MachineMemOperand::MODereferenceable, and llvm::MachineMemOperand::MOInvariant.
Referenced by getCombineLoadStoreParts(), and getVectorCompareInfo().
| SDValue SelectionDAG::getIndexedMaskedLoad | ( | SDValue | OrigLoad, |
| const SDLoc & | dl, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| ISD::MemIndexedMode | AM | ||
| ) |
Definition at line 7099 of file SelectionDAG.cpp.
References assert(), llvm::MemSDNode::getChain(), llvm::MaskedLoadSDNode::getExtensionType(), llvm::MaskedLoadSDNode::getMask(), getMaskedLoad(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::MaskedLoadSDNode::getOffset(), llvm::MaskedLoadSDNode::getPassThru(), llvm::SDValue::getValueType(), llvm::MaskedLoadSDNode::isExpandingLoad(), llvm::SDValue::isUndef(), and llvm::ARM_MB::LD.
Referenced by getCombineLoadStoreParts().
| SDValue SelectionDAG::getIndexedMaskedStore | ( | SDValue | OrigStore, |
| const SDLoc & | dl, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| ISD::MemIndexedMode | AM | ||
| ) |
Definition at line 7147 of file SelectionDAG.cpp.
References assert(), llvm::MemSDNode::getChain(), llvm::MaskedStoreSDNode::getMask(), getMaskedStore(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::MaskedStoreSDNode::getOffset(), llvm::MaskedStoreSDNode::getValue(), llvm::MaskedStoreSDNode::isCompressingStore(), llvm::MaskedStoreSDNode::isTruncatingStore(), llvm::SDValue::isUndef(), and llvm::ARM_MB::ST.
Referenced by getCombineLoadStoreParts().
| SDValue SelectionDAG::getIndexedStore | ( | SDValue | OrigStore, |
| const SDLoc & | dl, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| ISD::MemIndexedMode | AM | ||
| ) |
Definition at line 7037 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::MemSDNode::getChain(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::StoreSDNode::getOffset(), llvm::MemSDNode::getPointerInfo(), llvm::EVT::getRawBits(), llvm::MemSDNode::getRawSubclassData(), llvm::StoreSDNode::getValue(), llvm::SDValue::getValueType(), getVTList(), llvm::StoreSDNode::isTruncatingStore(), llvm::SDValue::isUndef(), NewSDValueDbgMsg(), llvm::MVT::Other, llvm::ARM_MB::ST, and llvm::ISD::STORE.
Referenced by getCombineLoadStoreParts(), and getVectorCompareInfo().
Definition at line 1328 of file SelectionDAG.cpp.
References getConstant(), getDataLayout(), and llvm::TargetLoweringBase::getPointerTy().
Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), buildFromShuffleMostly(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBitcast(), combineBVOfVecSExt(), combineCompareEqual(), combineConcatVectorOps(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineInsertSubvector(), combineLoopSADPattern(), combineReductionToHorizontal(), combineTargetShuffle(), combineTruncateWithSat(), CompactSwizzlableVector(), emitConstantSizeRepmov(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), emitRepmovsB(), llvm::PPCTargetLowering::expandVSXStoreForLE(), ExtendToType(), ExtractBitFromMaskVector(), extractSubVector(), foldBitcastedFPLogic(), FoldIntToFPToInt(), GeneratePerfectShuffle(), getCopyToParts(), getFauxShuffleMask(), getFPExtendOrRound(), GetFPLibCall(), getFRAMEADDR(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMaskNode(), getMOVL(), getNextIntArgReg(), getParamsForOneTrueMaskedElt(), GetPromotionOpcode(), llvm::X86TargetLowering::getRegisterByName(), getScalarMaskingNode(), getShuffleHalfVectors(), getSplatValue(), getStrictFPExtendOrRound(), llvm::ARCTargetLowering::getTargetNodeName(), insert1BitVector(), InsertBitToMaskVector(), insertSubVector(), llvm::intCCToAVRCC(), isSortedByValueNo(), lower1BitShuffle(), lower1BitShuffleAsKSHIFTR(), lowerAddSubToHorizontalOp(), LowerAVXCONCAT_VECTORS(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS_i1(), LowerCONCAT_VECTORSvXi1(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerEXTRACT_SUBVECTOR(), LowerFABSorFNEG(), LowerFCOPYSIGN(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), lowerI128ToGR128(), LowerI64IntToFP_AVX512DQ(), lowerINT_TO_FP_vXi64(), LowerLoad(), lowerMasksToReg(), LowerMGATHER(), LowerMLOAD(), lowerRegToMasks(), llvm::LanaiTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerSDIV(), lowerShuffleAsVTRUNCAndUnpack(), lowerShuffleOfExtractsAsVperm(), lowerShuffleWithUndefHalf(), LowerSIGN_EXTEND_Mask(), llvm::AMDGPUTargetLowering::LowerSINT_TO_FP(), LowerStore(), LowerToTLSExecModel(), LowerTruncateVecI1(), LowerUDIV(), llvm::AMDGPUTargetLowering::LowerUINT_TO_FP(), LowerUINT_TO_FP_i32(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerUMULO_SMULO(), lowerV2X128Shuffle(), lowerV4X128Shuffle(), LowerVACOPY(), LowerVASTART(), LowerVectorINT_TO_FP(), LowerZERO_EXTEND_Mask(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), llvm::PPCTargetLowering::PerformDAGCombine(), performMADD_MSUBCombine(), PerformTruncatingStoreCombine(), prepareDescriptorIndirectCall(), PrepareTailCall(), recoverFramePointer(), ReorganizeVector(), ReplaceLoadVector(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeVectorStore(), shouldGuaranteeTCO(), simplifyShuffleOfShuffle(), SplitAndExtendv16i1(), splitAndLowerShuffle(), truncateScalarIntegerArg(), vectorizeExtractedCast(), widenSubVector(), and widenVec().
| SDValue SelectionDAG::getJumpTable | ( | int | JTI, |
| EVT | VT, | ||
| bool | isTarget = false, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1442 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, getVTList(), llvm::ISD::JumpTable, llvm::None, and llvm::ISD::TargetJumpTable.
Referenced by llvm::SelectionDAGBuilder::visitJumpTable().
| SDValue SelectionDAG::getLabelNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| SDValue | Root, | ||
| MCSymbol * | Label | ||
| ) |
Definition at line 1824 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getVTList(), and llvm::MVT::Other.
Referenced by FixedPointIntrinsicToOpcode(), and getEHLabel().
|
inline |
Definition at line 427 of file SelectionDAG.h.
Referenced by CanCombineFCOPYSIGN_EXTEND_ROUND().
| SDValue SelectionDAG::getLifetimeNode | ( | bool | IsStart, |
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| int | FrameIndex, | ||
| int64_t | Size, | ||
| int64_t | Offset = -1 |
||
| ) |
Creates a LifetimeSDNode that starts (IsStart==true) or ends (IsStart==false) the lifetime of the portion of FrameIndex between offsets Offset and Offset + Size.
Definition at line 6725 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), E, getDataLayout(), llvm::SDLoc::getDebugLoc(), getFrameIndex(), llvm::SDLoc::getIROrder(), getTargetLoweringInfo(), getVTList(), llvm::ISD::LIFETIME_END, llvm::ISD::LIFETIME_START, NewSDValueDbgMsg(), llvm::MVT::Other, and Size.
Referenced by FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getLoad | ( | EVT | VT, |
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| MachinePointerInfo | PtrInfo, | ||
| unsigned | Alignment = 0, |
||
| MachineMemOperand::Flags | MMOFlags = MachineMemOperand::MONone, |
||
| const AAMDNodes & | AAInfo = AAMDNodes(), |
||
| const MDNode * | Ranges = nullptr |
||
| ) |
Loads are not normal binary operators: their result type is not determined by their operands, and they produce a value AND a token chain.
This function will set the MOLoad flag on MMOFlags, but you can set it if you want. The MOStore flag must not be set.
Definition at line 6868 of file SelectionDAG.cpp.
References getUNDEF(), llvm::SDValue::getValueType(), llvm::ISD::NON_EXTLOAD, llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), bitcastf32Toi32(), buildCallOperands(), llvm::X86TargetLowering::BuildFILD(), buildPCRelGlobalAddress(), CalculateTailCallArgDest(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBVOfConsecutiveLoads(), combineExtractWithShuffle(), combineLoad(), combineMaskedLoadConstantMask(), combineShiftAnd1ToBitTest(), combineStore(), combineTargetShuffle(), ConstantAddressBlock(), EltsFromConsecutiveLoads(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), EnsureStackAlignment(), expandf64Toi32(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), FixedPointIntrinsicToOpcode(), llvm::MipsTargetLowering::getAddrGlobal(), llvm::MipsTargetLowering::getAddrGlobalLargeGOT(), llvm::MipsTargetLowering::getAddrLocal(), getBuildPairElt(), getExtLoad(), GetFPLibCall(), getFRAMEADDR(), getIndexedLoad(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoad(), getLoadExtOrTrunc(), getMemCmpLoad(), getMemmoveLoadsAndStores(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), getUniformBase(), getVectorCompareInfo(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isSortedByValueNo(), isSubBorrowChain(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADJUST_TRAMPOLINE(), LowerAsSplatVectorLoad(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), LowerEXTRACT_SUBVECTOR(), LowerF128Load(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), LowerINTRINSIC_W_CHAIN(), LowerLoad(), lowerMSALoadIntr(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), lowerShuffleAsBroadcast(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), LowerVASTART(), LowerVectorINT_TO_FP(), llvm::SparcTargetLowering::makeAddress(), mayTailCallThisCC(), narrowExtractedVectorLoad(), numVectorEltsOrZero(), llvm::PPCTargetLowering::PerformDAGCombine(), performIntToFpCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), PerformSplittingToWideningLoad(), prepareDescriptorIndirectCall(), reduceMaskedLoadToScalarLoad(), llvm::R600TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), llvm::SITargetLowering::shouldEmitPCReloc(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), SkipLoadExtensionForVMULL(), truncateScalarIntegerArg(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and widenCtPop().
| SDValue SelectionDAG::getLoad | ( | EVT | VT, |
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6878 of file SelectionDAG.cpp.
References getLoad(), getUNDEF(), llvm::SDValue::getValueType(), llvm::ISD::NON_EXTLOAD, llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
| SDValue SelectionDAG::getLoad | ( | ISD::MemIndexedMode | AM, |
| ISD::LoadExtType | ExtType, | ||
| EVT | VT, | ||
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| SDValue | Offset, | ||
| MachinePointerInfo | PtrInfo, | ||
| EVT | MemVT, | ||
| unsigned | Alignment = 0, |
||
| MachineMemOperand::Flags | MMOFlags = MachineMemOperand::MONone, |
||
| const AAMDNodes & | AAInfo = AAMDNodes(), |
||
| const MDNode * | Ranges = nullptr |
||
| ) |
Definition at line 6794 of file SelectionDAG.cpp.
References assert(), getEVTAlignment(), getLoad(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), InferPointerInfo(), llvm::PointerUnion< PTs >::isNull(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, llvm::MVT::Other, and llvm::MachinePointerInfo::V.
| SDValue SelectionDAG::getLoad | ( | ISD::MemIndexedMode | AM, |
| ISD::LoadExtType | ExtType, | ||
| EVT | VT, | ||
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| SDValue | Offset, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6819 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), llvm::EVT::bitsLT(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::EVT::getRawBits(), llvm::EVT::getScalarType(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), getVTList(), Indexed, llvm::EVT::isInteger(), llvm::SDValue::isUndef(), llvm::EVT::isVector(), llvm::ISD::LOAD, NewSDValueDbgMsg(), llvm::ISD::NON_EXTLOAD, llvm::MVT::Other, and llvm::ISD::UNINDEXED.
Create a logical NOT operation as (XOR Val, BooleanOne).
Definition at line 1201 of file SelectionDAG.cpp.
References getBoolConstant(), getNode(), and llvm::ISD::XOR.
Referenced by llvm::HexagonTargetLowering::LowerAddSubCarry().
|
inline |
Definition at line 420 of file SelectionDAG.h.
Referenced by llvm::RegsForValue::AddInlineAsmOperands(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::analyzeArguments(), AnalyzeReturnValues(), areCallingConvEligibleForTCO_64SVR4(), buildCallOperands(), llvm::X86TargetLowering::BuildFILD(), buildPCRelGlobalAddress(), llvm::TargetLowering::BuildSDIVPow2(), CalculateTailCallSPDiff(), callingConvSupported(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineADDToADDZE(), combineFMA(), combineFMADDSUB(), combineFMinNumFMaxNum(), combineMul(), combineReductionToHorizontal(), combineStore(), llvm::BaseIndexOffset::computeAliasing(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), CreateStackTemporary(), llvm::SITargetLowering::denormalsEnabledForType(), EmitCmp(), emitConstantSizeRepmov(), emitLockedStackOp(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), EmitUnrolledSetTag(), EnsureStackAlignment(), llvm::BaseIndexOffset::equalBaseIndex(), errorUnsupported(), llvm::X86TargetLowering::expandIndirectJTBranch(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), fail(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), fixupFuncForFI(), foldFPToIntToFP(), getAddressForMemoryInput(), llvm::MipsTargetLowering::getAddrLocal(), getBufferOffsetForMMO(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getFRAMEADDR(), llvm::MipsTargetLowering::getGlobalReg(), llvm::DOTGraphTraits< SelectionDAG * >::getGraphName(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoad(), getLoadExtOrTrunc(), getLoadStackGuard(), getMemcpyLoadsAndStores(), getMemIntrinsicNode(), getMemmoveLoadsAndStores(), getMemsetStores(), getMOVL(), getNextIntArgReg(), getNormalLoadInput(), llvm::MipsTargetLowering::getOpndList(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getReductionSDNode(), GetRegistersForValue(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), getSPDenormModeValue(), getSplatConstantFP(), llvm::NVPTXTargetLowering::getSqrtEstimate(), getStore(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getTruncStore(), getUnderlyingArgRegs(), getUniformBase(), getv64i1Argument(), getVectorCompareInfo(), hasReturnsTwiceAttr(), InferPointerInfo(), InsertBitToMaskVector(), llvm::intCCToAVRCC(), isClampZeroToOne(), isConsecutiveLSLoc(), isContractable(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::SITargetLowering::isFMADLegalForFAddFSub(), llvm::SITargetLowering::isFPExtFoldable(), isFunctionGlobalAddress(), llvm::SITargetLowering::isKnownNeverNaNForTargetNode(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::IsLegalToFold(), llvm::ARMTargetLowering::isReadOnly(), isSortedByValueNo(), isSubBorrowChain(), isTargetConstant(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAsSplatVectorLoad(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::SITargetLowering::LowerCallResult(), LowerCallResult(), llvm::TargetLowering::LowerCallTo(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), lowerFABS64(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), lowerIncomingStatepointValue(), llvm::HexagonTargetLowering::LowerINLINEASM(), lowerINT_TO_FP_vXi64(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), llvm::SelectionDAGBuilder::lowerInvokable(), LowerMUL(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), lowerRegToMasks(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), lowerShuffleAsBroadcast(), lowerStatepointMetaArgs(), llvm::MipsTargetLowering::lowerSTORE(), LowerToTLSExecModel(), LowerToTLSLocalDynamicModel(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVACOPY(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), LowerVectorINT_TO_FP(), LowerWRITE_REGISTER(), llvm::SparcTargetLowering::makeAddress(), MarkEHGuard(), MarkEHRegistrationNode(), MatchingStackOffset(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), parseTexFail(), Passv64i1ArgInRegs(), PerformADDCombineWithOperands(), performBRCONDCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performXorCombine(), printMemOperand(), promoteToConstantPool(), recoverFramePointer(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::TargetLowering::CallLoweringInfo::setLibCallee(), setUsesTOCBasePtr(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::RISCVTargetLowering::shouldExpandShift(), llvm::AArch64TargetLowering::shouldExpandShift(), llvm::X86TargetLowering::shouldExpandShift(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), spillIncomingStatepointValue(), splitStores(), llvm::AMDGPUTargetLowering::storeStackInputValue(), StoreTailCallArgumentsToStackSlot(), transformCallee(), truncateScalarIntegerArg(), llvm::X86InstrInfo::unfoldMemoryOperand(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), unpackFromRegLoc(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT | ||
| ) |
These are used for target selectors to create a new node with specified return type(s), MachineInstr opcode, and operands.
getMachineNode - These are used for target selectors to create a new node with specified return type(s), MachineInstr opcode, and operands.
Note that getMachineNode returns the resultant node. If there is already a node of the specified opcode and operands, it returns that node instead of the current one.
Definition at line 7964 of file SelectionDAG.cpp.
References getVTList(), and llvm::None.
Referenced by addStackMapLiveVars(), llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), llvm::AVRDAGToDAGISel::select< ISD::STORE >(), llvm::SITargetLowering::buildRSRC(), buildSMovImm32(), callingConvSupported(), canLowerToLDG(), llvm::SITargetLowering::copyToM0(), createGPRPairNode(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), emitLockedStackOp(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), expandIntrinsicWChainHelper(), FixedPointIntrinsicToOpcode(), getBufferOffsetForMMO(), getLeftShift(), getMachineNode(), getPrefetchNode(), getPTXCmpMode(), getTargetExtractSubreg(), getTargetInsertSubreg(), getTargetNode(), getVectorCompareInfo(), isMemOPCandidate(), llvm::ARMTargetLowering::isReadOnly(), isSubBorrowChain(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), LowerADDRSPACECAST(), LowerBITCAST(), LowerF128Load(), LowerF128Store(), LowerF64Op(), lowerI128ToGR128(), llvm::SystemZTargetLowering::LowerOperationWrapper(), mayTailCallThisCC(), optimizeLogicalImm(), parseTexFail(), pickOpcodeForVT(), ReplaceBITCASTResults(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), llvm::NVPTXDAGToDAGISel::runOnMachineFunction(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::HexagonDAGToDAGISel::SelectAddSubCarry(), llvm::HexagonDAGToDAGISel::SelectBrevLdIntrinsic(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectConstant(), llvm::HexagonDAGToDAGISel::SelectConstantFP(), llvm::HexagonDAGToDAGISel::SelectD2P(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), selectI64Imm(), selectI64ImmDirect(), selectImm(), llvm::AVRDAGToDAGISel::selectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::HexagonDAGToDAGISel::SelectNewCircIntrinsic(), llvm::HexagonDAGToDAGISel::SelectP2D(), llvm::HexagonDAGToDAGISel::SelectQ2V(), llvm::HvxSelector::selectRor(), llvm::HexagonDAGToDAGISel::SelectSHL(), llvm::HexagonDAGToDAGISel::SelectV2Q(), llvm::HexagonDAGToDAGISel::SelectVAlign(), llvm::HvxSelector::selectVAlign(), llvm::HexagonDAGToDAGISel::SelectVAlignAddr(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::HexagonTargetLowering::shouldExpandAtomicRMWInIR(), tryBitfieldInsertOpFromOr(), tryBitfieldInsertOpFromOrAndImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), Widen(), and llvm::SITargetLowering::wrapAddr64Rsrc().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| SDValue | Op1 | ||
| ) |
Definition at line 7970 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| SDValue | Op1, | ||
| SDValue | Op2 | ||
| ) |
Definition at line 7977 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3 | ||
| ) |
Definition at line 7984 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7992 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| SDValue | Op1, | ||
| SDValue | Op2 | ||
| ) |
Definition at line 7998 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3 | ||
| ) |
Definition at line 8006 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 8014 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| EVT | VT3, | ||
| SDValue | Op1, | ||
| SDValue | Op2 | ||
| ) |
Definition at line 8021 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| EVT | VT3, | ||
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3 | ||
| ) |
Definition at line 8029 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| EVT | VT3, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 8038 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| ArrayRef< EVT > | ResultTys, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 8045 of file SelectionDAG.cpp.
References getMachineNode(), and getVTList().
| MachineSDNode * SelectionDAG::getMachineNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| SDVTList | VTs, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 8052 of file SelectionDAG.cpp.
References AddNodeIDNode(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MVT::Glue, N, NewSDValueDbgMsg(), llvm::SDVTList::NumVTs, and llvm::SDVTList::VTs.
| SDValue SelectionDAG::getMaskedGather | ( | SDVTList | VTs, |
| EVT | VT, | ||
| const SDLoc & | dl, | ||
| ArrayRef< SDValue > | Ops, | ||
| MachineMemOperand * | MMO, | ||
| ISD::MemIndexType | IndexType | ||
| ) |
Definition at line 7158 of file SelectionDAG.cpp.
References AddNodeIDNode(), assert(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::EVT::getRawBits(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ISD::MGATHER, NewSDValueDbgMsg(), and llvm::ArrayRef< T >::size().
Referenced by CollectOpsToWiden(), combineGatherScatter(), getShiftAmountTyForConstant(), and getUniformBase().
| SDValue SelectionDAG::getMaskedLoad | ( | EVT | VT, |
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| SDValue | Mask, | ||
| SDValue | Src0, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO, | ||
| ISD::MemIndexedMode | AM, | ||
| ISD::LoadExtType | ExtTy, | ||
| bool | IsExpanding = false |
||
| ) |
Definition at line 7065 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::EVT::getRawBits(), llvm::SDValue::getValueType(), getVTList(), Indexed, llvm::SDValue::isUndef(), llvm::BitmaskEnumDetail::Mask(), llvm::ISD::MLOAD, NewSDValueDbgMsg(), llvm::MVT::Other, and llvm::ISD::UNINDEXED.
Referenced by CollectOpsToWiden(), combineMaskedLoadConstantMask(), getIndexedMaskedLoad(), getShiftAmountTyForConstant(), getUniformBase(), LowerMLOAD(), performLDNT1Combine(), and tryToFoldExtOfMaskedLoad().
| SDValue SelectionDAG::getMaskedScatter | ( | SDVTList | VTs, |
| EVT | VT, | ||
| const SDLoc & | dl, | ||
| ArrayRef< SDValue > | Ops, | ||
| MachineMemOperand * | MMO, | ||
| ISD::MemIndexType | IndexType | ||
| ) |
Definition at line 7199 of file SelectionDAG.cpp.
References AddNodeIDNode(), assert(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::EVT::getRawBits(), llvm::SDNode::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ISD::MSCATTER, NewSDValueDbgMsg(), and llvm::ArrayRef< T >::size().
Referenced by combineGatherScatter(), and getUniformBase().
| SDValue SelectionDAG::getMaskedStore | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Val, | ||
| SDValue | Base, | ||
| SDValue | Offset, | ||
| SDValue | Mask, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO, | ||
| ISD::MemIndexedMode | AM, | ||
| bool | IsTruncating = false, |
||
| bool | IsCompressing = false |
||
| ) |
Definition at line 7110 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::EVT::getRawBits(), llvm::SDValue::getValueType(), getVTList(), Indexed, llvm::SDValue::isUndef(), llvm::ISD::MSTORE, NewSDValueDbgMsg(), llvm::MVT::Other, and llvm::ISD::UNINDEXED.
Referenced by combineMaskedStore(), getIndexedMaskedStore(), LowerINTRINSIC_W_CHAIN(), LowerMSTORE(), and performSTNT1Combine().
Definition at line 1568 of file SelectionDAG.cpp.
Referenced by callingConvSupported(), FixedPointIntrinsicToOpcode(), recoverFramePointer(), and transformCallee().
Return an MDNodeSDNode which holds an MDNode.
Definition at line 1881 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), E, getVTList(), llvm::ISD::MDNODE_SDNODE, llvm::None, and llvm::MVT::Other.
Referenced by findMatchingInlineAsmOperand(), and FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getMemBasePlusOffset | ( | SDValue | Base, |
| int64_t | Offset, | ||
| const SDLoc & | DL, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Returns sum of the base pointer and offset.
Unlike getObjectPtrOffset this does not set NoUnsignedWrap by default.
Definition at line 5800 of file SelectionDAG.cpp.
References getConstant(), and llvm::SDValue::getValueType().
Referenced by combineLoad(), combineStore(), EmitUnrolledSetTag(), ExtendUsesToFormExtLoad(), FixedPointIntrinsicToOpcode(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getParamsForOneTrueMaskedElt(), llvm::TargetLowering::getVectorElementPointer(), lowerShuffleAsBroadcast(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), narrowExtractedVectorLoad(), scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), splitVectorStore(), and widenCtPop().
| SDValue SelectionDAG::getMemBasePlusOffset | ( | SDValue | Base, |
| SDValue | Offset, | ||
| const SDLoc & | DL, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 5807 of file SelectionDAG.cpp.
References llvm::ISD::ADD, assert(), getNode(), llvm::SDValue::getValueType(), and llvm::EVT::isInteger().
| SDValue SelectionDAG::getMemcpy | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| SDValue | Src, | ||
| SDValue | Size, | ||
| unsigned | Align, | ||
| bool | isVol, | ||
| bool | AlwaysInline, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo, | ||
| MachinePointerInfo | SrcPtrInfo | ||
| ) |
Definition at line 6258 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), checkAddrSpaceIsValidForLibcall(), llvm::dyn_cast(), llvm::SelectionDAGTargetInfo::EmitTargetCodeForMemcpy(), llvm::MachinePointerInfo::getAddrSpace(), getMemcpyLoadsAndStores(), llvm::SDValue::getNode(), llvm::ConstantSDNode::getZExtValue(), llvm::ConstantSDNode::isNullValue(), and Size.
Referenced by AnalyzeReturnValues(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), CreateCopyOfByValArgument(), emitConstantSizeRepmov(), FixedPointIntrinsicToOpcode(), getMemCmpLoad(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), lowerCallResult(), LowerCallResult(), LowerVACOPY(), and mayTailCallThisCC().
| SDValue SelectionDAG::getMemIntrinsicNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| SDVTList | VTList, | ||
| ArrayRef< SDValue > | Ops, | ||
| EVT | MemVT, | ||
| MachinePointerInfo | PtrInfo, | ||
| unsigned | Align = 0, |
||
| MachineMemOperand::Flags | Flags = MachineMemOperand::MOLoad | MachineMemOperand::MOStore, |
||
| uint64_t | Size = 0, |
||
| const AAMDNodes & | AAInfo = AAMDNodes() |
||
| ) |
Creates a MemIntrinsicNode that may produce a result and takes a list of operands.
Opcode may be INTRINSIC_VOID, INTRINSIC_W_CHAIN, or a target-specific opcode with a value not less than FIRST_TARGET_MEMORY_OPCODE.
Definition at line 6663 of file SelectionDAG.cpp.
References getEVTAlignment(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::EVT::isScalableVector(), and llvm::MemoryLocation::UnknownSize.
Referenced by adjustLoadValueTypeImpl(), llvm::X86TargetLowering::BuildFILD(), callingConvSupported(), CombineBaseUpdate(), combineBitcast(), combineBVOfVecSExt(), combineCVTP2I_CVTTP2I(), combineExtractSubvector(), combineInsertSubvector(), combineShuffle(), combineTargetShuffle(), CombineVLDDUP(), combineX86INT_TO_FP(), createLoadLR(), createStoreLR(), EltsFromConsecutiveLoads(), EmitUnrolledSetTag(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), FixedPointIntrinsicToOpcode(), GeneratePerfectShuffle(), getBufferOffsetForMMO(), getNormalLoadInput(), getSPDenormModeValue(), getUniformBase(), getVectorCompareInfo(), isSubBorrowChain(), isVectorElementSwap(), LowerADJUST_TRAMPOLINE(), lowerAtomicArithWithLOCK(), llvm::NVPTXTargetLowering::LowerCall(), LowerCMP_SWAP(), llvm::SystemZTargetLowering::LowerOperationWrapper(), llvm::NVPTXTargetLowering::LowerReturn(), LowerStore(), LowerTruncateVectorStore(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), MergeInputChains(), parseTexFail(), llvm::PPCTargetLowering::PerformDAGCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), PerformVDUPCombine(), ReplaceCMP_SWAP_128Results(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::X86TargetLowering::ReplaceNodeResults(), setUsesTOCBasePtr(), and truncateScalarIntegerArg().
| SDValue SelectionDAG::getMemIntrinsicNode | ( | unsigned | Opcode, |
| const SDLoc & | dl, | ||
| SDVTList | VTList, | ||
| ArrayRef< SDValue > | Ops, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6682 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, llvm::ISD::FIRST_TARGET_MEMORY_OPCODE, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::MVT::Glue, llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::LIFETIME_END, llvm::ISD::LIFETIME_START, llvm::max(), N, NewSDValueDbgMsg(), llvm::SDVTList::NumVTs, llvm::ISD::PREFETCH, and llvm::SDVTList::VTs.
| SDValue SelectionDAG::getMemmove | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| SDValue | Src, | ||
| SDValue | Size, | ||
| unsigned | Align, | ||
| bool | isVol, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo, | ||
| MachinePointerInfo | SrcPtrInfo | ||
| ) |
Definition at line 6374 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), checkAddrSpaceIsValidForLibcall(), llvm::dyn_cast(), llvm::SelectionDAGTargetInfo::EmitTargetCodeForMemmove(), llvm::MachinePointerInfo::getAddrSpace(), getMemmoveLoadsAndStores(), llvm::SDValue::getNode(), llvm::ConstantSDNode::getZExtValue(), llvm::ConstantSDNode::isNullValue(), and Size.
Referenced by llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), and FixedPointIntrinsicToOpcode().
| SDValue SelectionDAG::getMemset | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Dst, | ||
| SDValue | Src, | ||
| SDValue | Size, | ||
| unsigned | Align, | ||
| bool | isVol, | ||
| bool | isTailCall, | ||
| MachinePointerInfo | DstPtrInfo | ||
| ) |
Definition at line 6478 of file SelectionDAG.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), checkAddrSpaceIsValidForLibcall(), llvm::dyn_cast(), llvm::SelectionDAGTargetInfo::EmitTargetCodeForMemset(), llvm::MachinePointerInfo::getAddrSpace(), getMemsetStores(), llvm::SDValue::getNode(), llvm::ConstantSDNode::getZExtValue(), llvm::ConstantSDNode::isNullValue(), and Size.
Referenced by FixedPointIntrinsicToOpcode().
Create a MERGE_VALUES node from the given operands.
getMergeValues - Create a MERGE_VALUES node from the given operands.
Definition at line 6652 of file SelectionDAG.cpp.
References getNode(), getVTList(), llvm::ISD::MERGE_VALUES, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and llvm::ArrayRef< T >::size().
Referenced by adjustLoadValueTypeImpl(), combineVectorCompareAndMaskUnaryOp(), combineX86AddSub(), ConstantAddressBlock(), constructRetValue(), EmitAVX512Test(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), findMatchingInlineAsmOperand(), getAArch64XALUOOp(), getBufferOffsetForMMO(), llvm::XCoreTargetLowering::getJumpTableEncoding(), getLoadExtOrTrunc(), getSPDenormModeValue(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), isSubBorrowChain(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDRSPACECAST(), llvm::HexagonTargetLowering::LowerAddSubCarry(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), lowerDSPIntr(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), LowerF128Load(), LowerI64IntToFP_AVX512DQ(), lowerINT_TO_FP_vXi64(), LowerINTRINSIC_W_CHAIN(), llvm::MipsTargetLowering::lowerLOAD(), LowerLoad(), LowerMGATHER(), LowerMLOAD(), llvm::NVPTXTargetLowering::LowerOperation(), LowerPredicateLoad(), LowerPREFETCH(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), LowerTruncateVecI1(), llvm::HexagonTargetLowering::LowerUAddSubO(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), LowerUINT_TO_FP_i32(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerUMULO_SMULO(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), LowerVectorFP_TO_INT(), mayTailCallThisCC(), parseTexFail(), performLD1GatherCombine(), performLDNT1Combine(), llvm::AMDGPUTargetLowering::performLoadCombine(), llvm::AMDGPUTargetLowering::performMulLoHi24Combine(), recoverFramePointer(), ReorganizeVector(), ReplaceCMP_SWAP_64Results(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), truncateScalarIntegerArg(), and llvm::AMDGPUTargetLowering::WidenVectorLoad().
Gets or creates the specified node.
Definition at line 7322 of file SelectionDAG.cpp.
References llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), and llvm::ArrayRef< T >::size().
Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineTo64bitMLAL(), AddCombineTo64BitSMLAL16(), AddCombineTo64bitUMAAL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), addIPMSequence(), llvm::MipsSETargetLowering::addMSAFloatType(), addRequiredExtensionForVectorMULL(), AddRequiredExtensionForVMULL(), addShuffleForVecExtend(), addStackMapLiveVars(), llvm::AMDGPUTargetLowering::addTokenForArgument(), adjustLoadValueTypeImpl(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), BuildExactSDIV(), buildFromShuffleMostly(), BuildIntrinsicOp(), buildMergeScalars(), buildPCRelGlobalAddress(), buildScalarToVector(), llvm::TargetLowering::BuildSDIV(), llvm::PPCTargetLowering::BuildSDIVPow2(), llvm::TargetLowering::BuildUDIV(), BuildVSLDOI(), callingConvSupported(), CanCombineFCOPYSIGN_EXTEND_ROUND(), canonicalizeBitSelect(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), chainLoadsAndStoresForMemcpy(), checkVSELConstraints(), clampDynamicVectorIndex(), CollectOpsToWiden(), combineAcrossLanesIntrinsic(), combineADC(), combineAdd(), combineADDCARRYDiamond(), combineAddOrSubToADCOrSBB(), combineADDToADDZE(), combineAnd(), combineAndMaskToShift(), combineAndnp(), CombineANDShift(), combineANDXORWithAllOnesIntoANDNP(), CombineBaseUpdate(), combineBasicSADPattern(), combineBEXTR(), combineBitcast(), combineBitcastvxi1(), combineBT(), combineBVOfVecSExt(), combineCarryDiamond(), combineCarryThroughADD(), combineCastedMaskArithmetic(), combineCCMask(), combineCMP(), combineCompareEqual(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineConcatVectorOps(), combineCVTP2I_CVTTP2I(), combineExtractSubvector(), combineExtractVectorElt(), combineExtractWithShuffle(), combineFaddFsub(), combineFAndFNotToFAndn(), combineFMA(), combineFMADDSUB(), combineFMinFMax(), llvm::AMDGPUTargetLowering::combineFMinMaxLegacy(), combineFMinNumFMaxNum(), combineFneg(), combineGatherScatter(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineInsertSubvector(), combineLoad(), combineLogicBlendIntoConditionalNegate(), combineLoopMAddPattern(), combineLoopSADPattern(), combineMinNumMaxNum(), combineMOVMSK(), combineMul(), combineMulSpecial(), combineMulToPMADDWD(), combineMulToPMULDQ(), combineOr(), combineOrCmpEqZeroToCtlzSrl(), combineOrShiftToFunnelShift(), combineParity(), combinePMULDQ(), combinePMULH(), combineReductionToHorizontal(), combineRedundantDWordShuffle(), combineSBB(), combineScalarAndWithMaskSetcc(), combineScalarToVector(), combineSelectAndUse(), combineSetCC(), combineSext(), combineSextInRegCmov(), combineShiftAnd1ToBitTest(), combineShiftLeft(), combineShiftOfShiftedLogic(), combineShiftRightArithmetic(), combineShiftRightLogical(), combineShuffle(), combineShuffleOfConcatUndef(), combineShuffleToAddSubOrFMAddSub(), combineShuffleToFMAddSub(), combineShuffleToVectorExtend(), combineSignExtendInReg(), combineSIntToFP(), combineStore(), combineSub(), combineSubToSubus(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineToExtendCMOV(), combineToFPTruncExtElt(), combineTruncate(), combineTruncatedArithmetic(), combineTruncateWithSat(), combineUIntToFP(), combineVectorCompareAndMaskUnaryOp(), combineVectorPack(), combineVectorShiftImm(), combineVectorSizedSetCCEquality(), combineVectorTruncationWithPACKSS(), combineVectorTruncationWithPACKUS(), CombineVMOVDRRCandidateWithVecOp(), combineVTRUNC(), combineX86AddSub(), combineX86INT_TO_FP(), combineX86ShuffleChain(), combineXor(), combineZext(), CompactSwizzlableVector(), ConstantAddressBlock(), ConstantBuildVector(), constructRetValue(), ConvertBooleanCarryToCarryFlag(), ConvertCarryFlagToBooleanCarry(), convertIntLogicToFPLogic(), convertLocVTToValVT(), convertShiftLeftToScale(), convertValVTToLocVT(), llvm::SITargetLowering::copyToM0(), createFPCmp(), createGPRPairNode(), createLoadLR(), createMMXBuildVector(), createPSADBW(), createStoreLR(), createVariablePermute(), customLegalizeToWOp(), customLegalizeToWOpWithSExt(), detectAVGPattern(), detectPMADDUBSW(), detectUSatPattern(), earlyExpandDIVFIX(), elementPairIsContiguous(), EltsFromConsecutiveLoads(), EmitAVX512Test(), emitCLC(), EmitCMP(), EmitCmp(), emitComparison(), emitConditionalComparison(), emitConstantSizeRepmov(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitIntrinsicWithCC(), emitIntrinsicWithCCAndChain(), emitMemMem(), emitOrXorXorTree(), emitRepmovs(), emitSETCC(), emitStrictFPComparison(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen(), EmitTest(), EmitUnrolledSetTag(), EmitVectorComparison(), EnsureStackAlignment(), Expand64BitShift(), llvm::TargetLowering::expandABS(), ExpandBITCAST(), ExpandBVWithShuffles(), expandDivFix(), expandExp(), expandExp2(), expandf64Toi32(), llvm::TargetLowering::expandFixedPointDiv(), ExpandHorizontalBinOp(), llvm::X86TargetLowering::expandIndirectJTBranch(), llvm::TargetLowering::expandIndirectJTBranch(), expandIntrinsicWChainHelper(), expandLog(), expandLog10(), expandLog2(), llvm::TargetLowering::expandMUL_LOHI(), expandPow(), ExpandPowI(), ExpandREAD_REGISTER(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), ExtendToType(), ExtendUsesToFormExtLoad(), ExtractBitFromMaskVector(), extractBooleanFlip(), extractF64Exponent(), extractLOHI(), extractShiftForRotate(), extractSubVector(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), flipBoolean(), foldAddSubBoolOfMaskedVal(), foldAddSubMasked1(), foldAddSubOfSignBit(), foldBitcastedFPLogic(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), foldExtendedSignBitTest(), foldFPToIntToFP(), FoldIntToFPToInt(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToBEXTR(), foldMaskedShiftToScaledMask(), foldShuffleOfConcatUndefs(), foldShuffleOfHorizOp(), foldVectorXorShiftIntoCmp(), genConstMult(), generateEquivalentSub(), GeneratePerfectShuffle(), GenerateTBL(), getAArch64Cmp(), getAArch64XALUOOp(), getAbsolute(), llvm::MipsTargetLowering::getAddrGlobal(), llvm::MipsTargetLowering::getAddrGlobalLargeGOT(), llvm::MipsTargetLowering::getAddrGPRel(), llvm::MipsTargetLowering::getAddrLocal(), llvm::MipsTargetLowering::getAddrNonPIC(), llvm::MipsTargetLowering::getAddrNonPICSym64(), getAnyExtOrTrunc(), getAsNonOpaqueConstant(), getBitcast(), getBoolExtOrTrunc(), getBufferOffsetForMMO(), getBuildVectorSplat(), getCCResult(), getCombineLoadStoreParts(), getConstant(), getCopyFromParts(), getCopyFromPartsVector(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), llvm::DAGTypeLegalizer::getDAG(), GetDemandedBits(), getDUPLANEOp(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getEstimate(), getEstimateRefinementSteps(), getExpandedMinMaxOps(), GetExponent(), getExtendInVec(), getFauxShuffleMask(), getFLUSHW(), getFPBinOp(), getFPExtendOrRound(), GetFPLibCall(), getFPTernOp(), getFRAMEADDR(), getGeneralPermuteNode(), llvm::AMDGPUTargetLowering::getHiHalf64(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getKnownUndefForVectorBinop(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), getLogicalNOT(), llvm::AMDGPUTargetLowering::getLoHalf64(), getMad64_32(), getMaskNode(), getMemBasePlusOffset(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMemsetStringVal(), getMemsetValue(), getMergeValues(), getMOVL(), getMul24(), llvm::X86TargetLowering::getNegatedExpression(), llvm::TargetLowering::getNegatedExpression(), getNextIntArgReg(), getNode(), getNormalLoadInput(), getNOT(), getPermuteMask(), getPermuteNode(), llvm::HexagonTargetLowering::getPICJumpTableRelocBase(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPMOVMSKB(), GetPromotionOpcode(), llvm::AMDGPUTargetLowering::getRecipEstimate(), getReductionSDNode(), GetRegistersForValue(), getScalarMaskingNode(), llvm::AVRTargetLowering::getSetCCResultType(), getSExtOrTrunc(), getShiftAmountTyForConstant(), getShuffleHalfVectors(), GetSignificand(), getSPDenormModeValue(), getSplatConstantFP(), getSplatValue(), llvm::AMDGPUTargetLowering::getSqrtEstimate(), llvm::NVPTXTargetLowering::getSqrtEstimate(), getStackArgumentTokenFactor(), getStrictFPExtendOrRound(), getTargetNode(), llvm::BPFTargetLowering::getTargetNodeName(), llvm::ARCTargetLowering::getTargetNodeName(), getTargetVShiftByConstNode(), getTargetVShiftNode(), GetTLSADDR(), getUniformBase(), getv64i1Argument(), getVAArg(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), getVectorMaskingNode(), getVectorShuffle(), getVShift(), getZeroExtendInReg(), getZeroVector(), getZExtOrTrunc(), HandleMergeInputChains(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), initAccumulator(), insert1BitVector(), InsertBitToMaskVector(), insertSubVector(), llvm::intCCToAVRCC(), isADDADDMUL(), isAddSubZExt(), isBSwapHWordPair(), isClampZeroToOne(), isContractable(), isFloatingPointZero(), isFNEG(), isFunctionGlobalAddress(), isFusableLoadOpStorePattern(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::IsLegalToFold(), isLowerSaturatingConditional(), isMemOPCandidate(), isNegativeOne(), IsNOT(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), isSlicingProfitable(), IsSmallObject(), isSortedByValueNo(), isSubBorrowChain(), isTargetConstant(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorElementSwap(), isVectorReductionOp(), isVMOVModifiedImm(), isVShiftRImm(), isWordAligned(), joinDwords(), llvm::AMDGPUTargetLowering::loadInputValue(), lower1BitShuffle(), lower1BitShuffleAsKSHIFTR(), Lower256IntVSETCC(), LowerABS(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDRSPACECAST(), LowerADDSAT_SUBSAT(), lowerAddSub(), llvm::HexagonTargetLowering::LowerAddSubCarry(), LowerADDSUBCARRY(), lowerAddSubToHorizontalOp(), LowerADJUST_TRAMPOLINE(), LowerAndToBT(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerATOMIC_FENCE(), LowerATOMIC_FENCE(), lowerAtomicArith(), LowerAVXCONCAT_VECTORS(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBITREVERSE(), LowerBITREVERSE_XOP(), llvm::LanaiTargetLowering::LowerBlockAddress(), llvm::MSP430TargetLowering::LowerBlockAddress(), llvm::HexagonTargetLowering::LowerBlockAddress(), llvm::MSP430TargetLowering::LowerBR_CC(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBUILD_VECTOR(), LowerBUILD_VECTOR_i1(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), LowerBuildVectorAsInsert(), lowerBuildVectorToBitOp(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), llvm::SITargetLowering::LowerCallResult(), LowerCallResult(), LowerCMP_SWAP(), llvm::TargetLowering::lowerCmpEqZeroToCtlzSrl(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS_i1(), LowerCONCAT_VECTORSvXi1(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::HexagonTargetLowering::LowerConstantPool(), LowerCTLZ(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), LowerCTPOP(), LowerCTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), lowerDSPIntr(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerEXTEND_VECTOR_INREG(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_SUBVECTOR(), LowerEXTRACT_VECTOR_ELT(), LowerEXTRACT_VECTOR_ELT_i1(), LowerEXTRACT_VECTOR_ELT_SSE4(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), LowerF64Op(), lowerFABS32(), lowerFABS64(), LowerFABSorFNEG(), llvm::AMDGPUTargetLowering::LowerFCEIL(), lowerFCMPIntrinsic(), LowerFCOPYSIGN(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), llvm::AMDGPUTargetLowering::lowerFEXP(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), LowerFGETSIGN(), llvm::AMDGPUTargetLowering::LowerFLOG(), llvm::AMDGPUTargetLowering::LowerFNEARBYINT(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUTargetLowering::LowerFP64_TO_INT(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), llvm::AMDGPUTargetLowering::LowerFP_TO_SINT(), LowerFP_TO_SINT(), lowerFP_TO_SINT_STORE(), llvm::AMDGPUTargetLowering::LowerFP_TO_UINT(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::AMDGPUTargetLowering::LowerFREM(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFROUND_LegalFTRUNC(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), LowerFunnelShift(), llvm::HexagonTargetLowering::LowerGLOBAL_OFFSET_TABLE(), llvm::LanaiTargetLowering::LowerGlobalAddress(), llvm::MSP430TargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), llvm::NVPTXTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), lowerGR128Binary(), lowerGR128ToI128(), LowerHorizontalByteSum(), lowerI128ToGR128(), LowerI64IntToFP_AVX512DQ(), lowerICMPIntrinsic(), LowerINSERT_VECTOR_ELT_i1(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP64(), lowerINT_TO_FP_vXi64(), LowerInterruptReturn(), llvm::HexagonTargetLowering::LowerINTRINSIC_VOID(), LowerINTRINSIC_W_CHAIN(), llvm::LanaiTargetLowering::LowerJumpTable(), llvm::MSP430TargetLowering::LowerJumpTable(), llvm::HexagonTargetLowering::LowerJumpTable(), LowerLabelRef(), llvm::MipsTargetLowering::lowerLOAD(), LowerLoad(), lowerMasksToReg(), LowerMemOpCallTo(), LowerMGATHER(), LowerMINMAX(), LowerMLOAD(), lowerMSABinaryBitImmIntr(), lowerMSABitClear(), lowerMSABitClearImm(), lowerMSACopyIntr(), lowerMSALoadIntr(), lowerMSASplatZExt(), lowerMSAStoreIntr(), LowerMSCATTER(), llvm::LanaiTargetLowering::LowerMUL(), LowerMUL(), lowerMUL_LOHI32(), LowerMULH(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), LowerPredicateLoad(), LowerPredicateStore(), llvm::HexagonTargetLowering::LowerPREFETCH(), LowerPREFETCH(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::HexagonTargetLowering::LowerREADCYCLECOUNTER(), lowerRegToMasks(), llvm::VETargetLowering::LowerReturn(), llvm::AMDGPUTargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerReverse_VECTOR_SHUFFLEv16i8_v8i16(), LowerRotate(), LowerSADDSUBSAT(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerSDIV(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::MSP430TargetLowering::LowerSELECT_CC(), LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerShift(), LowerShiftParts(), llvm::MSP430TargetLowering::LowerShifts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), lowerShuffleAsBitBlend(), lowerShuffleAsBitMask(), lowerShuffleAsBlend(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsBroadcast(), lowerShuffleAsByteRotate(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsByteShiftMask(), lowerShuffleAsElementInsertion(), lowerShuffleAsInsertPS(), lowerShuffleAsLanePermuteAndSHUFP(), lowerShuffleAsPermuteAndUnpack(), lowerShuffleAsRotate(), lowerShuffleAsShift(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsTruncBroadcast(), lowerShuffleAsUNPCKAndPermute(), lowerShuffleAsVTRUNCAndUnpack(), lowerShuffleAsZeroOrAnyExtend(), lowerShuffleOfExtractsAsVperm(), lowerShuffleToEXPAND(), lowerShuffleWithPACK(), lowerShuffleWithPERMV(), lowerShuffleWithPSHUFB(), lowerShuffleWithSHUFPD(), lowerShuffleWithSHUFPS(), lowerShuffleWithSSE4A(), lowerShuffleWithUndefHalf(), lowerShuffleWithUNPCK(), lowerShuffleWithVPMOV(), llvm::MSP430TargetLowering::LowerSIGN_EXTEND(), LowerSIGN_EXTEND(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), LowerSIGN_EXTEND_Mask(), llvm::AMDGPUTargetLowering::LowerSINT_TO_FP(), LowerSINT_TO_FP(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), llvm::MipsTargetLowering::lowerSTORE(), LowerSTORE(), LowerStore(), LowerSVEIntReduction(), LowerSVEIntrinsicEXT(), lowerToAddSubOrFMAddSub(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerTruncateVecI1(), LowerTruncateVectorStore(), llvm::HexagonTargetLowering::LowerUAddSubO(), LowerUDIV(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), llvm::AMDGPUTargetLowering::LowerUINT_TO_FP(), LowerUINT_TO_FP_i32(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerUMULO_SMULO(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), lowerV16F32Shuffle(), lowerV16I32Shuffle(), lowerV16I8Shuffle(), lowerV2F64Shuffle(), lowerV2I64Shuffle(), lowerV2X128Shuffle(), lowerV4F32Shuffle(), lowerV4F64Shuffle(), lowerV4I32Shuffle(), lowerV4I64Shuffle(), lowerV4X128Shuffle(), lowerV8F32Shuffle(), lowerV8F64Shuffle(), lowerV8I16GeneralSingleInputShuffle(), lowerV8I32Shuffle(), lowerV8I64Shuffle(), LowerVASTART(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE_i1(), lowerVECTOR_SHUFFLE_SHF(), lowerVECTOR_SHUFFLE_VSHF(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorAllZeroTest(), LowerVectorCTLZ_AVX512CDI(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOP(), LowerVectorCTPOPInRegLUT(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), LowerVectorIntUnary(), LowerVSETCC(), LowerWRITE_REGISTER(), lowerX86CmpEqZeroToCtlzSrl(), lowerX86FPLogicOp(), LowerXALUO(), LowerXOR(), LowerZERO_EXTEND_Mask(), llvm::SparcTargetLowering::makeAddress(), makeEquivalentMemoryOrdering(), llvm::SparcTargetLowering::makeHiLoPair(), matchPMADDWD(), matchPMADDWD_2(), matchRotateSub(), mayTailCallThisCC(), MergeInputChains(), minMaxOpcToMin3Max3Opc(), moveBelowOrigChain(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), narrowInsertExtractVectorBinOp(), llvm::X86TargetLowering::needsFixedCatchObjects(), NegateCC(), numVectorEltsOrZero(), optimizeLogicalImm(), parseTexFail(), partitionShuffleOfConcats(), llvm::SITargetLowering::passSpecialInputs(), Passv64i1ArgInRegs(), performADDCombine(), PerformADDCombineWithOperands(), PerformAddcSubcCombine(), PerformAddeSubeCombine(), performAddSubLongCombine(), performANDCombine(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::performAssertSZExtCombine(), PerformBFICombine(), llvm::ARMTargetLowering::PerformBRCONDCombine(), performBRCONDCombine(), PerformBUILD_VECTORCombine(), llvm::ARMTargetLowering::PerformCMOVCombine(), performCMovFPCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), performCONDCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::SITargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performDivRemCombine(), performDSPShiftCombine(), performExtendCombine(), PerformExtendCombine(), llvm::AMDGPUTargetLowering::performFAbsCombine(), performFDivCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), performFpToIntCombine(), performGlobalAddressCombine(), PerformInsertEltCombine(), performIntegerAbsCombine(), performIntrinsicCombine(), PerformIntrinsicCombine(), performIntToFpCombine(), performLD1GatherCombine(), performLDNT1Combine(), llvm::AMDGPUTargetLowering::performLoadCombine(), performMADD_MSUBCombine(), performMulCombine(), PerformMULCombine(), llvm::AMDGPUTargetLowering::performMulhsCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), llvm::AMDGPUTargetLowering::performMulLoHi24Combine(), performORCombine(), PerformORCombine(), PerformORCombine_i1(), PerformORCombineToBFI(), PerformORCombineToSMULWBT(), PerformPREDICATE_CASTCombine(), PerformREMCombine(), performSELECTCombine(), performSelectCombine(), performSetccAddFolding(), performSETCCCombine(), PerformSETCCCombine(), PerformShiftCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), performSHLCombine(), PerformSHLSimplify(), performSignExtendInRegCombine(), PerformSplittingToNarrowingStores(), PerformSplittingToWideningLoad(), llvm::AMDGPUTargetLowering::performSraCombine(), performSRACombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), performSRLCombine(), performST1ScatterCombine(), performSTNT1Combine(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), PerformSUBCombine(), performTBZCombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PerformTruncatingStoreCombine(), PerformUMLALCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVDUPLANECombine(), PerformVECTOR_SHUFFLECombine(), performVectorCompareAndMaskUnaryOpCombine(), PerformVMOVDRRCombine(), PerformVMULCombine(), performVSELECTCombine(), performVSelectCombine(), performXORCombine(), performXorCombine(), prepareDescriptorIndirectCall(), prepareIndirectCall(), PrepareTailCall(), promoteExtBeforeAdd(), PromoteMaskArithmetic(), PromoteMVEPredVector(), promoteToConstantPool(), llvm::AArch64TargetLowering::ReconstructShuffle(), recoverFramePointer(), reduceBuildVecToShuffleWithZero(), reduceMaskedLoadToScalarLoad(), reduceMaskedStoreToScalarStore(), reduceVMULWidth(), ReorganizeVector(), ReplaceAllUsesWith(), ReplaceBITCASTResults(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), replaceInChain(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::RISCVTargetLowering::ReplaceNodeResults(), llvm::AVRTargetLowering::ReplaceNodeResults(), llvm::XCoreTargetLowering::ReplaceNodeResults(), llvm::SparcTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), ReplaceReductionResults(), replaceShuffleOfInsert(), scalarizeBinOpOfSplats(), scalarizeExtEltFP(), scalarizeExtractedBinop(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), scalarizeVectorStore(), llvm::HexagonDAGToDAGISel::SelectIntrinsicWOChain(), setUsesTOCBasePtr(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), llvm::SITargetLowering::shouldEmitPCReloc(), shouldGuaranteeTCO(), llvm::TargetLowering::ShrinkDemandedConstant(), ShrinkLoadReplaceStoreWithStore(), signExtendBitcastSrcVector(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::X86TargetLowering::SimplifyDemandedBitsForTargetNode(), llvm::TargetLowering::SimplifyDemandedVectorElts(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(), simplifyDivRem(), simplifyI24(), simplifyShuffleOfShuffle(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), split256IntArith(), split512IntArith(), llvm::AMDGPUTargetLowering::split64BitValue(), SplitAndExtendv16i1(), splitAndLowerShuffle(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), llvm::SITargetLowering::splitBinaryVectorOp(), splitInt128(), SplitOpsAndApply(), splitStores(), splitStoreSplat(), llvm::SITargetLowering::splitTernaryVectorOp(), llvm::SITargetLowering::splitUnaryVectorOp(), llvm::AMDGPUTargetLowering::splitVector(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), splitVectorStore(), stripModuloOnShift(), stripTruncAndExt(), llvm::ARMTargetLowering::targetShrinkDemandedConstant(), llvm::X86TargetLowering::targetShrinkDemandedConstant(), truncateScalarIntegerArg(), truncateVecElts(), truncateVectorWithPACK(), tryAdvSIMDModImm16(), tryAdvSIMDModImm32(), tryAdvSIMDModImm321s(), tryAdvSIMDModImm64(), tryAdvSIMDModImm8(), tryAdvSIMDModImmFP(), tryBuildVectorShuffle(), tryCombineCRC32(), tryCombineFixedPointConvert(), tryCombineLongOpWithDup(), tryCombineShiftImm(), tryCombineToBSL(), tryCombineToEXTR(), tryConvertSVEWideCompare(), tryExtendDUPToExtractHigh(), tryFoldToZero(), tryFormConcatFromShuffle(), tryLowerToSLI(), TryMULWIDECombine(), tryToFoldExtendOfConstant(), tryToFoldExtOfLoad(), tryToFoldExtOfMaskedLoad(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unrollVectorShift(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), vectorEltWillFoldAway(), vectorizeExtractedCast(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), visitFMinMax(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), visitORCommutative(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), widenCtPop(), widenSubVector(), widenVec(), WidenVector(), llvm::AMDGPUTargetLowering::WidenVectorLoad(), willShiftRightEliminate(), and WinDBZCheckDenominator().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| ArrayRef< SDValue > | Ops, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 7338 of file SelectionDAG.cpp.
References AddNodeIDNode(), assert(), llvm::ISD::BR_CC, llvm::ISD::BUILD_VECTOR, llvm::ISD::CONCAT_VECTORS, E, FoldBUILD_VECTOR(), foldCONCAT_VECTORS(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getNode(), getValueType(), getVTList(), llvm::MVT::Glue, N, NewSDValueDbgMsg(), llvm::ISD::SELECT_CC, and llvm::ArrayRef< T >::size().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| ArrayRef< EVT > | ResultTys, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7403 of file SelectionDAG.cpp.
References getNode(), and getVTList().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| SDVTList | VTList, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7408 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::ISD::AND, assert(), llvm::EVT::bitsLT(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getNode(), getValueType(), llvm::EVT::getVectorNumElements(), llvm::MVT::Glue, llvm::MVT::i1, llvm::EVT::isFloatingPoint(), llvm::EVT::isVector(), N, NewSDValueDbgMsg(), llvm::SDVTList::NumVTs, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND_INREG, llvm::ArrayRef< T >::size(), llvm::ISD::SRA_PARTS, llvm::ISD::SRL_PARTS, llvm::ISD::STRICT_FP_EXTEND, llvm::ISD::STRICT_FP_ROUND, and llvm::SDVTList::VTs.
Gets or creates the specified node.
Definition at line 4358 of file SelectionDAG.cpp.
References AddNodeIDNode(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getVTList(), NewSDValueDbgMsg(), and llvm::None.
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | Operand, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 4375 of file SelectionDAG.cpp.
References llvm::ISD::ABS, llvm::APInt::abs(), AddNodeIDNode(), llvm::ISD::ANY_EXTEND, llvm::ISD::ANY_EXTEND_VECTOR_INREG, llvm::lltok::APFloat, assert(), llvm::ISD::BITCAST, llvm::APFloat::bitcastToAPInt(), llvm::ISD::BITREVERSE, llvm::EVT::bitsGT(), llvm::EVT::bitsLE(), llvm::EVT::bitsLT(), llvm::ISD::BSWAP, llvm::ISD::BUILD_VECTOR, llvm::APInt::byteSwap(), C, llvm::APFloat::changeSign(), llvm::APFloat::clearSign(), llvm::ISD::CONCAT_VECTORS, llvm::APFloat::convert(), llvm::APFloat::convertFromAPInt(), llvm::APFloat::convertToInteger(), llvm::APInt::countLeadingZeros(), llvm::APInt::countPopulation(), llvm::APInt::countTrailingZeros(), llvm::ISD::CTLZ, llvm::ISD::CTLZ_ZERO_UNDEF, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::ISD::CTTZ_ZERO_UNDEF, E, EVTToAPFloatSemantics(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::MVT::f128, llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::ISD::FABS, llvm::ISD::FCEIL, llvm::ISD::FFLOOR, llvm::ISD::FNEG, FoldBUILD_VECTOR(), FoldConstantVectorArithmetic(), llvm::ISD::FP16_TO_FP, llvm::ISD::FP_EXTEND, llvm::ISD::FP_ROUND, llvm::ISD::FP_TO_FP16, llvm::ISD::FP_TO_SINT, llvm::ISD::FP_TO_UINT, llvm::ISD::FTRUNC, llvm::APInt::getBitWidth(), getConstant(), getConstantFP(), llvm::SDValue::getConstantOperandVal(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getNode(), getNode(), llvm::APInt::getNullValue(), llvm::SDNode::getOpcode(), llvm::SDValue::getOperand(), llvm::EVT::getScalarSizeInBits(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), getUNDEF(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::APInt::getZExtValue(), llvm::MVT::Glue, llvm::MVT::i128, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::APFloatBase::IEEEdouble(), llvm::APFloatBase::IEEEhalf(), llvm::APFloatBase::IEEEquad(), llvm::APFloatBase::IEEEsingle(), llvm::tgtok::IntVal, llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::SDValue::isUndef(), llvm::EVT::isVector(), LLVM_FALLTHROUGH, llvm_unreachable, llvm::ISD::MERGE_VALUES, N, NewSDValueDbgMsg(), llvm::APFloatBase::opInexact, llvm::APFloatBase::opInvalidOp, llvm::APFloatBase::opOK, llvm::APInt::reverseBits(), llvm::APFloatBase::rmNearestTiesToEven, llvm::APFloatBase::rmTowardNegative, llvm::APFloatBase::rmTowardPositive, llvm::APFloatBase::rmTowardZero, llvm::APFloat::roundToIntegral(), llvm::ISD::SCALAR_TO_VECTOR, llvm::SDNode::setFlags(), llvm::APInt::sextOrTrunc(), llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_VECTOR_INREG, llvm::ISD::SINT_TO_FP, llvm::ISD::TokenFactor, transferDbgValues(), llvm::APInt::trunc(), llvm::ISD::TRUNCATE, llvm::ISD::UINT_TO_FP, llvm::ISD::UNDEF, llvm::ISD::ZERO_EXTEND, llvm::ISD::ZERO_EXTEND_VECTOR_INREG, and llvm::APInt::zextOrTrunc().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 5125 of file SelectionDAG.cpp.
References llvm::ISD::ADD, AddNodeIDNode(), llvm::ISD::AND, llvm::APInt::ashrInPlace(), assert(), llvm::ISD::AssertSext, llvm::ISD::AssertZext, llvm::EVT::bitsLE(), llvm::ISD::BUILD_PAIR, llvm::ISD::BUILD_VECTOR, C, llvm::ISD::CONCAT_VECTORS, llvm::dyn_cast(), llvm::numbers::e, E, llvm::ISD::EntryToken, llvm::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FADD, llvm::ISD::FCOPYSIGN, llvm::ISD::FDIV, llvm::ISD::FMUL, FoldBUILD_VECTOR(), foldCONCAT_VECTORS(), FoldConstantArithmetic(), foldConstantFPMath(), llvm::ISD::FP_ROUND, llvm::ISD::FREM, llvm::ISD::FSUB, getAllOnesConstant(), getAnyExtOrTrunc(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), getBuildVector(), getConstant(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getNode(), getNode(), llvm::SDValue::getNumOperands(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::EVT::getScalarSizeInBits(), llvm::EVT::getScalarType(), getSExtOrTrunc(), llvm::SDValue::getSimpleValueType(), llvm::EVT::getSimpleVT(), llvm::EVT::getSizeInBits(), getUNDEF(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::ConstantSDNode::getZExtValue(), llvm::MVT::Glue, llvm::MVT::i1, llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::isBuildVectorOfConstantSDNodes(), llvm::TargetLoweringBase::isCommutativeBinOp(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::EVT::isSimple(), llvm::SDValue::isUndef(), llvm::EVT::isVector(), LLVM_FALLTHROUGH, llvm::Log2_32_Ceil(), llvm::APInt::lshr(), llvm::ISD::MUL, llvm::ISD::MULHS, llvm::ISD::MULHU, N, NewSDValueDbgMsg(), llvm::ISD::OR, llvm::MVT::Other, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SADDSAT, llvm::ISD::SDIV, llvm::SDNode::setFlags(), llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, simplifyFPBinop(), simplifyShift(), llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SRA, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SSUBSAT, llvm::ISD::SUB, std::swap(), llvm::ISD::TokenFactor, llvm::APInt::trunc(), llvm::ISD::UADDSAT, llvm::ISD::UDIV, llvm::ISD::UMAX, llvm::ISD::UMIN, llvm::ISD::UREM, llvm::ISD::USUBSAT, and llvm::ISD::XOR.
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Definition at line 5534 of file SelectionDAG.cpp.
References AddNodeIDNode(), assert(), llvm::ISD::BITCAST, llvm::ISD::BUILD_VECTOR, llvm::ISD::CONCAT_VECTORS, llvm::dyn_cast(), E, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::FMA, FoldBUILD_VECTOR(), foldCONCAT_VECTORS(), FoldConstantVectorArithmetic(), FoldSetCC(), llvm::APFloat::fusedMultiplyAdd(), getConstantFP(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getSimpleValueType(), llvm::EVT::getSimpleVT(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::ConstantSDNode::getZExtValue(), llvm::MVT::Glue, llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INSERT_VECTOR_ELT, llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::EVT::isSimple(), llvm::SDValue::isUndef(), llvm::EVT::isVector(), llvm_unreachable, N, NewSDValueDbgMsg(), llvm::APFloatBase::rmNearestTiesToEven, llvm::ISD::SELECT, llvm::ISD::SETCC, llvm::SDNode::setFlags(), simplifySelect(), llvm::NVPTX::PTXLdStInstCode::V2, llvm::ISD::VECTOR_SHUFFLE, and llvm::ISD::VSELECT.
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3, | ||
| SDValue | N4 | ||
| ) |
Definition at line 5679 of file SelectionDAG.cpp.
References getNode().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3, | ||
| SDValue | N4, | ||
| SDValue | N5 | ||
| ) |
Definition at line 5685 of file SelectionDAG.cpp.
References getNode().
Definition at line 7490 of file SelectionDAG.cpp.
References getNode(), and llvm::None.
Definition at line 7495 of file SelectionDAG.cpp.
References getNode().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| SDVTList | VTList, | ||
| SDValue | N1, | ||
| SDValue | N2 | ||
| ) |
Definition at line 7501 of file SelectionDAG.cpp.
References getNode().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| SDVTList | VTList, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3 | ||
| ) |
Definition at line 7507 of file SelectionDAG.cpp.
References getNode().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| SDVTList | VTList, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3, | ||
| SDValue | N4 | ||
| ) |
Definition at line 7513 of file SelectionDAG.cpp.
References getNode().
| SDValue SelectionDAG::getNode | ( | unsigned | Opcode, |
| const SDLoc & | DL, | ||
| SDVTList | VTList, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| SDValue | N3, | ||
| SDValue | N4, | ||
| SDValue | N5 | ||
| ) |
Definition at line 7519 of file SelectionDAG.cpp.
References getNode().
| SDNode * SelectionDAG::getNodeIfExists | ( | unsigned | Opcode, |
| SDVTList | VTList, | ||
| ArrayRef< SDValue > | Ops, | ||
| const SDNodeFlags | Flags = SDNodeFlags() |
||
| ) |
Get the specified node if it's already available, or else return NULL.
getNodeIfExists - Get the specified node if it's already available, or else return NULL.
Definition at line 8102 of file SelectionDAG.cpp.
References AddNodeIDNode(), E, llvm::MVT::Glue, llvm::SDVTList::NumVTs, and llvm::SDVTList::VTs.
Referenced by combineX86AddSub(), EmitCmp(), and simplifyDivRem().
Create a bitwise NOT operation as (XOR Val, -1).
getNOT - Create a bitwise NOT operation as (XOR Val, -1).
Definition at line 1194 of file SelectionDAG.cpp.
References llvm::APInt::getAllOnesValue(), getConstant(), getNode(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), and llvm::ISD::XOR.
Referenced by combineSetCC(), EmitVectorComparison(), foldAddSubOfSignBit(), foldExtendedSignBitTest(), llvm::ARMTargetLowering::isReadOnly(), LowerADDSAT_SUBSAT(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), lowerMSABitClear(), lowerMSABitClearImm(), LowerVSETCC(), scalarizeBinOpOfSplats(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::TargetLowering::SimplifyDemandedBits(), and stripTruncAndExt().
|
inline |
Create an add instruction with appropriate flags when used for addressing some offset of an object.
i.e. if a load is split into multiple components, create an add nuw from the base pointer to the offset.
Definition at line 866 of file SelectionDAG.h.
References llvm::SDNodeFlags::setNoUnsignedWrap().
Referenced by llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), findUnwindDestinations(), llvm::SITargetLowering::isTypeDesirableForOp(), PerformSplittingToNarrowingStores(), PerformSplittingToWideningLoad(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), and llvm::AMDGPUTargetLowering::SplitVectorStore().
|
inline |
Definition at line 872 of file SelectionDAG.h.
References llvm::SDNodeFlags::setNoUnsignedWrap().
|
inline |
Definition at line 431 of file SelectionDAG.h.
Definition at line 421 of file SelectionDAG.h.
Referenced by llvm::SITargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::passSpecialInputs().
|
inline |
Definition at line 432 of file SelectionDAG.h.
Return the expression required to extend the Op as a pointer value assuming it was the smaller SrcTy value.
This may be either a zero extend or a sign extend.
Definition at line 1187 of file SelectionDAG.cpp.
References getZeroExtendInReg().
Convert Op, which must be of integer type, to the integer type VT, by either truncating it or performing either zero or sign extension as appropriate extension for the pointer's semantics.
Definition at line 1181 of file SelectionDAG.cpp.
References getZExtOrTrunc().
Referenced by findMatchingInlineAsmOperand(), findUnwindDestinations(), getUniformBase(), and isVectorReductionOp().
Definition at line 1790 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), E, getVTList(), llvm::TargetLowering::isSDNodeSourceOfDivergence(), llvm::None, llvm::ISD::Register, and llvm::SDNode::SDNodeBits.
Referenced by llvm::RegsForValue::AddInlineAsmOperands(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), buildCallOperands(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitLockedStackOp(), EmitUnrolledSetTag(), expandf64Toi32(), findUnwindDestinations(), llvm::MipsTargetLowering::getAddrGPRel(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPrefetchNode(), getReductionSDNode(), getTargetNode(), llvm::ARCTargetLowering::getTargetNodeName(), getVectorCompareInfo(), getZeroVector(), isFloatingPointZero(), isLowerSaturatingConditional(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFABS32(), lowerFABS64(), llvm::LanaiTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), llvm::SparcTargetLowering::LowerINTRINSIC_WO_CHAIN(), llvm::LanaiTargetLowering::LowerJumpTable(), LowerMemOpCallTo(), llvm::BPFTargetLowering::LowerOperation(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), LowerVASTART(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), parsePredicateConstraint(), Passv64i1ArgInRegs(), llvm::R600TargetLowering::PerformDAGCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), ReplaceCMP_SWAP_64Results(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::PPCTargetLowering::SelectAddressRegRegOnly(), llvm::SelectionDAGISel::SelectCodeCommon(), selectImm(), setUsesTOCBasePtr(), llvm::SITargetLowering::shouldEmitPCReloc(), truncateScalarIntegerArg(), and UnpackFromArgumentSlot().
Definition at line 1805 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), E, getVTList(), llvm::None, llvm::ISD::RegisterMask, and llvm::MVT::Untyped.
Referenced by llvm::analyzeArguments(), buildCallOperands(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), getReductionSDNode(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::ARMTargetLowering::isReadOnly(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), and mayTailCallThisCC().
Return the root tag of the SelectionDAG.
Definition at line 482 of file SelectionDAG.h.
Referenced by llvm::DOTGraphTraits< SelectionDAG * >::addCustomGraphFeatures(), llvm::checkForCycles(), llvm::SelectionDAGBuilder::clearDanglingDebugInfo(), findMatchingInlineAsmOperand(), FixedPointIntrinsicToOpcode(), getMemCmpLoad(), getSPDenormModeValue(), getUniformBase(), llvm::SelectionDAGISel::getUninvalidatedNodeId(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), RemoveDeadNode(), RemoveDeadNodes(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), llvm::DAGTypeLegalizer::run(), tryToElideArgumentCopy(), and llvm::SelectionDAGBuilder::UpdateSplitBlock().
|
inline |
Definition at line 1720 of file SelectionDAG.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
|
inline |
Helper function to make it easier to build Select's if you just have operands and don't want to check for vector.
Definition at line 1013 of file SelectionDAG.h.
References assert(), llvm::SDValue::getValueType(), llvm::EVT::isVector(), llvm::ISD::SELECT, and llvm::ISD::VSELECT.
Referenced by llvm::TargetLowering::BuildUDIV(), combineFMinNumFMaxNum(), combineLogicBlendIntoPBLENDV(), combineMaskedLoadConstantMask(), earlyExpandDIVFIX(), llvm::TargetLowering::expandFixedPointDiv(), FixedPointIntrinsicToOpcode(), foldExtendedSignBitTest(), getAsNonOpaqueConstant(), getExpandedMinMaxOps(), GetFPLibCall(), getPermuteMask(), llvm::ARMTargetLowering::isReadOnly(), LowerADDSAT_SUBSAT(), llvm::HexagonTargetLowering::LowerBUILD_VECTOR(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), lowerINT_TO_FP_vXi64(), LowerRotate(), LowerShift(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), lowerShuffleAsBlend(), LowerSIGN_EXTEND_Mask(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerVSELECT(), LowerZERO_EXTEND_Mask(), performSelectCombine(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), simplifyDivRem(), and tryToFoldExtendOfConstant().
|
inline |
Helper function to make it easier to build SelectCC's if you just have an ISD::CondCode instead of an SDValue.
Definition at line 1025 of file SelectionDAG.h.
References llvm::ISD::FrameIndex, From, getCondCode(), llvm::SDValue::getValueType(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MONone, llvm::MachineMemOperand::MOStore, llvm::RISCVFenceField::O, llvm::RISCVFenceField::R, llvm::ISD::SELECT_CC, X, and Y.
Referenced by createVariablePermute(), llvm::TargetLowering::expandMUL_LOHI(), GetFPLibCall(), isClampZeroToOne(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::R600TargetLowering::ReplaceNodeResults(), stripTruncAndExt(), and truncateScalarIntegerArg().
|
inline |
Definition at line 428 of file SelectionDAG.h.
Referenced by FixedPointIntrinsicToOpcode(), and getMemCmpLoad().
|
inline |
Helper function to make it easier to build SetCC's if you just have an ISD::CondCode instead of an SDValue.
Definition at line 996 of file SelectionDAG.h.
References assert(), getCondCode(), llvm::SDValue::getValueType(), llvm::EVT::isVector(), llvm::MVT::Other, llvm::ISD::SETCC, llvm::ISD::SETCC_INVALID, llvm::ISD::STRICT_FSETCC, and llvm::ISD::STRICT_FSETCCS.
Referenced by llvm::TargetLowering::BuildUDIV(), combineAnd(), combineExtractVectorElt(), combineExtSetcc(), combineFMinNumFMaxNum(), combineHorizontalPredicateResult(), combineOr(), combineSetCC(), combineShiftAnd1ToBitTest(), combineToExtendBoolVectorInReg(), combineVectorSizedSetCCEquality(), earlyExpandDIVFIX(), EmitCmp(), emitOrXorXorTree(), EmitVectorComparison(), llvm::TargetLowering::expandFixedPointDiv(), FixedPointIntrinsicToOpcode(), foldExtendedSignBitTest(), foldVectorXorShiftIntoCmp(), generateEquivalentSub(), getEstimate(), getExpandedMinMaxOps(), GetFPLibCall(), getFPTernOp(), getMemCmpLoad(), getNormalLoadInput(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), getSPDenormModeValue(), llvm::ARMTargetLowering::isReadOnly(), isVectorReductionOp(), lower1BitShuffle(), LowerADDSAT_SUBSAT(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), LowerEXTEND_VECTOR_INREG(), llvm::AMDGPUTargetLowering::LowerFCEIL(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFROUND_LegalFTRUNC(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), lowerINT_TO_FP_vXi64(), LowerIntVSETCC_AVX512(), lowerMSABitClearImm(), LowerMULH(), LowerScalarImmediateShift(), llvm::HexagonTargetLowering::LowerSETCC(), LowerShift(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), LowerTruncateVecI1(), llvm::HexagonTargetLowering::LowerUAddSubO(), lowerUINT_TO_FP_vec(), LowerUMULO_SMULO(), LowerVectorCTLZInRegLUT(), performSELECTCombine(), performVSelectCombine(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::shouldEmitPCReloc(), simplifyDivRem(), llvm::TargetLowering::softenSetCCOperands(), stripTruncAndExt(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), visitFMinMax(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), and widenCtPop().
Convert Op, which must be of integer type, to the integer type VT, by either sign-extending or truncating it.
Definition at line 1148 of file SelectionDAG.cpp.
References llvm::EVT::bitsGT(), getNode(), llvm::SDValue::getValueType(), llvm::ISD::SIGN_EXTEND, and llvm::ISD::TRUNCATE.
Referenced by combineGatherScatter(), combineShiftOfShiftedLogic(), combineShuffleOfScalars(), combineToExtendBoolVectorInReg(), earlyExpandDIVFIX(), EmitVectorComparison(), expandDivFix(), foldCONCAT_VECTORS(), foldExtendedSignBitTest(), generateEquivalentSub(), getExpandedMinMaxOps(), getMad64_32(), getMemCmpLoad(), getNode(), getSPDenormModeValue(), llvm::SITargetLowering::isTypeDesirableForOp(), LowerBITCAST(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), LowerMULH(), LowerSADDSUBSAT(), llvm::HexagonTargetLowering::LowerSETCC(), LowerShift(), llvm::HexagonTargetLowering::LowerVSELECT(), LowerVSETCC(), llvm::AMDGPUTargetLowering::performMulCombine(), llvm::AMDGPUTargetLowering::performMulhsCombine(), scalarizeExtractedBinop(), and widenCtPop().
| SDValue SelectionDAG::getShiftAmountConstant | ( | uint64_t | Val, |
| EVT | VT, | ||
| const SDLoc & | DL, | ||
| bool | LegalTypes = true |
||
| ) |
Definition at line 1333 of file SelectionDAG.cpp.
References getConstant(), getDataLayout(), and llvm::TargetLoweringBase::getShiftAmountTy().
Referenced by extractShiftForRotate(), getCopyToParts(), llvm::AMDGPUTargetLowering::loadInputValue(), llvm::SITargetLowering::passSpecialInputs(), and stripTruncAndExt().
Return the specified value casted to the target's desired shift amount type.
getShiftAmountOperand - Return the specified value casted to the target's desired shift amount type.
Definition at line 1926 of file SelectionDAG.cpp.
References getDataLayout(), llvm::TargetLoweringBase::getShiftAmountTy(), llvm::SDValue::getValueType(), getZExtOrTrunc(), and llvm::EVT::isVector().
Return a splat ISD::BUILD_VECTOR node, consisting of Op splatted to all elements.
VT must be a vector type. Op's type must be the same as (or, for integers, a type wider than) VT's element type.
Definition at line 775 of file SelectionDAG.h.
References assert(), llvm::EVT::bitsLE(), llvm::ISD::BUILD_VECTOR, llvm::SDValue::getOpcode(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::EVT::isInteger(), and llvm::ISD::UNDEF.
Referenced by callingConvSupported(), ConstantBuildVector(), getConstant(), getConstantFP(), getMemsetValue(), getUniformBase(), getVectorShuffle(), isSubBorrowChain(), and llvm::SITargetLowering::shouldEmitPCReloc().
If V is a splatted value, return the source vector and its splat index.
Definition at line 2374 of file SelectionDAG.cpp.
References llvm::countTrailingOnes(), llvm::APInt::getAllOnesValue(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), isSplatValue(), llvm::APInt::isSubsetOf(), llvm::peekThroughExtractSubvectors(), and llvm::ISD::VECTOR_SHUFFLE.
Referenced by getSplatValue(), and scalarizeBinOpOfSplats().
If V is a splat vector, return its scalar source operand by extracting that element from the source vector.
Definition at line 2411 of file SelectionDAG.cpp.
References llvm::ISD::EXTRACT_VECTOR_ELT, getIntPtrConstant(), getNode(), and getSplatSourceVector().
Referenced by LowerScalarVariableShift().
Definition at line 792 of file SelectionDAG.h.
References assert(), llvm::EVT::bitsLE(), llvm::SDValue::getOpcode(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::isInteger(), llvm::ISD::SPLAT_VECTOR, and llvm::ISD::UNDEF.
Referenced by getConstant().
Compute the VTs needed for the low/hi parts of a type which is split (or expanded) into two not necessarily identical pieces.
GetSplitDestVTs - Compute the VTs needed for the low/hi parts of a type which is split (or expanded) into two not necessarily identical pieces.
Definition at line 9439 of file SelectionDAG.cpp.
References llvm::EVT::getHalfNumVectorElementsVT(), and llvm::EVT::isVector().
Referenced by ExtendUsesToFormExtLoad(), LowerTruncateVecI1(), llvm::X86TargetLowering::ReplaceNodeResults(), and ReplaceReductionResults().
Construct a node to track a Value* through the backend.
Definition at line 1863 of file SelectionDAG.cpp.
References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), assert(), E, llvm::Value::getType(), getVTList(), llvm::Type::isPointerTy(), llvm::None, llvm::MVT::Other, and llvm::ISD::SRCVALUE.
Referenced by findMatchingInlineAsmOperand(), and FixedPointIntrinsicToOpcode().
Compute a TokenFactor to force all the incoming stack arguments to be loaded from the stack.
getStackArgumentTokenFactor - Compute a TokenFactor to force all the incoming stack arguments to be loaded from the stack.
This is used in tail call lowering to protect stack arguments from being clobbered.
Definition at line 5694 of file SelectionDAG.cpp.
References getEntryNode(), getNode(), llvm::MVT::Other, llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::ISD::TokenFactor.
Referenced by buildCallOperands(), and getMOVL().
| SDValue SelectionDAG::getStore | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Val, | ||
| SDValue | Ptr, | ||
| MachinePointerInfo | PtrInfo, | ||
| unsigned | Alignment = 0, |
||
| MachineMemOperand::Flags | MMOFlags = MachineMemOperand::MONone, |
||
| const AAMDNodes & | AAInfo = AAMDNodes() |
||
| ) |
Helper function to build ISD::STORE nodes.
This function will set the MOStore flag on MMOFlags, but you can set it if you want. The MOLoad and MOInvariant flags must not be set.
Definition at line 6919 of file SelectionDAG.cpp.
References assert(), getEVTAlignment(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), InferPointerInfo(), llvm::PointerUnion< PTs >::isNull(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, llvm::MVT::Other, and llvm::MachinePointerInfo::V.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineStore(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), GetFPLibCall(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMOVL(), getNextIntArgReg(), getNormalLoadInput(), GetPromotionOpcode(), llvm::ARCTargetLowering::getTargetNodeName(), getTruncStore(), getUniformBase(), getVectorCompareInfo(), llvm::intCCToAVRCC(), isSortedByValueNo(), isSubBorrowChain(), LowerADJUST_TRAMPOLINE(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerF128Store(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerFP_TO_SINT_STORE(), lowerINT_TO_FP_vXi64(), LowerMemOpCallTo(), lowerMSAStoreIntr(), LowerSTORE(), LowerStore(), LowerTruncateVectorStore(), lowerUINT_TO_FP_vec(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), mayTailCallThisCC(), memsetStore(), llvm::X86TargetLowering::needsFixedCatchObjects(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), PerformTruncatingStoreCombine(), reduceMaskedStoreToScalarStore(), llvm::TargetLowering::scalarizeVectorStore(), scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), spillIncomingStatepointValue(), splitStores(), splitStoreSplat(), splitVectorStore(), llvm::HexagonDAGToDAGISel::StoreInstrForLoadIntrinsic(), llvm::AMDGPUTargetLowering::storeStackInputValue(), StoreTailCallArgumentsToStackSlot(), stripTruncAndExt(), and truncateScalarIntegerArg().
| SDValue SelectionDAG::getStore | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Val, | ||
| SDValue | Ptr, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6940 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), getUNDEF(), llvm::SDValue::getValueType(), getVTList(), NewSDValueDbgMsg(), llvm::MVT::Other, llvm::ISD::STORE, llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
| std::pair< SDValue, SDValue > SelectionDAG::getStrictFPExtendOrRound | ( | SDValue | Op, |
| SDValue | Chain, | ||
| const SDLoc & | DL, | ||
| EVT | VT | ||
| ) |
Convert Op, which must be a STRICT operation of float type, to the float type VT, by either extending or rounding (by truncation).
Definition at line 1129 of file SelectionDAG.cpp.
References assert(), llvm::EVT::bitsEq(), llvm::EVT::bitsGT(), getIntPtrConstant(), getNode(), llvm::SDValue::getValueType(), llvm::MVT::Other, llvm::ISD::STRICT_FP_EXTEND, and llvm::ISD::STRICT_FP_ROUND.
Referenced by LowerUINT_TO_FP_i32().
|
inline |
Definition at line 425 of file SelectionDAG.h.
References llvm::MachineFunction::getSubtarget().
Referenced by emitComparison(), emitConditionalComparison(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), EmitVectorComparison(), findMatchingInlineAsmOperand(), FixedPointIntrinsicToOpcode(), getHexagonSubtarget(), llvm::SDNode::getOperationName(), getReductionSDNode(), getUnderlyingArgRegs(), init(), isContractable(), llvm::PPC::isVPKUDUMShuffleMask(), lowerMSASplatZExt(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), numVectorEltsOrZero(), patchMatchingInput(), printMemOperand(), recoverFramePointer(), truncateScalarIntegerArg(), and truncateVecElts().
| SDValue SelectionDAG::getSymbolFunctionGlobalAddress | ( | SDValue | Op, |
| Function ** | TargetFunction = nullptr |
||
| ) |
Returs an GlobalAddress of the function from the current module with name matching the given ExternalSymbol.
Additionally can provide the matched function. Panics the function doesn't exists.
Definition at line 8781 of file SelectionDAG.cpp.
References assert(), llvm::raw_ostream::flush(), llvm::GlobalValue::getAddressSpace(), getDataLayout(), llvm::Module::getFunction(), getGlobalAddress(), llvm::GlobalValue::getParent(), llvm::report_fatal_error(), and llvm::ARMBuildAttrs::Symbol.
Referenced by llvm::NVPTXTargetLowering::LowerCall().
|
inline |
Definition at line 424 of file SelectionDAG.h.
References llvm::SystemZISD::TM.
Referenced by buildCallOperands(), callingConvSupported(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineFMinFMax(), combineFMinNumFMaxNum(), llvm::ScheduleDAGSDNodes::EmitSchedule(), FixedPointIntrinsicToOpcode(), foldFPToIntToFP(), FoldIntToFPToInt(), getMOVL(), llvm::TargetLowering::getNegatedExpression(), llvm::SDNode::getOperationName(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getSPDenormModeValue(), isClampZeroToOne(), isContractable(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isFMAddSubOrFMSubAdd(), isKnownNeverNaN(), isLegalToCombineMinNumMaxNum(), llvm::TargetLowering::isNegatibleForFree(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerToTLSExecModel(), MatchingStackOffset(), mayTailCallThisCC(), shouldGuaranteeTCO(), transformCallee(), truncateScalarIntegerArg(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), and widenVec().
|
inline |
Definition at line 698 of file SelectionDAG.h.
Referenced by findMatchingInlineAsmOperand(), llvm::MipsTargetLowering::getGlobalReg(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getTargetNode(), IsSmallObject(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::MSP430TargetLowering::LowerBlockAddress(), llvm::HexagonTargetLowering::LowerBlockAddress(), LowerEXTRACT_SUBVECTOR(), mayTailCallThisCC(), parsePredicateConstraint(), and llvm::SparcTargetLowering::withTargetFlags().
|
inline |
Definition at line 604 of file SelectionDAG.h.
Referenced by llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), llvm::AVRDAGToDAGISel::select< ISD::STORE >(), buildPCRelGlobalAddress(), llvm::SITargetLowering::buildRSRC(), buildSMovImm32(), callingConvSupported(), combineADC(), combineAddOrSubToADCOrSBB(), combineADDToADDZE(), combineAndMaskToShift(), combineCCMask(), combineCompareEqual(), combineTargetShuffle(), combineVectorShiftImm(), combineX86ShuffleChain(), createGPRPairNode(), createMMXBuildVector(), createVariablePermute(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), EmitAVX512Test(), emitLockedStackOp(), emitSETCC(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), ExtractBitFromMaskVector(), findMatchingInlineAsmOperand(), FixedPointIntrinsicToOpcode(), llvm::PPC::get_VSPLTI_elt(), getAbsolute(), getAL(), getAVX2GatherNode(), getBufferOffsetForMMO(), getCopyFromParts(), getDUPLANEOp(), getFPTernOp(), getGatherNode(), getGeneralPermuteNode(), getIntOperandsFromRegisterString(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLeftShift(), getPermuteNode(), getPrefetchNode(), getPTXCmpMode(), getScatterNode(), getSPDenormModeValue(), getTargetExtractSubreg(), getTargetInsertSubreg(), getTargetVShiftByConstNode(), getTargetVShiftNode(), getUniformBase(), getV4X86ShuffleImm8ForMask(), getVAArg(), getVectorCompareInfo(), getVShift(), getZeroVector(), insert1BitVector(), InsertBitToMaskVector(), isSubBorrowChain(), isVMOVModifiedImm(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), lower1BitShuffle(), lower1BitShuffleAsKSHIFTR(), LowerABS(), LowerAndToBT(), llvm::SparcTargetLowering::LowerAsmOperandForConstraint(), llvm::LanaiTargetLowering::LowerAsmOperandForConstraint(), llvm::RISCVTargetLowering::LowerAsmOperandForConstraint(), llvm::AVRTargetLowering::LowerAsmOperandForConstraint(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), llvm::SystemZTargetLowering::LowerAsmOperandForConstraint(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), LowerBITCAST(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), LowerCMP_SWAP(), LowerCONCAT_VECTORSvXi1(), LowerCTLZ(), LowerCTTZ(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), LowerFunnelShift(), LowerINTRINSIC_W_CHAIN(), LowerMLOAD(), LowerRotate(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsByteRotate(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsByteShiftMask(), lowerShuffleAsElementInsertion(), lowerShuffleAsInsertPS(), lowerShuffleAsLanePermuteAndSHUFP(), lowerShuffleAsRotate(), lowerShuffleAsShift(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleWithSHUFPD(), lowerShuffleWithSSE4A(), lowerUINT_TO_FP_vXi32(), lowerV2F64Shuffle(), lowerV2X128Shuffle(), lowerV4F64Shuffle(), lowerV4X128Shuffle(), lowerV8F64Shuffle(), lowerVECTOR_SHUFFLE_SHF(), lowerVECTOR_SHUFFLE_VSHF(), LowerVectorAllZeroTest(), LowerVectorINT_TO_FP(), mayTailCallThisCC(), narrowIfNeeded(), optimizeLogicalImm(), parseCachePolicy(), parsePredicateConstraint(), parseTexFail(), Passv64i1ArgInRegs(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), pickOpcodeForVT(), PromoteMVEPredVector(), pushStackMapConstant(), recoverFramePointer(), ReplaceBITCASTResults(), ReplaceREADCYCLECOUNTER(), llvm::AVRDAGToDAGISel::SelectAddr(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::HexagonDAGToDAGISel::SelectAnyImmediate(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectConstantFP(), llvm::HexagonDAGToDAGISel::SelectD2P(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), selectI64Imm(), selectI64ImmDirect(), selectImm(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::NVPTXDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::HexagonDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands(), llvm::HexagonDAGToDAGISel::SelectNewCircIntrinsic(), llvm::HexagonDAGToDAGISel::SelectQ2V(), llvm::HvxSelector::selectRor(), llvm::HexagonDAGToDAGISel::SelectSHL(), llvm::HexagonDAGToDAGISel::SelectV2Q(), llvm::HexagonDAGToDAGISel::SelectVAlign(), llvm::HexagonDAGToDAGISel::SelectVAlignAddr(), llvm::SITargetLowering::shouldEmitPCReloc(), llvm::X86TargetLowering::SimplifyDemandedBitsForTargetNode(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(), tryBitfieldInsertOpFromOr(), tryBitfieldInsertOpFromOrAndImm(), tryBuildVectorShuffle(), tryConvertSVEWideCompare(), llvm::SelectionDAGBuilder::visitBitTestCase(), Widen(), and llvm::SITargetLowering::wrapAddr64Rsrc().
|
inline |
Definition at line 608 of file SelectionDAG.h.
|
inline |
Definition at line 612 of file SelectionDAG.h.
Definition at line 636 of file SelectionDAG.h.
Referenced by getUniformBase(), llvm::NVPTXDAGToDAGISel::runOnMachineFunction(), and llvm::SelectionDAGISel::SelectCodeCommon().
|
inline |
Definition at line 639 of file SelectionDAG.h.
|
inline |
Definition at line 642 of file SelectionDAG.h.
|
inline |
Definition at line 666 of file SelectionDAG.h.
Referenced by llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::MipsTargetLowering::getGlobalReg(), llvm::ARMTargetLowering::getJumpTableEncoding(), getTargetNode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::HexagonTargetLowering::LowerConstantPool(), LowerEXTRACT_SUBVECTOR(), LowerWRITE_REGISTER(), mayTailCallThisCC(), promoteToConstantPool(), setUsesTOCBasePtr(), and llvm::SparcTargetLowering::withTargetFlags().
|
inline |
Definition at line 673 of file SelectionDAG.h.
References Reg.
| SDValue SelectionDAG::getTargetExternalSymbol | ( | const char * | Sym, |
| EVT | VT, | ||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1577 of file SelectionDAG.cpp.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), findMatchingInlineAsmOperand(), llvm::MipsTargetLowering::getGlobalReg(), llvm::ARMTargetLowering::getJumpTableEncoding(), getReductionSDNode(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::ARMTargetLowering::isReadOnly(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_SUBVECTOR(), llvm::HexagonTargetLowering::LowerGLOBAL_OFFSET_TABLE(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::BPFTargetLowering::LowerOperation(), mayTailCallThisCC(), parsePredicateConstraint(), transformCallee(), and llvm::SparcTargetLowering::withTargetFlags().
| SDValue SelectionDAG::getTargetExtractSubreg | ( | int | SRIdx, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | Operand | ||
| ) |
A convenience function for creating TargetInstrInfo::EXTRACT_SUBREG nodes.
getTargetExtractSubreg - A convenience function for creating TargetOpcode::EXTRACT_SUBREG nodes.
Definition at line 8082 of file SelectionDAG.cpp.
References getMachineNode(), getTargetConstant(), and llvm::MVT::i32.
Referenced by llvm::SITargetLowering::buildRSRC(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerF64Op(), lowerGR128Binary(), lowerGR128ToI128(), mayTailCallThisCC(), NarrowVector(), recoverFramePointer(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), and llvm::HexagonDAGToDAGISel::SelectVAlign().
Definition at line 655 of file SelectionDAG.h.
Referenced by addStackMapLiveVars(), llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), callingConvSupported(), EmitUnrolledSetTag(), lowerIncomingStatepointValue(), lowerStatepointMetaArgs(), reservePreviousStackSlotForValue(), llvm::AVRDAGToDAGISel::SelectAddr(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::HexagonDAGToDAGISel::SelectAddrFI(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), and spillIncomingStatepointValue().
|
inline |
Definition at line 650 of file SelectionDAG.h.
Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildPCRelGlobalAddress(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), FixedPointIntrinsicToOpcode(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), llvm::MipsTargetLowering::getGlobalReg(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getTargetNode(), llvm::BPFTargetLowering::getTargetNodeName(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isTargetConstant(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), LowerEXTRACT_SUBVECTOR(), llvm::LanaiTargetLowering::LowerGlobalAddress(), llvm::MSP430TargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), llvm::NVPTXTargetLowering::LowerGlobalAddress(), llvm::BPFTargetLowering::LowerOperation(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerWRITE_REGISTER(), mayTailCallThisCC(), parsePredicateConstraint(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::HexagonDAGToDAGISel::SelectGlobalAddress(), transformCallee(), and llvm::SparcTargetLowering::withTargetFlags().
| SDValue SelectionDAG::getTargetIndex | ( | int | Index, |
| EVT | VT, | ||
| int64_t | Offset = 0, |
||
| unsigned | TargetFlags = 0 |
||
| ) |
Definition at line 1515 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), E, getVTList(), llvm::None, and llvm::ISD::TargetIndex.
| SDValue SelectionDAG::getTargetInsertSubreg | ( | int | SRIdx, |
| const SDLoc & | DL, | ||
| EVT | VT, | ||
| SDValue | Operand, | ||
| SDValue | Subreg | ||
| ) |
A convenience function for creating TargetInstrInfo::INSERT_SUBREG nodes.
getTargetInsertSubreg - A convenience function for creating TargetOpcode::INSERT_SUBREG nodes.
Definition at line 8092 of file SelectionDAG.cpp.
References getMachineNode(), getTargetConstant(), and llvm::MVT::i32.
Referenced by LowerF64Op(), and mayTailCallThisCC().
Definition at line 660 of file SelectionDAG.h.
References C.
Referenced by callingConvSupported(), llvm::MipsTargetLowering::getGlobalReg(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::HexagonTargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::ARCTargetLowering::getTargetNodeName(), LowerEXTRACT_SUBVECTOR(), llvm::LanaiTargetLowering::LowerJumpTable(), llvm::MSP430TargetLowering::LowerJumpTable(), llvm::HexagonTargetLowering::LowerJumpTable(), and mayTailCallThisCC().
|
inline |
Definition at line 426 of file SelectionDAG.h.
Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), buildFromShuffleMostly(), llvm::TargetLowering::BuildSDIVPow2(), callingConvSupported(), CanCombineFCOPYSIGN_EXTEND_ROUND(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineAdd(), combineAnd(), combineBEXTR(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineConcatVectors(), combineExtInVec(), combineExtractSubvector(), combineExtractVectorElt(), combineFMA(), combineFMADDSUB(), combineFMinNumFMaxNum(), combineFneg(), combineGatherScatter(), combineHorizontalPredicateResult(), combineKSHIFT(), combineLoad(), combineLogicBlendIntoConditionalNegate(), combineMaskedStore(), combineMOVMSK(), combineMulToPMADDWD(), combineOr(), combineOrShiftToFunnelShift(), combineParity(), combinePMULDQ(), combineScalarAndWithMaskSetcc(), combineShiftAnd1ToBitTest(), combineShuffle(), combineShuffleToFMAddSub(), combineStore(), combineTruncatedArithmetic(), combineTruncateWithSat(), combineVectorInsert(), combineVectorShiftImm(), combineVectorShiftVar(), combineVectorSizedSetCCEquality(), combineX86GatherScatter(), combineX86INT_TO_FP(), combineX86ShuffleChain(), combineX86ShuffleChainWithExtract(), ConvertCarryFlagToBooleanCarry(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), EltsFromConsecutiveLoads(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), ExpandBITCAST(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), foldCONCAT_VECTORS(), foldExtendedSignBitTest(), foldShuffleOfConcatUndefs(), foldXorTruncShiftIntoCmp(), getAddressForMemoryInput(), getAVX2GatherNode(), getConstVector(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), llvm::SelectionDAGBuilder::getFrameIndexTy(), getGatherNode(), getHexagonLowering(), getKnownUndefForVectorBinop(), getLifetimeNode(), getLimitedPrecisionExp2(), getLoadStackGuard(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getMemsetValue(), llvm::SDNode::getOperationName(), getPrefetchNode(), GetRegistersForValue(), getScatterNode(), getUnderlyingArgRegs(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::SelectionDAGBuilder::handleDebugValue(), llvm::SelectionDAGBuilder::init(), isAddSubOrSubAdd(), isBLACompatibleAddress(), isConsecutiveLSLoc(), isFloatingPointZero(), isLowerSaturatingConditional(), isSubBorrowChain(), isVectorReductionOp(), isWordAligned(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDSAT_SUBSAT(), LowerADDSUBCARRY(), LowerBITCAST(), lowerBuildVectorAsBroadcast(), lowerBuildVectorToBitOp(), llvm::SelectionDAGBuilder::LowerCallTo(), LowerCTPOP(), llvm::SelectionDAGBuilder::lowerInvokable(), LowerMemOpCallTo(), LowerMSCATTER(), lowerShuffleAsElementInsertion(), lowerShuffleAsShift(), LowerStore(), LowerSVEIntReduction(), LowerTruncateVecI1(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vXi32(), LowerVASTART(), lowerVECTOR_SHUFFLE(), LowerXALUO(), LowerXOR(), matchLSNode(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), narrowInsertExtractVectorBinOp(), llvm::ScheduleDAGSDNodes::newSUnit(), numVectorEltsOrZero(), patchMatchingInput(), PerformABSCombine(), PerformADDCombineWithOperands(), performANDCombine(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), performExtendCombine(), PerformExtendCombine(), performLD1GatherCombine(), PerformLOADCombine(), performORCombine(), PerformORCombine(), performSelectCombine(), PerformShiftCombine(), performST1ScatterCombine(), PerformSTORECombine(), performTBISimplification(), PerformTruncatingStoreCombine(), PerformVECTOR_SHUFFLECombine(), PerformXORCombine(), PromoteMaskArithmetic(), recoverFramePointer(), reduceBuildVecToShuffleWithZero(), ReplaceCMP_SWAP_64Results(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), selectI64Imm(), llvm::TargetLowering::CallLoweringInfo::setLibCallee(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), ShrinkLoadReplaceStoreWithStore(), simplifyI24(), transformCallee(), tryToElideArgumentCopy(), VerifyDAGDiverence(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), widenCtPop(), and WinDBZCheckDenominator().
| SDValue llvm::SelectionDAG::getTargetMemSDNode | ( | SDVTList | VTs, |
| ArrayRef< SDValue > | Ops, | ||
| const SDLoc & | dl, | ||
| EVT | MemVT, | ||
| MachineMemOperand * | MMO | ||
| ) |
Return (create a new or find existing) a target-specific node.
TargetMemSDNode should be derived class from MemSDNode.
Compose node ID and try to find an existing node.
Existing node was not found. Create a new one.
Definition at line 1802 of file SelectionDAG.h.
References llvm::FoldingSetNodeID::AddInteger(), llvm::FoldingSetNodeID::AddPointer(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getNode(), getOpcode(), llvm::MachineMemOperand::getPointerInfo(), llvm::SDValue::getResNo(), llvm::FoldingSetImpl< T >::InsertNode(), and llvm::SDVTList::VTs.
Referenced by EmitMaskedTruncSStore(), EmitTruncSStore(), getScatterNode(), LowerMGATHER(), and LowerMSCATTER().
| SDValue SelectionDAG::getTokenFactor | ( | const SDLoc & | DL, |
| SmallVectorImpl< SDValue > & | Vals | ||
| ) |
Creates a new TokenFactor containing Vals.
If Vals contains 64k values or more, move values into new TokenFactors in 64k-1 blocks, until the final TokenFactor has less than 64k operands.
Definition at line 9727 of file SelectionDAG.cpp.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::SmallVectorImpl< T >::erase(), llvm::SDNode::getMaxNumOperands(), llvm::MVT::Other, llvm::SmallVectorBase::size(), and llvm::ISD::TokenFactor.
Referenced by llvm::SelectionDAGBuilder::clearDanglingDebugInfo(), getInputChainForNode(), llvm::SITargetLowering::LowerCall(), and ShrinkLoadReplaceStoreWithStore().
| SDValue SelectionDAG::getTruncStore | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Val, | ||
| SDValue | Ptr, | ||
| MachinePointerInfo | PtrInfo, | ||
| EVT | SVT, | ||
| unsigned | Alignment = 0, |
||
| MachineMemOperand::Flags | MMOFlags = MachineMemOperand::MONone, |
||
| const AAMDNodes & | AAInfo = AAMDNodes() |
||
| ) |
Definition at line 6970 of file SelectionDAG.cpp.
References assert(), getEVTAlignment(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), InferPointerInfo(), llvm::PointerUnion< PTs >::isNull(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, llvm::MVT::Other, and llvm::MachinePointerInfo::V.
Referenced by chainLoadsAndStoresForMemcpy(), combineStore(), EnsureStackAlignment(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), getAddressForMemoryInput(), GetFPLibCall(), getMemcpyLoadsAndStores(), getNormalLoadInput(), getSPDenormModeValue(), getVectorCompareInfo(), isSubBorrowChain(), isVectorElementSwap(), LowerINTRINSIC_W_CHAIN(), LowerPredicateStore(), PerformSplittingToNarrowingStores(), llvm::TargetLowering::scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), llvm::AMDGPUTargetLowering::SplitVectorStore(), llvm::HexagonDAGToDAGISel::StoreInstrForLoadIntrinsic(), and truncateScalarIntegerArg().
| SDValue SelectionDAG::getTruncStore | ( | SDValue | Chain, |
| const SDLoc & | dl, | ||
| SDValue | Val, | ||
| SDValue | Ptr, | ||
| EVT | SVT, | ||
| MachineMemOperand * | MMO | ||
| ) |
Definition at line 6992 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), assert(), llvm::EVT::bitsLT(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::EVT::getRawBits(), llvm::EVT::getScalarType(), getStore(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::EVT::isInteger(), llvm::EVT::isVector(), NewSDValueDbgMsg(), llvm::MVT::Other, llvm::ISD::STORE, llvm::RegState::Undef, and llvm::ISD::UNINDEXED.
Return an UNDEF node. UNDEF does not have a useful SDLoc.
Definition at line 911 of file SelectionDAG.h.
References llvm::ISD::UNDEF.
Referenced by addShuffleForVecExtend(), buildFromShuffleMostly(), buildMergeScalars(), buildScalarToVector(), callingConvSupported(), CollectOpsToWiden(), combineBasicSADPattern(), combineBitcast(), combineBitcastvxi1(), combineBVOfConsecutiveLoads(), combineConcatVectorOfExtracts(), combineConcatVectorOps(), combineExtractVectorElt(), combineExtractWithShuffle(), combineInsertSubvector(), combineMaskedLoadConstantMask(), combineReductionToHorizontal(), combineSetCCAtomicArith(), combineShiftOfShiftedLogic(), combineShuffleOfConcatUndef(), combineShuffleOfScalars(), combineStore(), combineTargetShuffle(), combineTruncateWithSat(), combineVectorPack(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), CompactSwizzlableVector(), concatSubVectors(), ConstantBuildVector(), constructRetValue(), convertLocVTToValVT(), convertShiftLeftToScale(), createMMXBuildVector(), earlyExpandDIVFIX(), EltsFromConsecutiveLoads(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), EmitTruncSStore(), ExpandBVWithShuffles(), ExpandHorizontalBinOp(), ExtendToType(), ExtractBitFromMaskVector(), extractBooleanFlip(), findMatchingInlineAsmOperand(), FixedPointIntrinsicToOpcode(), foldBitcastedFPLogic(), FoldBUILD_VECTOR(), foldCONCAT_VECTORS(), FoldConstantArithmetic(), foldConstantFPMath(), FoldConstantVectorArithmetic(), FoldIntToFPToInt(), fp16SrcZerosHighBits(), getBufferOffsetForMMO(), getBuildDwordsVector(), getConstVector(), getCopyFromPartsVector(), getExtLoad(), getFauxShuffleMask(), GetFPLibCall(), getGeneralPermuteNode(), getHopForBuildVector(), getKnownUndefForVectorBinop(), getLoad(), getMOVL(), getNode(), GetPromotionOpcode(), getShuffleHalfVectors(), getShuffleScalarElt(), getShuffleVectorZeroOrUndef(), getSplatSourceVector(), getStore(), llvm::SystemZTargetLowering::getTargetNodeName(), getTargetVShiftNode(), getTruncStore(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorShuffle(), insert1BitVector(), isAddSubOrSubAdd(), isFNEG(), isHopBuildVector(), isHorizontalBinOpPart(), isSETCCorConvertedSETCC(), joinDwords(), lower1BitShuffle(), lower1BitShuffleAsKSHIFTR(), LowerAsSplatVectorLoad(), lowerAtomicArith(), LowerAVXCONCAT_VECTORS(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTOR_i1(), LowerBUILD_VECTORAsVariablePermute(), LowerBuildVectorv4x32(), llvm::SITargetLowering::LowerCall(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORSvXi1(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_SUBVECTOR(), lowerFCMPIntrinsic(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), lowerICMPIntrinsic(), lowerINT_TO_FP_vXi64(), LowerINTRINSIC_W_CHAIN(), llvm::MipsTargetLowering::lowerLOAD(), LowerMSCATTER(), LowerMUL(), LowerMULH(), LowerPredicateStore(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsBlendAndPermute(), lowerShuffleAsBlendOfPSHUFBs(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsDecomposedShuffleBlend(), lowerShuffleAsElementInsertion(), lowerShuffleAsLanePermuteAndPermute(), lowerShuffleAsLanePermuteAndShuffle(), lowerShuffleAsPermuteAndUnpack(), lowerShuffleAsRepeatedMaskAndLanePermute(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsUNPCKAndPermute(), lowerShuffleOfExtractsAsVperm(), lowerShuffleWithPSHUFB(), lowerShuffleWithSSE4A(), lowerShuffleWithUndefHalf(), LowerSIGN_EXTEND(), LowerSIGN_EXTEND_Mask(), LowerStore(), LowerTruncateVecI1(), LowerTruncateVectorStore(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vXi32(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), lowerV16I8Shuffle(), lowerV2F64Shuffle(), lowerV2X128Shuffle(), lowerV4X128Shuffle(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE_i1(), LowerZERO_EXTEND_Mask(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchShuffleAsInsertPS(), matchShuffleWithUNPCK(), mayTailCallThisCC(), narrowExtractedVectorLoad(), NormalizeBuildVector(), numVectorEltsOrZero(), parseTexFail(), partitionShuffleOfConcats(), PerformARMBUILD_VECTORCombine(), llvm::R600TargetLowering::PerformDAGCombine(), performLDNT1Combine(), PerformSplittingToWideningLoad(), performSTNT1Combine(), PerformTruncatingStoreCombine(), PerformVECTOR_SHUFFLECombine(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceBuildVecToShuffleWithZero(), ReplaceBITCASTResults(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), llvm::SITargetLowering::shouldEmitPCReloc(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifyDemandedVectorElts(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(), simplifyDivRem(), llvm::TargetLowering::SimplifyMultipleUseDemandedBits(), llvm::X86TargetLowering::SimplifyMultipleUseDemandedBitsForTargetNode(), simplifyShift(), simplifyShuffleOfShuffle(), splitAndLowerShuffle(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), truncateScalarIntegerArg(), tryBuildVectorShuffle(), tryFoldToZero(), tryToFoldExtendOfConstant(), vectorizeExtractedCast(), widenCtPop(), widenSubVector(), widenVec(), WidenVector(), and widenVectorToPartType().
| SDValue SelectionDAG::getVAArg | ( | EVT | VT, |
| const SDLoc & | dl, | ||
| SDValue | Chain, | ||
| SDValue | Ptr, | ||
| SDValue | SV, | ||
| unsigned | Align | ||
| ) |
VAArg produces a result and token chain, and takes a pointer and a source value as input.
Definition at line 7316 of file SelectionDAG.cpp.
References getNode(), getTargetConstant(), getVTList(), llvm::MVT::i32, llvm::MVT::Other, and llvm::ISD::VAARG.
Referenced by earlyExpandDIVFIX(), findMatchingInlineAsmOperand(), and GetFPLibCall().
Definition at line 1546 of file SelectionDAG.cpp.
References llvm::EVT::getSimpleVT(), llvm::EVT::isExtended(), llvm::EVT::isSimple(), and llvm::MVT::SimpleTy.
Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), CollectOpsToWiden(), combineShiftOfShiftedLogic(), combineShiftRightArithmetic(), combineVectorTruncationWithPACKSS(), ConstantAddressBlock(), convertLocVTToValVT(), llvm::SITargetLowering::copyToM0(), customLegalizeToWOpWithSExt(), earlyExpandDIVFIX(), emitRepmovs(), EnsureStackAlignment(), llvm::PPCTargetLowering::expandVSXStoreForLE(), FoldBUILD_VECTOR(), foldExtendedSignBitTest(), GeneratePerfectShuffle(), getAArch64Cmp(), getCopyFromParts(), llvm::RegsForValue::getCopyFromRegs(), llvm::DAGTypeLegalizer::getDAG(), getDUPLANEOp(), getLoadExtOrTrunc(), getNode(), getNormalLoadInput(), getPermuteMask(), getShiftAmountTyForConstant(), isFunctionGlobalAddress(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), LowerBUILD_VECTOR_i1(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SITargetLowering::LowerCallResult(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerINSERT_VECTOR_ELT_i1(), lowerMSACopyIntr(), lowerMSAStoreIntr(), llvm::BPFTargetLowering::LowerOperation(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::MSP430TargetLowering::LowerShifts(), llvm::MSP430TargetLowering::LowerSIGN_EXTEND(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), LowerVASTART(), mayTailCallThisCC(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performLD1GatherCombine(), performST1ScatterCombine(), PromoteMaskArithmetic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), truncateScalarIntegerArg(), UnpackFromArgumentSlot(), widenCtPop(), and widenVec().
| SDValue SelectionDAG::getVectorShuffle | ( | EVT | VT, |
| const SDLoc & | dl, | ||
| SDValue | N1, | ||
| SDValue | N2, | ||
| ArrayRef< int > | Mask | ||
| ) |
Return an ISD::VECTOR_SHUFFLE node.
The number of elements in VT, which must be a vector type, must match the number of mask elements NumElts. An integer mask element equal to -1 is treated as undefined.
Definition at line 1607 of file SelectionDAG.cpp.
References llvm::FoldingSetNodeID::AddInteger(), AddNodeIDNode(), llvm::all_of(), llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Allocate(), assert(), llvm::ArrayRef< T >::begin(), llvm::ISD::BITCAST, C, commuteShuffle(), llvm::copy(), E, llvm::ArrayRef< T >::end(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getNode(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), getSplatBuildVector(), llvm::BuildVectorSDNode::getSplatValue(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::TargetLoweringBase::hasVectorBlend(), llvm::SDValue::isUndef(), NewSDValueDbgMsg(), llvm::BitVector::none(), llvm::ArrayRef< T >::size(), and llvm::ISD::VECTOR_SHUFFLE.
Referenced by addShuffleForVecExtend(), buildFromShuffleMostly(), llvm::TargetLowering::buildLegalVectorShuffle(), BuildVSLDOI(), CollectOpsToWiden(), combineBasicSADPattern(), combineBVOfConsecutiveLoads(), combineHorizontalMinMaxResult(), combineInsertSubvector(), combinePMULDQ(), combineReductionToHorizontal(), combineShuffleOfConcatUndef(), combineShuffleOfSplatVal(), combineSIntToFP(), combineToExtendBoolVectorInReg(), convertShiftLeftToScale(), createVariablePermute(), EltsFromConsecutiveLoads(), ExpandBVWithShuffles(), ExtractBitFromMaskVector(), foldShuffleOfConcatUndefs(), GeneratePerfectShuffle(), getCommutedVectorShuffle(), getMOVL(), getShuffleHalfVectors(), getShuffleVectorZeroOrUndef(), getUnpackh(), getUnpackl(), getVectorCompareInfo(), InsertBitToMaskVector(), isFNEG(), lower1BitShuffle(), lower256BitShuffle(), LowerAsSplatVectorLoad(), LowerBUILD_VECTORAsVariablePermute(), LowerBuildVectorv4x32(), LowerEXTEND_VECTOR_INREG(), LowerMUL(), LowerMULH(), LowerRotate(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsBlendAndPermute(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsDecomposedShuffleBlend(), lowerShuffleAsElementInsertion(), lowerShuffleAsLanePermuteAndPermute(), lowerShuffleAsLanePermuteAndRepeatedMask(), lowerShuffleAsLanePermuteAndShuffle(), lowerShuffleAsLanePermuteAndSHUFP(), lowerShuffleAsPermuteAndUnpack(), lowerShuffleAsRepeatedMaskAndLanePermute(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleAsUNPCKAndPermute(), lowerShuffleAsVTRUNCAndUnpack(), lowerShuffleOfExtractsAsVperm(), LowerSIGN_EXTEND(), LowerTruncateVecI1(), LowerUINT_TO_FP_i64(), lowerV16I8Shuffle(), lowerV2I64Shuffle(), lowerV4I32Shuffle(), lowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE_i1(), MergeInputChains(), partitionShuffleOfConcats(), performConcatVectorsCombine(), performSelectCombine(), PerformTruncatingStoreCombine(), PerformVECTOR_SHUFFLECombine(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceBuildVecToShuffleWithZero(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), scalarizeBinOpOfSplats(), scalarizeExtractedBinop(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), simplifyShuffleOfShuffle(), splitAndLowerShuffle(), truncateScalarIntegerArg(), truncateVectorWithPACK(), vectorizeExtractedCast(), and widenVec().
| SDDbgValue * SelectionDAG::getVRegDbgValue | ( | DIVariable * | Var, |
| DIExpression * | Expr, | ||
| unsigned | VReg, | ||
| bool | IsIndirect, | ||
| const DebugLoc & | DL, | ||
| unsigned | O | ||
| ) |
Creates a VReg SDDbgValue node.
VReg.
Definition at line 8152 of file SelectionDAG.cpp.
References assert(), llvm::SDDbgInfo::getAlloc(), and llvm::SDDbgValue::VREG.
Referenced by llvm::SelectionDAGBuilder::handleDebugValue().
Return an SDVTList that represents the list of values specified.
Definition at line 7526 of file SelectionDAG.cpp.
References makeVTList().
Referenced by AddCombineTo64bitMLAL(), AddCombineTo64BitSMLAL16(), AddCombineTo64bitUMAAL(), addStackMapLiveVars(), adjustLoadValueTypeImpl(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildCallOperands(), llvm::X86TargetLowering::BuildFILD(), llvm::TargetLowering::BuildSDIV(), llvm::TargetLowering::BuildUDIV(), callingConvSupported(), CC_Lanai32_VarArg(), CC_RISCV_FastCC(), llvm::ARMTargetLowering::CCAssignFnForReturn(), checkVSELConstraints(), CloneNodeWithValues(), CollectOpsToWiden(), combineADC(), combineAddOrSubToADCOrSBB(), combineADDToADDZE(), CombineBaseUpdate(), combineBitcast(), combineBVOfVecSExt(), combineCMP(), combineCVTP2I_CVTTP2I(), combineExtractSubvector(), combineInsertSubvector(), combineParity(), combineSBB(), combineShuffle(), combineTargetShuffle(), CombineVLDDUP(), combineX86AddSub(), combineX86INT_TO_FP(), ConstantBuildVector(), ConvertBooleanCarryToCarryFlag(), ConvertCarryFlagToBooleanCarry(), createLoadLR(), createStoreLR(), earlyExpandDIVFIX(), EltsFromConsecutiveLoads(), EmitAVX512Test(), emitCLC(), EmitCmp(), emitComparison(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), emitIntrinsicWithCCAndChain(), EmitMaskedTruncSStore(), emitRepmovs(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), EmitTest(), EmitTruncSStore(), EmitUnrolledSetTag(), Expand64BitShift(), ExpandBITCAST(), expandf64Toi32(), llvm::TargetLowering::expandFixedPointDiv(), expandIntrinsicWChainHelper(), llvm::TargetLowering::expandMUL_LOHI(), ExpandREAD_REGISTER(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), findMatchingInlineAsmOperand(), FixedPointIntrinsicToOpcode(), foldAddSubMasked1(), GeneratePerfectShuffle(), getAArch64XALUOOp(), llvm::MipsTargetLowering::getAddrGPRel(), getAddrSpaceCast(), getAtomic(), getAVX2GatherNode(), getBasicBlock(), getBlockAddress(), getBoundedStrlen(), getBufferOffsetForMMO(), getConstant(), getConstantFP(), getConstantPool(), llvm::RegsForValue::getCopyFromRegs(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getExpandedMinMaxOps(), getFPBinOp(), getFPTernOp(), getFrameIndex(), getGatherNode(), getGlobalAddress(), getIndexedStore(), getJumpTable(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLabelNode(), getLifetimeNode(), getLoad(), getMachineNode(), getMad64_32(), getMaskedLoad(), getMaskedStore(), getMDNode(), getMergeValues(), getMOVL(), getMul24(), getNode(), getNormalLoadInput(), GetPromotionOpcode(), getReductionSDNode(), getRegister(), getRegisterMask(), getScatterNode(), getShiftAmountTyForConstant(), getSPDenormModeValue(), getSrcValue(), getStore(), getTargetIndex(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getTruncStore(), getUniformBase(), getVAArg(), getVectorCompareInfo(), getVectorShuffle(), llvm::intCCToAVRCC(), isADDADDMUL(), isFloatingPointZero(), llvm::ARMTargetLowering::isReadOnly(), isSubBorrowChain(), isVectorElementSwap(), LowerABS(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDRSPACECAST(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), lowerAtomicArithWithLOCK(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), LowerCMP_SWAP(), LowerCTLZ(), LowerCTTZ(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), LowerMGATHER(), LowerMSCATTER(), llvm::BPFTargetLowering::LowerOperation(), llvm::SystemZTargetLowering::LowerOperationWrapper(), llvm::HexagonTargetLowering::LowerREADCYCLECOUNTER(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::MSP430TargetLowering::LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerStore(), LowerToTLSExecModel(), LowerTruncateVectorStore(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerVECTOR_SHUFFLE(), LowerVectorINT_TO_FP(), LowerXALUO(), mayTailCallThisCC(), MergeInputChains(), llvm::X86TargetLowering::needsFixedCatchObjects(), NegateCC(), parseTexFail(), llvm::ARMTargetLowering::PerformCMOVCombine(), performCONDCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performIntegerAbsCombine(), performLD1GatherCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), PerformSETCCCombine(), performSignExtendInRegCombine(), performST1ScatterCombine(), PerformUMLALCombine(), PerformVDUPCombine(), pickOpcodeForVT(), recoverFramePointer(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::RISCVTargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), llvm::SelectionDAGISel::SelectCodeCommon(), SelectNodeTo(), llvm::HexagonDAGToDAGISel::SelectTypecast(), setUsesTOCBasePtr(), llvm::SITargetLowering::shouldEmitPCReloc(), truncateScalarIntegerArg(), tryFoldToZero(), and llvm::SelectionDAGBuilder::visitBitTestCase().
Return the expression required to zero extend the Op value assuming it was the smaller SrcTy value.
Definition at line 1169 of file SelectionDAG.cpp.
References llvm::ISD::AND, assert(), getConstant(), llvm::APInt::getLowBitsSet(), getNode(), llvm::EVT::getScalarType(), llvm::SDValue::getScalarValueSizeInBits(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), and llvm::EVT::isVector().
Referenced by combineExtSetcc(), ConstantAddressBlock(), earlyExpandDIVFIX(), llvm::DAGTypeLegalizer::getDAG(), getLoadExtOrTrunc(), getPtrExtendInReg(), getShiftAmountTyForConstant(), llvm::HexagonTargetLowering::LowerBITCAST(), llvm::MSP430TargetLowering::LowerShifts(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), PromoteMaskArithmetic(), and widenCtPop().
Convert Op, which must be of integer type, to the integer type VT, by either zero-extending or truncating it.
Definition at line 1154 of file SelectionDAG.cpp.
References llvm::EVT::bitsGT(), getNode(), llvm::SDValue::getValueType(), llvm::ISD::TRUNCATE, and llvm::ISD::ZERO_EXTEND.
Referenced by llvm::AArch64TargetLowering::CCAssignFnForReturn(), combineBitcast(), combineBitcastvxi1(), combineCompareEqual(), combineExtractVectorElt(), combineExtractWithShuffle(), combineHorizontalPredicateResult(), combineShiftAnd1ToBitTest(), combineShiftOfShiftedLogic(), combineShuffleOfScalars(), combineSubToSubus(), createVariablePermute(), earlyExpandDIVFIX(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::WebAssemblySelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen(), Expand64BitShift(), expandDivFix(), FixedPointIntrinsicToOpcode(), foldAddSubBoolOfMaskedVal(), foldCONCAT_VECTORS(), foldExtendedSignBitTest(), generateEquivalentSub(), getExpandedMinMaxOps(), getMad64_32(), getMemCmpLoad(), getPtrExtOrTrunc(), getShiftAmountOperand(), llvm::TargetLowering::getVectorElementPointer(), llvm::TargetLowering::IncrementMemoryAddress(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorReductionOp(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), lowerBuildVectorToBitOp(), LowerBuildVectorv16i8(), lowerFCMPIntrinsic(), LowerFGETSIGN(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), lowerICMPIntrinsic(), LowerINTRINSIC_W_CHAIN(), LowerMULH(), llvm::SystemZTargetLowering::LowerOperationWrapper(), LowerShift(), lowerX86CmpEqZeroToCtlzSrl(), mayTailCallThisCC(), llvm::AMDGPUTargetLowering::performMulCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), llvm::X86TargetLowering::ReplaceNodeResults(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), truncateScalarIntegerArg(), tryFoldToZero(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), and widenCtPop().
|
inline |
Return true if there are any SDDbgValue nodes associated with this SelectionDAG.
Definition at line 1432 of file SelectionDAG.h.
References llvm::SDDbgInfo::empty().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
Return true if A and B have no common bits set.
As an example, this can allow an 'add' to be transformed into an 'or'.
Definition at line 4241 of file SelectionDAG.cpp.
References assert(), computeKnownBits(), llvm::SDValue::getValueType(), and llvm::KnownBits::Zero.
Referenced by detectAVGPattern(), foldAddSubOfSignBit(), and visitORCommutative().
Infer alignment of a load / store address.
InferPtrAlignment - Infer alignment of a load / store address.
Return 0 if it cannot be inferred.
Definition at line 9400 of file SelectionDAG.cpp.
References llvm::computeKnownBits(), llvm::KnownBits::countMinTrailingZeros(), llvm::SDValue::getConstantOperandVal(), llvm::SDValue::getNode(), llvm::MachineFrameInfo::getObjectAlignment(), llvm::SDValue::getOperand(), llvm::GlobalValue::getType(), and llvm::MinAlign().
Referenced by llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::TargetLowering::computeKnownBitsForFrameIndex(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), LowerAsSplatVectorLoad(), numVectorEltsOrZero(), and ShrinkLoadReplaceStoreWithStore().
| void SelectionDAG::init | ( | MachineFunction & | NewMF, |
| OptimizationRemarkEmitter & | NewORE, | ||
| Pass * | PassPtr, | ||
| const TargetLibraryInfo * | LibraryInfo, | ||
| LegacyDivergenceAnalysis * | Divergence, | ||
| ProfileSummaryInfo * | PSIin, | ||
| BlockFrequencyInfo * | BFIin | ||
| ) |
Prepare this SelectionDAG to process code in the given MachineFunction.
Definition at line 1020 of file SelectionDAG.cpp.
References llvm::Function::getContext(), llvm::MachineFunction::getFunction(), llvm::TargetSubtargetInfo::getSelectionDAGInfo(), getSubtarget(), and llvm::TargetSubtargetInfo::getTargetLowering().
Referenced by llvm::SelectionDAGISel::runOnMachineFunction().
Return true if the specified operand is an ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an ISD::OR with a ConstantSDNode that is guaranteed to have the same semantics as an ADD.
This handles the equivalence: X|Cst == X+Cst iff X&Cst = 0.
Definition at line 4064 of file SelectionDAG.cpp.
References llvm::ISD::ADD, llvm::SDValue::getConstantOperandAPInt(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), MaskedValueIsZero(), and llvm::ISD::OR.
Referenced by getBaseWithConstantOffset(), getBufferOffsetForMMO(), isWordAligned(), LowerAsSplatVectorLoad(), replaceZeroVectorStore(), and llvm::AVRDAGToDAGISel::SelectAddr().
Test whether the given value is a constant FP or similar node.
Definition at line 9695 of file SelectionDAG.cpp.
References assert(), llvm::checkForCycles(), llvm::SDNode::getMaxNumOperands(), llvm::SDValue::getNode(), I, llvm::ISD::isBuildVectorOfConstantFPSDNodes(), llvm::FoldingSetBase::Node::Node(), llvm::MVT::Other, llvm::SDNode::SDNodeBits, and llvm::ArrayRef< T >::size().
Test whether the given value is a constant int or similar node.
Definition at line 9681 of file SelectionDAG.cpp.
References llvm::SDValue::getNode(), llvm::ISD::GlobalAddress, and llvm::ISD::isBuildVectorOfConstantSDNodes().
Referenced by combineCCMask(), combinePMULDQ(), combineShiftAnd1ToBitTest(), combineShiftOfShiftedLogic(), extractBooleanFlip(), foldAddSubOfSignBit(), foldFPToIntToFP(), isClampZeroToOne(), MergeInputChains(), salvageDebugInfo(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), stripConstantMask(), stripTruncAndExt(), tryFoldToZero(), visitORCommutative(), and widenCtPop().
N is any kind of constant or build_vector of constants, int or float. If a vector, it may not necessarily be a splat. Definition at line 1711 of file SelectionDAG.h.
References isConstantFPBuildVectorOrConstantFP().
Test whether two SDValues are known to compare equal.
This is true if they are the same value, or if one is negative zero and the other positive zero.
Definition at line 4226 of file SelectionDAG.cpp.
Test whether the given SDValue is known to never be NaN.
If SNaN is true, returns if Op is known to never be a signaling NaN (it may still be a qNaN).
Definition at line 4076 of file SelectionDAG.cpp.
References llvm::ISD::BUILTIN_OP_END, C, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FABS, llvm::ISD::FADD, llvm::ISD::FCANONICALIZE, llvm::ISD::FCEIL, llvm::ISD::FCOPYSIGN, llvm::ISD::FCOS, llvm::ISD::FDIV, llvm::ISD::FEXP, llvm::ISD::FEXP2, llvm::ISD::FFLOOR, llvm::ISD::FLOG, llvm::ISD::FLOG10, llvm::ISD::FLOG2, llvm::ISD::FMA, llvm::ISD::FMAD, llvm::ISD::FMAXIMUM, llvm::ISD::FMAXNUM, llvm::ISD::FMAXNUM_IEEE, llvm::ISD::FMINIMUM, llvm::ISD::FMINNUM, llvm::ISD::FMINNUM_IEEE, llvm::ISD::FMUL, llvm::ISD::FNEARBYINT, llvm::ISD::FNEG, llvm::ISD::FP_EXTEND, llvm::ISD::FP_ROUND, llvm::ISD::FPOW, llvm::ISD::FPOWI, llvm::ISD::FREM, llvm::ISD::FRINT, llvm::ISD::FROUND, llvm::ISD::FSIN, llvm::ISD::FSQRT, llvm::ISD::FSUB, llvm::ISD::FTRUNC, llvm::SDNode::getFlags(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), getTarget(), llvm::SDNodeFlags::hasNoNaNs(), llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::TargetLowering::isKnownNeverNaNForTargetNode(), isKnownNeverSNaN(), MaxRecursionDepth, llvm::ISD::SELECT, llvm::ISD::SINT_TO_FP, and llvm::ISD::UINT_TO_FP.
Referenced by combineFMinNumFMaxNum(), llvm::AMDGPUTargetLowering::isKnownNeverNaNForTargetNode(), llvm::SITargetLowering::isKnownNeverNaNForTargetNode(), and isLegalToCombineMinNumMaxNum().
Op is known to never be a signaling NaN. Definition at line 1594 of file SelectionDAG.h.
References A, B, llvm::Depth, llvm::getSplatValue(), llvm::haveNoCommonBitsSet(), llvm::isKnownNeverNaN(), llvm::isSplatValue(), and llvm::ARM_MB::LD.
Referenced by getSplatConstantFP(), llvm::SITargetLowering::isCanonicalized(), and isKnownNeverNaN().
Test whether the given SDValue is known to contain non-zero value(s).
Definition at line 4204 of file SelectionDAG.cpp.
References assert(), C, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::EVT::isFloatingPoint(), llvm::ConstantSDNode::isNullValue(), llvm::ISD::matchUnaryPredicate(), and llvm::ISD::OR.
Referenced by combineShiftOfShiftedLogic(), LowerShift(), and simplifyDivRem().
Test whether the given floating point SDValue is known to never be positive or negative zero.
Definition at line 4193 of file SelectionDAG.cpp.
References assert(), C, llvm::SDValue::getValueType(), and llvm::EVT::isFloatingPoint().
Test if the given value is known to have exactly one bit set.
This differs from computeKnownBits in that it doesn't necessarily determine which bit is set.
Definition at line 3452 of file SelectionDAG.cpp.
References llvm::all_of(), llvm::ISD::BUILD_VECTOR, C, computeKnownBits(), llvm::KnownBits::countMaxPopulation(), llvm::KnownBits::countMinPopulation(), E, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::EVT::getScalarSizeInBits(), llvm::SDValue::getValueType(), llvm::isConstOrConstSplat(), llvm::SDNode::ops(), llvm::ISD::SHL, and llvm::ISD::SRL.
Referenced by simplifyDivRem(), and tryFoldToZero().
Test whether V has a splatted value for all the demanded elements.
isSplatValue - Return true if the vector V has the same value across all DemandedElts.
On success UndefElts will indicate the elements that have UNDEF values instead of the splat value, this is only guaranteed to be correct for DemandedElts.
NOTE: The function will return true for a demanded splat of UNDEF values.
Definition at line 2280 of file SelectionDAG.cpp.
References llvm::ISD::ADD, llvm::ISD::AND, assert(), llvm::ISD::BUILD_VECTOR, llvm::dyn_cast(), llvm::ISD::EXTRACT_SUBVECTOR, llvm::APInt::extractBits(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), llvm::APInt::getNullValue(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ConstantSDNode::getZExtValue(), llvm::SDValue::isUndef(), llvm::EVT::isVector(), llvm::BitmaskEnumDetail::Mask(), llvm::APInt::shl(), llvm::ISD::SUB, llvm::APInt::ule(), llvm::ISD::VECTOR_SHUFFLE, and llvm::APInt::zextOrSelf().
Referenced by getNormalLoadInput(), getSplatSourceVector(), isSplatValue(), LowerRotate(), and llvm::X86TargetLowering::shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd().
Test whether V has a splatted value.
Helper wrapper to main isSplatValue function.
Definition at line 2363 of file SelectionDAG.cpp.
References assert(), llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), isSplatValue(), and llvm::EVT::isVector().
Return true if the result of this operation is always undefined.
Definition at line 4858 of file SelectionDAG.cpp.
References llvm::any_of(), assert(), llvm::ISD::isBuildVectorOfConstantSDNodes(), llvm::isNullConstant(), llvm::ISD::SDIV, llvm::ArrayRef< T >::size(), llvm::ISD::SREM, llvm::ISD::UDIV, and llvm::ISD::UREM.
Referenced by FoldConstantArithmetic(), FoldConstantVectorArithmetic(), and simplifyDivRem().
| void SelectionDAG::Legalize | ( | ) |
This transforms the SelectionDAG into a SelectionDAG that is compatible with the target instruction selector, as indicated by the TargetLowering object.
This is the entry point for the file.
Note that this is an involved process that may invalidate pointers into the graph.
Definition at line 4717 of file LegalizeDAG.cpp.
References E, llvm::SmallPtrSetImpl< PtrType >::erase(), llvm::SmallPtrSetImpl< PtrType >::insert(), and llvm::SDNode::use_empty().
| bool SelectionDAG::LegalizeOp | ( | SDNode * | N, |
| SmallSetVector< SDNode *, 16 > & | UpdatedNodes | ||
| ) |
Transforms a SelectionDAG node and any operands to it into a node that is compatible with the target instruction selector, as indicated by the TargetLowering object.
N is a valid, legal node after calling this.This essentially runs a single recursive walk of the Legalize process over the given node (and its operands). This can be used to incrementally legalize the DAG. All of the nodes which are directly replaced, potentially including N, are added to the output parameter UpdatedNodes so that the delta to the DAG can be understood by the caller.
When this returns false, N has been legalized in a way that make the pointer passed in no longer valid. It may have even been deleted from the DAG, and so it shouldn't be used further. When this returns true, the N passed in is a legal node, and can be immediately processed as such. This may still have done some work on the DAG, and will still populate UpdatedNodes with any new nodes replacing those originally in the DAG.
Definition at line 4766 of file LegalizeDAG.cpp.
References llvm::SmallPtrSetImpl< PtrType >::count(), and llvm::SmallPtrSetImpl< PtrType >::insert().
| bool SelectionDAG::LegalizeTypes | ( | ) |
This transforms the SelectionDAG into a SelectionDAG that only uses types natively supported by the target.
Returns "true" if it made any changes.
Note that this is an involved process that may invalidate pointers into the graph.
Definition at line 1029 of file LegalizeTypes.cpp.
References llvm::DAGTypeLegalizer::DAGTypeLegalizer().
| bool SelectionDAG::LegalizeVectors | ( | ) |
This transforms the SelectionDAG into a SelectionDAG that only uses vector math operations supported by the target.
This is necessary as a separate step from Legalize because unrolling a vector operation can introduce illegal types, which requires running LegalizeTypes again.
This returns true if it made any changes; in that case, LegalizeTypes is called again before Legalize.
Note that this is an involved process that may invalidate pointers into the graph.
Definition at line 1572 of file LegalizeVectorOps.cpp.
| SDValue SelectionDAG::makeEquivalentMemoryOrdering | ( | LoadSDNode * | Old, |
| SDValue | New | ||
| ) |
If an existing load has uses of its chain, create a token factor node with that chain and the new memory node's chain and update users of the old chain to the token factor.
This ensures that the new memory node will have the same relative memory dependency position as the old load. Returns the new merged load chain.
Definition at line 8762 of file SelectionDAG.cpp.
References assert(), llvm::SDValue::getNode(), getNode(), llvm::SDNode::hasAnyUseOfValue(), llvm::MVT::Other, ReplaceAllUsesOfValueWith(), llvm::ISD::TokenFactor, and UpdateNodeOperands().
Referenced by combineStore(), EltsFromConsecutiveLoads(), lowerShuffleAsBroadcast(), and narrowExtractedVectorLoad().
| bool SelectionDAG::MaskedValueIsAllOnes | ( | SDValue | Op, |
| const APInt & | Mask, | ||
| unsigned | Depth = 0 |
||
| ) | const |
Return true if '(Op & Mask) == Mask'.
MaskedValueIsAllOnes - Return true if '(Op & Mask) == Mask'.
Op and Mask are known to be the same type.
Definition at line 2273 of file SelectionDAG.cpp.
References computeKnownBits(), and llvm::APInt::isSubsetOf().
Return true if 'Op & Mask' is known to be zero.
MaskedValueIsZero - Return true if 'V & Mask' is known to be zero.
We use this predicate to simplify operations downstream. Op and Mask are known to be the same type.
We use this predicate to simplify operations downstream. Mask is known to be zero for bits that V cannot have.
Definition at line 2254 of file SelectionDAG.cpp.
References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().
Referenced by llvm::SelectionDAGISel::CheckAndMask(), combineAnd(), combineMulToPMADDWD(), combineMulToPMULDQ(), combineShiftAnd1ToBitTest(), combineShiftOfShiftedLogic(), combineVectorPack(), combineZext(), EmitCmp(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::TargetLowering::expandMUL_LOHI(), generateEquivalentSub(), getFauxShuffleMask(), getSPDenormModeValue(), getVectorCompareInfo(), isADDADDMUL(), isBaseWithConstantOffset(), isBSwapHWordPair(), isTruncWithZeroHighBitsInput(), LowerAndToBT(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), matchLSNode(), matchShuffleWithPACK(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformORCombineToBFI(), PerformShiftCombine(), performSRLCombine(), ShrinkLoadReplaceStoreWithStore(), SignBitIsZero(), simplifyDivRem(), tryFoldToZero(), visitORCommutative(), and widenCtPop().
| bool SelectionDAG::MaskedValueIsZero | ( | SDValue | V, |
| const APInt & | Mask, | ||
| const APInt & | DemandedElts, | ||
| unsigned | Depth = 0 |
||
| ) | const |
Return true if 'Op & Mask' is known to be zero in DemandedElts.
MaskedValueIsZero - Return true if 'V & Mask' is known to be zero in DemandedElts.
We use this predicate to simplify operations downstream. Op and Mask are known to be the same type.
We use this predicate to simplify operations downstream. Mask is known to be zero for bits that V cannot have.
Definition at line 2266 of file SelectionDAG.cpp.
References computeKnownBits(), and llvm::APInt::isSubsetOf().
| SDValue SelectionDAG::matchBinOpReduction | ( | SDNode * | Extract, |
| ISD::NodeType & | BinOp, | ||
| ArrayRef< ISD::NodeType > | CandidateBinOps, | ||
| bool | AllowPartials = false |
||
| ) |
Match a binop + shuffle pyramid that represents a horizontal reduction over the elements of a vector starting from the EXTRACT_VECTOR_ELT node /p Extract.
The reduction must use one of the opcodes listed in /p CandidateBinOps and on success /p BinOp will contain the matching opcode. Returns the vector that is being reduced on, or SDValue() if a reduction was not matched. If AllowPartials is set then in the case of a reduction pattern that only matches the first few stages, the extracted subvector of the start of the reduction is returned.
Definition at line 9158 of file SelectionDAG.cpp.
References llvm::dyn_cast(), llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FADD, llvm::SDNode::getFlags(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getOpcode(), llvm::SDNode::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::EVT::getScalarType(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::EVT::getVectorVT(), llvm::SDNodeFlags::hasAllowReassociation(), llvm::SDNodeFlags::hasNoSignedZeros(), llvm::EVT::isFloatingPoint(), llvm::isNullConstant(), llvm_unreachable, llvm::Log2_32(), and llvm::none_of().
Referenced by combineBasicSADPattern(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), and combineReductionToHorizontal().
| SDNode * SelectionDAG::MorphNodeTo | ( | SDNode * | N, |
| unsigned | Opc, | ||
| SDVTList | VTs, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
This mutates the specified node to have the specified return type, opcode, and operands.
MorphNodeTo - This mutates the specified node to have the specified return type, opcode, and operands.
Note that MorphNodeTo returns the resultant node. If there is already a node of the specified opcode and operands, it returns that node instead of the current one. Note that the SDLoc need not be the same.
Using MorphNodeTo is faster than creating a new node and swapping it in with ReplaceAllUsesWith both because it often avoids allocating a new node, and because it doesn't require CSE recalculation for any of the node's users.
However, note that MorphNodeTo recursively deletes dead nodes from the DAG. As a consequence it isn't appropriate to use from within the DAG combiner or the legalizer which maintain worklists that would need to be updated when deleting things.
Definition at line 7863 of file SelectionDAG.cpp.
References AddNodeIDNode(), E, llvm::SmallPtrSetImplBase::empty(), llvm::SDUse::getNode(), llvm::MVT::Glue, I, llvm::SmallPtrSetImpl< PtrType >::insert(), N, llvm::SDVTList::NumVTs, llvm::SDNode::op_begin(), llvm::SDNode::op_end(), llvm::SmallVectorTemplateBase< T >::push_back(), RemoveDeadNodes(), llvm::SDNode::use_empty(), and llvm::SDVTList::VTs.
Referenced by CloneNodeWithValues(), SelectNodeTo(), and llvm::HexagonDAGToDAGISel::SelectTypecast().
Mutate the specified strict FP node to its non-strict equivalent, unlinking the node from its chain and dropping the metadata arguments.
The node must be a strict FP node.
Definition at line 7916 of file SelectionDAG.cpp.
|
delete |
| void SelectionDAG::RemoveDeadNode | ( | SDNode * | N | ) |
Remove the specified node from the system.
If any of its operands then becomes dead, remove them as well. Inform UpdateListener for each node deleted.
Definition at line 746 of file SelectionDAG.cpp.
References llvm::NVPTXISD::Dummy, getRoot(), and RemoveDeadNodes().
Referenced by llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), llvm::AVRDAGToDAGISel::select< ISD::STORE >(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToBEXTR(), foldMaskedShiftToScaledMask(), llvm::SelectionDAGISel::IsLegalToFold(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::SelectionDAGISel::ReplaceNode(), llvm::HexagonDAGToDAGISel::SelectBrevLdIntrinsic(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::AVRDAGToDAGISel::selectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), llvm::HexagonDAGToDAGISel::SelectIntrinsicWChain(), llvm::HexagonDAGToDAGISel::SelectNewCircIntrinsic(), SelectNodeTo(), llvm::HvxSelector::selectVAlign(), and llvm::HexagonDAGToDAGISel::tryLoadOfLoadIntrinsic().
| void SelectionDAG::RemoveDeadNodes | ( | ) |
This method deletes all unreachable nodes in the SelectionDAG.
RemoveDeadNodes - This method deletes all unreachable nodes in the SelectionDAG.
Definition at line 692 of file SelectionDAG.cpp.
References llvm::NVPTXISD::Dummy, and getRoot().
Referenced by GetVBR(), isPermutation(), isTargetConstant(), MorphNodeTo(), and RemoveDeadNode().
| void SelectionDAG::RemoveDeadNodes | ( | SmallVectorImpl< SDNode *> & | DeadNodes | ) |
This method deletes the unreachable nodes in the given list, and any nodes that become unreachable as a result.
RemoveDeadNodes - This method deletes the unreachable nodes in the given list, and any nodes that become unreachable as a result.
Definition at line 712 of file SelectionDAG.cpp.
References llvm::ISD::DELETED_NODE, E, llvm::SmallVectorBase::empty(), llvm::SDUse::getNode(), llvm::SDNode::getOpcode(), I, N, llvm::SelectionDAG::DAGUpdateListener::Next, llvm::SDNode::op_begin(), llvm::SDNode::op_end(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::SDNode::use_empty().
| void SelectionDAG::ReplaceAllUsesOfValuesWith | ( | const SDValue * | From, |
| const SDValue * | To, | ||
| unsigned | Num | ||
| ) |
Like ReplaceAllUsesOfValueWith, but for multiple values at once.
ReplaceAllUsesOfValuesWith - Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone.
This correctly handles the case where there is an overlap between the From values and the To values.
The same value may appear in both the From and To list. The Deleted vector is handled the same way as for ReplaceAllUsesWith.
Definition at line 8602 of file SelectionDAG.cpp.
References E, llvm::SDValue::getNode(), llvm::SDValue::getResNo(), llvm::SDUse::getResNo(), llvm::SmallVectorTemplateBase< T >::push_back(), ReplaceAllUsesOfValueWith(), llvm::SmallVectorBase::size(), llvm::sort(), transferDbgValues(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().
Referenced by addStackMapLiveVars(), llvm::SelectionDAGISel::ReplaceUses(), and ShrinkLoadReplaceStoreWithStore().
Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone.
ReplaceAllUsesOfValueWith - Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone.
The Deleted vector is handled the same way as for ReplaceAllUsesWith.
Definition at line 8455 of file SelectionDAG.cpp.
References llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getResNo(), llvm::SDUse::getResNo(), getRoot(), llvm::SDNode::use_iterator::getUse(), llvm::SDNode::isDivergent(), llvm::operator<(), ReplaceAllUsesWith(), setRoot(), transferDbgValues(), updateDivergence(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().
Referenced by AddCombineTo64bitMLAL(), AddCombineTo64BitSMLAL16(), AddCombineTo64bitUMAAL(), adjustSubwordCmp(), combineBitcast(), combineCarryDiamond(), combineCVTP2I_CVTTP2I(), combineExtInVec(), combineExtractSubvector(), combineExtractWithShuffle(), combineInsertSubvector(), combineSetCCAtomicArith(), combineShiftAnd1ToBitTest(), combineShuffle(), combineSIntToFP(), combineTargetShuffle(), combineX86INT_TO_FP(), EmitAVX512Test(), emitIntrinsicWithCCAndChain(), EmitTest(), ExtendUsesToFormExtLoad(), foldExtendedSignBitTest(), generateEquivalentSub(), getCCResult(), getCombineLoadStoreParts(), isSlicingProfitable(), isSubBorrowChain(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), makeEquivalentMemoryOrdering(), MergeInputChains(), numVectorEltsOrZero(), llvm::PPCTargetLowering::PerformDAGCombine(), performDivRemCombine(), performIntToFpCombine(), PerformORCombineToSMULWBT(), PerformSplittingToWideningLoad(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformVDUPCombine(), ReplaceAllUsesOfValuesWith(), llvm::SelectionDAGISel::ReplaceUses(), llvm::SITargetLowering::shouldEmitPCReloc(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), SkipExtensionForVMULL(), stripTruncAndExt(), truncateScalarIntegerArg(), tryToFoldExtOfExtload(), tryToFoldExtOfLoad(), tryToFoldExtOfMaskedLoad(), and widenCtPop().
Modify anything using 'From' to use 'To' instead.
ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
This can cause recursive merging of nodes in the DAG. Use the first version if 'From' is known to have a single result, use the second if you have two nodes with identical results (or if 'To' has a superset of the results of 'From'), use the third otherwise.
These methods all take an optional UpdateListener, which (if not null) is informed about nodes that are deleted and modified due to recursive changes in the dag.
These functions only replace all existing uses. It's possible that as these replacements are being performed, CSE may cause the From node to be given new uses. These new uses of From are left in place, and not automatically transferred to To.
This can cause recursive merging of nodes in the DAG.
This version assumes From has a single result value.
Definition at line 8301 of file SelectionDAG.cpp.
References assert(), From, llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getResNo(), getRoot(), llvm::SDNode::use_iterator::getUse(), llvm::SDNode::isDivergent(), setRoot(), transferDbgValues(), updateDivergence(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().
Referenced by addStackMapLiveVars(), ConstantBuildVector(), EmitVectorComparison(), ExpandBITCAST(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToBEXTR(), foldMaskedShiftToScaledMask(), getInputChainForNode(), isMemOPCandidate(), isTargetConstant(), llvm::SITargetLowering::legalizeTargetIndependentNode(), PerformBFICombine(), performCONDCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), llvm::SelectionDAGISel::ReplaceNode(), llvm::SelectionDAGISel::ReplaceUses(), SelectNodeTo(), llvm::SITargetLowering::shouldEmitPCReloc(), simplifyDivRem(), stripTruncAndExt(), and VerifySDNode().
ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
This can cause recursive merging of nodes in the DAG.
This version assumes that for each value of From, there is a corresponding value in To in the same position with the same type.
Definition at line 8352 of file SelectionDAG.cpp.
References assert(), llvm::numbers::e, getNode(), llvm::SDNode::getNumValues(), getRoot(), llvm::SDNode::use_iterator::getUse(), llvm::SDNode::getValueType(), llvm::SDNode::hasAnyUseOfValue(), llvm::SDNode::isDivergent(), setRoot(), transferDbgValues(), updateDivergence(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().
ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
This can cause recursive merging of nodes in the DAG.
This version can replace From with any result values. To must match the number and types of values returned by From.
Definition at line 8408 of file SelectionDAG.cpp.
References llvm::numbers::e, getNode(), llvm::SDNode::getNumValues(), llvm::SDUse::getResNo(), getRoot(), llvm::SDNode::use_iterator::getUse(), llvm::SDNode::isDivergent(), ReplaceAllUsesWith(), setRoot(), transferDbgValues(), updateDivergence(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().
|
inline |
Move node N in the AllNodes list to be immediately before the given iterator Position.
This may be used to update the topological ordering when the list of nodes is modified.
Definition at line 1399 of file SelectionDAG.h.
References llvm::iplist_impl< simple_ilist< T, Options... >, ilist_traits< T > >::insert(), and llvm::iplist_impl< simple_ilist< T, Options... >, ilist_traits< T > >::remove().
Referenced by insertDAGNode().
| void SelectionDAG::salvageDebugInfo | ( | SDNode & | N | ) |
To be invoked on an SDNode that is slated to be erased.
This function mirrors llvm::salvageDebugInfo.
Definition at line 8222 of file SelectionDAG.cpp.
References llvm::ISD::ADD, AddDbgValue(), llvm::dbgs(), llvm::SDNode::dumprFull(), llvm::SDNode::getConstantOperandVal(), getDbgValue(), GetDbgValues(), llvm::SDNode::getHasDebugValue(), llvm::SDValue::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDValue::getResNo(), isConstantIntBuildVectorOrConstantInt(), LLVM_DEBUG, llvm::DIExpression::prepend(), llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::DIExpression::StackValue.
Referenced by llvm::SelectionDAGISel::SelectCodeCommon().
These are used for target selectors to mutate the specified node to have the specified return type, Target opcode, and operands.
SelectNodeTo - These are wrappers around MorphNodeTo that accept a machine opcode.
Note that target opcodes are stored as ~TargetOpcode in the node opcode field. The resultant node is returned.
Definition at line 7756 of file SelectionDAG.cpp.
References getVTList(), and llvm::None.
Referenced by llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), llvm::SelectionDAGISel::IsLegalToFold(), SelectNodeTo(), tryBitfieldInsertOpFromOr(), and tryBitfieldInsertOpFromOrAndImm().
Definition at line 7762 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT, | ||
| SDValue | Op1, | ||
| SDValue | Op2 | ||
| ) |
Definition at line 7769 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT, | ||
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3 | ||
| ) |
Definition at line 7777 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7785 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
Definition at line 7797 of file SelectionDAG.cpp.
References getVTList(), llvm::None, and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7791 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| EVT | VT3, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7803 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode* llvm::SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | TargetOpc, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| SDValue | Op1 | ||
| ) |
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| EVT | VT1, | ||
| EVT | VT2, | ||
| SDValue | Op1, | ||
| SDValue | Op2 | ||
| ) |
Definition at line 7810 of file SelectionDAG.cpp.
References getVTList(), and SelectNodeTo().
| SDNode * SelectionDAG::SelectNodeTo | ( | SDNode * | N, |
| unsigned | MachineOpc, | ||
| SDVTList | VTs, | ||
| ArrayRef< SDValue > | Ops | ||
| ) |
Definition at line 7818 of file SelectionDAG.cpp.
References llvm::SDNode::getDebugLoc(), llvm::SDLoc::getDebugLoc(), llvm::SDNode::getIROrder(), llvm::SDLoc::getIROrder(), MorphNodeTo(), N, llvm::CodeGenOpt::None, RemoveDeadNode(), ReplaceAllUsesWith(), llvm::SDNode::setDebugLoc(), llvm::SDNode::setIROrder(), and llvm::SDNode::setNodeId().
|
inline |
Definition at line 412 of file SelectionDAG.h.
References clear().
Referenced by processDbgDeclares().
Set graph attributes for a node. (eg. "color=red".)
setGraphAttrs - Set graph attributes for a node.
(eg. "color=red".)
Definition at line 181 of file SelectionDAGPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, llvm::errs(), and N.
Convenience for setting node color attribute.
setGraphColor - Convenience for setting node color attribute.
Definition at line 211 of file SelectionDAGPrinter.cpp.
References llvm::SDNodeIterator::begin(), llvm::dbgs(), llvm::SDNodeIterator::end(), llvm::errs(), llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::insert(), LLVM_DEBUG, N, and llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::size().
| void SelectionDAG::setNodeMemRefs | ( | MachineSDNode * | N, |
| ArrayRef< MachineMemOperand *> | NewMemRefs | ||
| ) |
Mutate the specified machine node's memory references to the provided list.
Definition at line 7732 of file SelectionDAG.cpp.
References llvm::MachineSDNode::clearMemRefs(), llvm::copy(), llvm::ArrayRef< T >::empty(), and llvm::ArrayRef< T >::size().
Referenced by llvm::AVRDAGToDAGISel::select< ISD::LOAD >(), llvm::AVRDAGToDAGISel::select< ISD::STORE >(), CloneNodeWithValues(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForSetTag(), parseTexFail(), pickOpcodeForVT(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), llvm::HexagonDAGToDAGISel::SelectBrevLdIntrinsic(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectIndexedLoad(), llvm::HexagonDAGToDAGISel::SelectIndexedStore(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Set the current root tag of the SelectionDAG.
Definition at line 491 of file SelectionDAG.h.
References assert(), llvm::checkForCycles(), llvm::SDValue::getNode(), llvm::SDValue::getValueType(), N, and llvm::MVT::Other.
Referenced by addStackMapLiveVars(), llvm::SelectionDAGBuilder::clearDanglingDebugInfo(), findMatchingInlineAsmOperand(), findUnwindDestinations(), FixedPointIntrinsicToOpcode(), getMemCmpLoad(), getSPDenormModeValue(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::NVPTXTargetLowering::LowerFormalArguments(), lowerIncomingStatepointValue(), llvm::SelectionDAGBuilder::lowerInvokable(), processDbgDeclares(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), llvm::DAGTypeLegalizer::run(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), and llvm::SelectionDAGBuilder::visitSPDescriptorFailure().
Convenience for setting subgraph color attribute.
setSubgraphColor - Convenience for setting subgraph color attribute.
Definition at line 255 of file SelectionDAGPrinter.cpp.
References llvm::errs().
| bool SelectionDAG::shouldOptForSize | ( | ) | const |
Definition at line 1045 of file SelectionDAG.cpp.
References assert(), llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::MachineBasicBlock::getBasicBlock(), llvm::SDNode::getDebugLoc(), llvm::SDLoc::getDebugLoc(), llvm::MachineFunction::getFunction(), llvm::SDNode::getIROrder(), llvm::SDLoc::getIROrder(), llvm::SDNode::getOpcode(), llvm::Function::hasOptSize(), llvm_unreachable, llvm::FunctionLoweringInfo::MBB, N, llvm::SDNode::setDebugLoc(), and llvm::shouldOptimizeForSize().
Referenced by combineOrShiftToFunnelShift(), ExpandPowI(), getConstantPool(), LowerAndToBT(), lowerBuildVectorAsBroadcast(), LowerFunnelShift(), lowerShuffleAsBlend(), shouldLowerMemFuncForSize(), llvm::SelectionDAGISel::shouldOptForSize(), and shouldUseHorizontalOp().
Return true if the sign bit of Op is known to be zero.
SignBitIsZero - Return true if the sign bit of Op is known to be zero.
We use this predicate to simplify operations downstream.
Definition at line 2246 of file SelectionDAG.cpp.
References llvm::SDValue::getScalarValueSizeInBits(), llvm::APInt::getSignMask(), and MaskedValueIsZero().
Referenced by canReduceVMulWidth(), combineShiftOfShiftedLogic(), combineUIntToFP(), foldExtendedSignBitTest(), foldFPToIntToFP(), and simplifyDivRem().
Try to simplify a floating-point binary operation into 1 of its operands or a constant.
Definition at line 7292 of file SelectionDAG.cpp.
References llvm::ISD::FADD, llvm::ISD::FDIV, llvm::ISD::FMUL, llvm::ISD::FSUB, llvm::ConstantFPSDNode::getValueAPF(), llvm::isConstOrConstSplatFP(), llvm::APFloat::isExactlyValue(), llvm::APFloat::isNegZero(), and llvm::APFloat::isPosZero().
Referenced by getNode().
Try to simplify a select/vselect into 1 of its operands or a constant.
Definition at line 7237 of file SelectionDAG.cpp.
Referenced by getNode().
Try to simplify a shift into 1 of its operands or a constant.
Definition at line 7267 of file SelectionDAG.cpp.
References getConstant(), llvm::SDValue::getNode(), llvm::SDValue::getScalarValueSizeInBits(), getUNDEF(), llvm::SDValue::getValueType(), llvm::isNullOrNullSplat(), llvm::SDValue::isUndef(), llvm::ISD::matchUnaryPredicate(), and X.
Referenced by combineShiftOfShiftedLogic(), and getNode().
| std::pair< SDValue, SDValue > SelectionDAG::SplitVector | ( | const SDValue & | N, |
| const SDLoc & | DL, | ||
| const EVT & | LoVT, | ||
| const EVT & | HiVT | ||
| ) |
Split the vector with EXTRACT_SUBVECTOR using the provides VTs and return the low/high part.
SplitVector - Split the vector with EXTRACT_SUBVECTOR and return the low/high part.
Definition at line 9453 of file SelectionDAG.cpp.
References assert(), llvm::ISD::EXTRACT_SUBVECTOR, llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::MipsISD::Hi, and llvm::MipsISD::Lo.
Referenced by combineHorizontalPredicateResult(), getPMOVMSKB(), LowerBITCAST(), LowerTruncateVecI1(), and llvm::X86TargetLowering::ReplaceNodeResults().
|
inline |
Split the vector with EXTRACT_SUBVECTOR and return the low/high part.
Definition at line 1679 of file SelectionDAG.h.
References llvm::SDValue::getValueType().
|
inline |
Split the node's operand with EXTRACT_SUBVECTOR and return the low/high part.
Definition at line 1687 of file SelectionDAG.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::SDNode::getOperand(), and WidenVector().
Referenced by ReplaceReductionResults(), llvm::SITargetLowering::splitBinaryVectorOp(), llvm::SITargetLowering::splitTernaryVectorOp(), and llvm::SITargetLowering::splitUnaryVectorOp().
| void SelectionDAG::transferDbgValues | ( | SDValue | From, |
| SDValue | To, | ||
| unsigned | OffsetInBits = 0, |
||
| unsigned | SizeInBits = 0, |
||
| bool | InvalidateDbg = true |
||
| ) |
Transfer debug values from one node to another, while optionally generating fragment expressions for split-up values.
If InvalidateDbg is set, debug values are invalidated after they are transferred.
Definition at line 8162 of file SelectionDAG.cpp.
References AddDbgValue(), assert(), llvm::DIExpression::createFragmentExpression(), getDbgValue(), GetDbgValues(), llvm::SDNode::getHasDebugValue(), llvm::SDNode::getIROrder(), llvm::SDValue::getNode(), llvm::SDValue::getResNo(), llvm::max(), llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::SDDbgValue::SDNODE.
Referenced by getNode(), ReplaceAllUsesOfValuesWith(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), and widenCtPop().
Utility function used by legalize and lowering to "unroll" a vector operation by splitting out the scalars and operating on each element individually.
If the ResNE is 0, fully unroll the vector op. If ResNE is less than the width of the vector op, unroll up to ResNE. If the ResNE is greater than the width of the vector op, unroll the vector op and fill the end of the resulting vector with UNDEFS.
Definition at line 9253 of file SelectionDAG.cpp.
References assert(), llvm::numbers::e, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::SDNode::getFlags(), llvm::SDNode::getNumOperands(), llvm::SDNode::getNumValues(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDValue::getValueType(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorVT(), llvm::EVT::isVector(), llvm::AArch64CC::NE, Operands, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SELECT, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SRA, llvm::ISD::SRL, and llvm::ISD::VSELECT.
Referenced by CollectOpsToWiden(), combineCCMask(), getBufferOffsetForMMO(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), and unrollVectorShift().
| std::pair< SDValue, SDValue > SelectionDAG::UnrollVectorOverflowOp | ( | SDNode * | N, |
| unsigned | ResNE = 0 |
||
| ) |
Like UnrollVectorOp(), but for the [US](ADD|SUB|MUL)O family of opcodes.
This is a separate function because those opcodes have two results.
Definition at line 9322 of file SelectionDAG.cpp.
References llvm::SmallVectorImpl< T >::append(), assert(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDValue::getValue(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::EVT::getVectorVT(), llvm::SDNode::getVTList(), llvm::AArch64CC::NE, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::ISD::SADDO, llvm::ISD::SMULO, llvm::ISD::SSUBO, llvm::ISD::UADDO, llvm::ISD::UMULO, and llvm::ISD::USUBO.
| void SelectionDAG::updateDivergence | ( | SDNode * | N | ) |
Definition at line 8534 of file SelectionDAG.cpp.
References allnodes(), llvm::SDValue::getNode(), llvm::SDNode::getNumOperands(), llvm::SDValue::getValueType(), I, llvm::SDNode::isDivergent(), N, llvm::SDNode::ops(), llvm::MVT::Other, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::reserve(), llvm::SDNode::SDNodeBits, and llvm::SDNode::uses().
Referenced by ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), and UpdateNodeOperands().
Mutate the specified node in-place to have the specified operands.
UpdateNodeOperands - Mutate the specified node in-place to have the specified operands.
If the resultant node already exists in the DAG, this does not modify the specified node, instead it returns the node that already exists. If the resultant node does not exist in the DAG, the input node is returned. As a degenerate case, if you specify the same input operands as the node already has, the input node is returned.
Definition at line 7616 of file SelectionDAG.cpp.
References assert(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOperand(), N, and updateDivergence().
Referenced by earlyExpandDIVFIX(), GetFPLibCall(), getSPDenormModeValue(), isTargetConstant(), llvm::SITargetLowering::legalizeTargetIndependentNode(), makeEquivalentMemoryOrdering(), moveBelowOrigChain(), llvm::PPCTargetLowering::PerformDAGCombine(), simplifyDivRem(), truncateScalarIntegerArg(), and UpdateNodeOperands().
Definition at line 7641 of file SelectionDAG.cpp.
References assert(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOperand(), N, updateDivergence(), and UpdateNodeOperands().
Definition at line 7671 of file SelectionDAG.cpp.
References UpdateNodeOperands().
| SDNode * SelectionDAG::UpdateNodeOperands | ( | SDNode * | N, |
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3, | ||
| SDValue | Op4 | ||
| ) |
Definition at line 7677 of file SelectionDAG.cpp.
References UpdateNodeOperands().
| SDNode * SelectionDAG::UpdateNodeOperands | ( | SDNode * | N, |
| SDValue | Op1, | ||
| SDValue | Op2, | ||
| SDValue | Op3, | ||
| SDValue | Op4, | ||
| SDValue | Op5 | ||
| ) |
Definition at line 7684 of file SelectionDAG.cpp.
References UpdateNodeOperands().
Definition at line 7691 of file SelectionDAG.cpp.
References assert(), llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::end(), llvm::lltok::equal, llvm::SDNode::getNumOperands(), N, llvm::SDNode::op_begin(), llvm::ArrayRef< T >::size(), and updateDivergence().
| void SelectionDAG::VerifyDAGDiverence | ( | ) |
Definition at line 8571 of file SelectionDAG.cpp.
References allnodes(), assert(), llvm::SDValue::getNode(), getTargetLoweringInfo(), llvm::SDValue::getValueType(), llvm::SDNode::isDivergent(), llvm::TargetLowering::isSDNodeAlwaysUniform(), llvm::TargetLowering::isSDNodeSourceOfDivergence(), N, llvm::SDNode::ops(), and llvm::MVT::Other.
| void SelectionDAG::viewGraph | ( | const std::string & | Title | ) |
Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
viewGraph - Pop up a ghostview window with the reachable parts of the DAG rendered using 'dot'.
Definition at line 150 of file SelectionDAGPrinter.cpp.
References llvm::errs(), getName(), and ViewGraph().
| void SelectionDAG::viewGraph | ( | ) |
Definition at line 163 of file SelectionDAGPrinter.cpp.
Widen the vector up to the next power of two using INSERT_SUBVECTOR.
Definition at line 9468 of file SelectionDAG.cpp.
References llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::EVT::getVectorVT(), llvm::ISD::INSERT_SUBVECTOR, and llvm::NextPowerOf2().
|
friend |
DAGUpdateListener is a friend so it can manipulate the listener stack.
Definition at line 342 of file SelectionDAG.h.
Referenced by getDbgLabel(), and IsPredicateKnownToFail().
|
static |
Definition at line 399 of file SelectionDAG.h.
Referenced by computeKnownBits(), ComputeNumSignBits(), llvm::TargetLowering::getNegatedExpression(), getUsefulBits(), isFNEG(), isKnownNeverNaN(), llvm::X86TargetLowering::isNegatibleForFree(), llvm::TargetLowering::isNegatibleForFree(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifyDemandedVectorElts(), and llvm::TargetLowering::SimplifyMultipleUseDemandedBits().
When true, additional steps are taken to ensure that getConstant() and similar functions return DAG nodes that have legal types.
This is important after type legalization since any illegally typed nodes generated after this point will not experience type legalization.
Definition at line 338 of file SelectionDAG.h.
Referenced by FoldConstantArithmetic(), FoldConstantVectorArithmetic(), and getConstant().
Definition at line 440 of file SelectionDAG.h.
1.8.13