LLVM  7.0.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
llvm::SelectionDAG Class Reference

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"

Collaboration diagram for llvm::SelectionDAG:
[legend]

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, DivergenceAnalysis *Divergence)
 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
 
LLVMContext * getContext () const
 
OptimizationRemarkEmitter & getORE () 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, AliasAnalysis *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 char TargetFlags=0)
 
SDValue getTargetGlobalAddress (const GlobalValue *GV, const SDLoc &DL, EVT VT, int64_t offset=0, unsigned char 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 char TargetFlags=0)
 
SDValue getTargetJumpTable (int JTI, EVT VT, unsigned char TargetFlags=0)
 
SDValue getConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned char TargetFlags=0)
 
SDValue getTargetConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offset=0, unsigned char TargetFlags=0)
 
SDValue getConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned char TargetFlags=0)
 
SDValue getTargetConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offset=0, unsigned char TargetFlags=0)
 
SDValue getTargetIndex (int Index, EVT VT, int64_t Offset=0, unsigned char 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 char 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 char TargetFlags=0)
 
SDValue getTargetBlockAddress (const BlockAddress *BA, EVT VT, int64_t Offset=0, unsigned char 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 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...
 
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 getAnyExtendVectorInReg (SDValue Op, const SDLoc &DL, EVT VT)
 Return an operation which will any-extend the low lanes of the operand into the specified vector type. More...
 
SDValue getSignExtendVectorInReg (SDValue Op, const SDLoc &DL, EVT VT)
 Return an operation which will sign extend the low lanes of the operand into the specified vector type. More...
 
SDValue getZeroExtendVectorInReg (SDValue Op, const SDLoc &DL, EVT VT)
 Return an operation which will zero extend the low lanes of the operand into the specified vector type. 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 getObjectPtrOffset (const SDLoc &SL, SDValue Op, 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 Op, 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)
 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 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, MachinePointerInfo PtrInfo, unsigned Alignment, AtomicOrdering SuccessOrdering, AtomicOrdering FailureOrdering, SyncScope::ID SSID)
 Gets a node for an atomic cmpxchg op. More...
 
SDValue getAtomicCmpSwap (unsigned Opcode, const SDLoc &dl, EVT MemVT, SDVTList VTs, SDValue Chain, SDValue Ptr, SDValue Cmp, SDValue Swp, MachineMemOperand *MMO)
 
SDValue getAtomic (unsigned Opcode, const SDLoc &dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, const Value *PtrVal, unsigned Alignment, AtomicOrdering Ordering, SyncScope::ID SSID)
 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, SDValue Chain, SDValue Ptr, SDValue Val, MachineMemOperand *MMO)
 
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, unsigned Size=0)
 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 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 getMemBasePlusOffset (SDValue Base, unsigned Offset, const SDLoc &DL)
 Returns sum of the base pointer and offset. More...
 
SDValue getMaskedLoad (EVT VT, const SDLoc &dl, SDValue Chain, SDValue Ptr, SDValue Mask, SDValue Src0, EVT MemVT, MachineMemOperand *MMO, ISD::LoadExtType, bool IsExpanding=false)
 
SDValue getMaskedStore (SDValue Chain, const SDLoc &dl, SDValue Val, SDValue Ptr, SDValue Mask, EVT MemVT, MachineMemOperand *MMO, bool IsTruncating=false, bool IsCompressing=false)
 
SDValue getMaskedGather (SDVTList VTs, EVT VT, const SDLoc &dl, ArrayRef< SDValue > Ops, MachineMemOperand *MMO)
 
SDValue getMaskedScatter (SDVTList VTs, EVT VT, const SDLoc &dl, ArrayRef< SDValue > Ops, MachineMemOperand *MMO)
 
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...
 
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)
 
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)
 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 ()
 
SDDbgInfo::DbgIterator DbgEnd ()
 
SDDbgInfo::DbgIterator ByvalParmDbgBegin ()
 
SDDbgInfo::DbgIterator ByvalParmDbgEnd ()
 
SDDbgInfo::DbgLabelIterator DbgLabelBegin ()
 
SDDbgInfo::DbgLabelIterator DbgLabelEnd ()
 
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 *Cst1, SDNode *Cst2)
 
SDValue FoldConstantArithmetic (unsigned Opcode, const SDLoc &DL, EVT VT, const ConstantSDNode *Cst1, const ConstantSDNode *Cst2)
 
SDValue FoldConstantVectorArithmetic (unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDValue > Ops, const SDNodeFlags Flags=SDNodeFlags())
 
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 &Mask)
 See if the specified operand can be simplified with the knowledge that only the bits specified by Mask are used. 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...
 
void computeKnownBits (SDValue Op, KnownBits &Known, unsigned Depth=0) const
 Determine which bits of Op are known to be either zero or one and return them in Known. More...
 
void computeKnownBits (SDValue Op, KnownBits &Known, 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) const
 Test whether the given SDValue is known to never be NaN. More...
 
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...
 
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...
 
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...
 
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)
 
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 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
 

Friends

struct DAGUpdateListener
 DAGUpdateListener is a friend so it can manipulate the listener stack. More...
 

Detailed Description

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 222 of file SelectionDAG.h.

Member Typedef Documentation

◆ allnodes_const_iterator

Definition at line 432 of file SelectionDAG.h.

◆ allnodes_iterator

Definition at line 437 of file SelectionDAG.h.

Member Enumeration Documentation

◆ OverflowKind

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 1446 of file SelectionDAG.h.

Constructor & Destructor Documentation

◆ SelectionDAG() [1/2]

SelectionDAG::SelectionDAG ( const TargetMachine &  TM,
CodeGenOpt::Level  OL 
)
explicit

Definition at line 976 of file SelectionDAG.cpp.

References Other.

◆ SelectionDAG() [2/2]

llvm::SelectionDAG::SelectionDAG ( const SelectionDAG &  )
delete

◆ ~SelectionDAG()

SelectionDAG::~SelectionDAG ( )

Member Function Documentation

◆ AddDbgLabel()

void SelectionDAG::AddDbgLabel ( SDDbgLabel *  DB)

Add a dbg_label SDNode.

Definition at line 8033 of file SelectionDAG.cpp.

Referenced by getUnderlyingArgReg().

◆ AddDbgValue()

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 8025 of file SelectionDAG.cpp.

References assert(), llvm::SDNode::getHasDebugValue(), and llvm::SDNode::setHasDebugValue().

Referenced by getUnderlyingArgReg(), llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), salvageDebugInfo(), and transferDbgValues().

◆ allnodes() [1/2]

iterator_range<allnodes_iterator> llvm::SelectionDAG::allnodes ( )
inline

◆ allnodes() [2/2]

iterator_range<allnodes_const_iterator> llvm::SelectionDAG::allnodes ( ) const
inline

Definition at line 449 of file SelectionDAG.h.

References llvm::make_range().

◆ allnodes_begin() [1/2]

allnodes_const_iterator llvm::SelectionDAG::allnodes_begin ( ) const
inline

◆ allnodes_begin() [2/2]

allnodes_iterator llvm::SelectionDAG::allnodes_begin ( )
inline

Definition at line 439 of file SelectionDAG.h.

◆ allnodes_end() [1/2]

allnodes_const_iterator llvm::SelectionDAG::allnodes_end ( ) const
inline

◆ allnodes_end() [2/2]

allnodes_iterator llvm::SelectionDAG::allnodes_end ( )
inline

Definition at line 440 of file SelectionDAG.h.

◆ allnodes_size()

ilist<SDNode>::size_type llvm::SelectionDAG::allnodes_size ( ) const
inline

◆ areNonVolatileConsecutiveLoads()

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 8391 of file SelectionDAG.cpp.

References llvm::MemSDNode::getChain(), llvm::EVT::getSizeInBits(), llvm::SDNode::getValueType(), llvm::LSBaseSDNode::isIndexed(), llvm::MemSDNode::isVolatile(), and llvm::BaseIndexOffset::match().

Referenced by EltsFromConsecutiveLoads(), and getBuildPairElt().

◆ AssignTopologicalOrder()

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 7936 of file SelectionDAG.cpp.

References allnodes(), allnodes_begin(), allnodes_end(), allnodes_size(), assert(), llvm::checkForCycles(), llvm::dbgs(), llvm::SDNode::dumprFull(), E, llvm::ISD::EntryToken, llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::SDNode::getNodeId(), llvm::SDNode::getNumOperands(), I, llvm_unreachable, P, llvm::SDNode::setNodeId(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

Referenced by llvm::SelectionDAGISel::getUninvalidatedNodeId().

◆ ByvalParmDbgBegin()

SDDbgInfo::DbgIterator llvm::SelectionDAG::ByvalParmDbgBegin ( )
inline

◆ ByvalParmDbgEnd()

SDDbgInfo::DbgIterator llvm::SelectionDAG::ByvalParmDbgEnd ( )
inline

◆ clear()

void SelectionDAG::clear ( )

Clear state and free memory necessary to make this SelectionDAG ready to process a new block.

Definition at line 1055 of file SelectionDAG.cpp.

References llvm::SDDbgInfo::clear(), getEntryNode(), and llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset().

◆ clearGraphAttrs()

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 170 of file SelectionDAGPrinter.cpp.

References llvm::errs().

◆ Combine()

void SelectionDAG::Combine ( CombineLevel  Level,
AliasAnalysis *  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 18680 of file DAGCombiner.cpp.

◆ computeKnownBits() [1/2]

void SelectionDAG::computeKnownBits ( SDValue  Op,
KnownBits &  Known,
unsigned  Depth = 0 
) const

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 2198 of file SelectionDAG.cpp.

References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().

Referenced by adjustForRedundantAnd(), calculateByteProvider(), llvm::SelectionDAGISel::CheckOrMask(), 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(), foldMaskAndShiftToScale(), generateEquivalentSub(), getAbsolute(), haveNoCommonBitsSet(), isBitfieldPositioningOp(), isKnownToBeAPowerOfTwo(), isTruncateOf(), isWordAligned(), LowerAndToBT(), LowerMUL(), LowerTruncateVecI1(), 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(), tryBitfieldInsertOpFromOr(), and tryBitfieldInsertOpFromOrAndImm().

◆ computeKnownBits() [2/2]

void SelectionDAG::computeKnownBits ( SDValue  Op,
KnownBits &  Known,
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 2210 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(), computeKnownBits(), llvm::TargetLowering::computeKnownBitsForFrameIndex(), llvm::TargetLowering::computeKnownBitsForTargetNode(), llvm::computeKnownBitsFromRangeMetadata(), llvm::ISD::CONCAT_VECTORS, llvm::countLeadingZeros(), 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::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::APInt::extractBits(), llvm::ISD::FGETSIGN, llvm::ISD::FrameIndex, llvm::APInt::getAllOnesValue(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitsSet(), 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::MemSDNode::getRanges(), llvm::SDValue::getResNo(), llvm::EVT::getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), llvm::APInt::getSignMask(), llvm::EVT::getSizeInBits(), getValidShiftAmountConstant(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ConstantSDNode::getZExtValue(), llvm::APInt::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(), isConstOrDemandedConstSplat(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::DataLayout::isLittleEndian(), llvm::APInt::isNegative(), llvm::KnownBits::isNonNegative(), llvm::APInt::isNonNegative(), llvm::APInt::isPowerOf2(), llvm::KnownBits::isUnknown(), llvm::EVT::isVector(), llvm::ISD::isZEXTLoad(), llvm::ARM_MB::LD, LLVM_FALLTHROUGH, llvm::ISD::LOAD, llvm::Log2_32(), llvm::APInt::lshr(), llvm::APInt::lshrInPlace(), llvm::max(), 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::SELECT, llvm::ISD::SELECT_CC, llvm::APInt::setAllBits(), llvm::APInt::setBit(), llvm::APInt::setBits(), 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::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::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().

◆ ComputeNumSignBits() [1/2]

unsigned SelectionDAG::ComputeNumSignBits ( SDValue  Op,
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. Targets can implement the ComputeNumSignBitsForTarget method in the TargetLowering class to allow target nodes to be understood.

Definition at line 3139 of file SelectionDAG.cpp.

References llvm::APInt::getAllOnesValue(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().

Referenced by calculateByteProvider(), canReduceVMulWidth(), combineAndMaskToShift(), combineBitcastvxi1(), combineHorizontalPredicateResult(), combineLogicBlendIntoPBLENDV(), combineMulToPMULDQ(), combineSIntToFP(), combineVectorSignBitsTruncation(), combineVSelectWithAllOnesOrZeros(), ComputeNumSignBits(), computeNumSignBitsBinOp(), llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::SystemZTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::X86TargetLowering::ComputeNumSignBitsForTargetNode(), llvm::TargetLowering::expandMUL_LOHI(), foldExtendedSignBitTest(), generateEquivalentSub(), getAbsolute(), getAsCarry(), getFauxShuffleMask(), isADDADDMUL(), isS16(), isTruncateOf(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), LowerTruncateVecI1(), matchVectorShuffleWithPACK(), llvm::AMDGPUTargetLowering::numBitsSigned(), and llvm::AMDGPUTargetLowering::PerformDAGCombine().

◆ ComputeNumSignBits() [2/2]

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 3147 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::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::APInt::getAllOnesValue(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), llvm::TargetLoweringBase::getBooleanContents(), llvm::SDValue::getConstantOperandVal(), llvm::ShuffleVectorSDNode::getMask(), llvm::ShuffleVectorSDNode::getMaskElt(), llvm::SDValue::getNumOperands(), llvm::APInt::getNumSignBits(), llvm::APInt::getOneBitSet(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getResNo(), llvm::EVT::getScalarSizeInBits(), llvm::SDValue::getScalarValueSizeInBits(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::ConstantSDNode::getZExtValue(), llvm::APInt::getZExtValue(), llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::isConstOrConstSplat(), isConstOrDemandedConstSplat(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::KnownBits::isNegative(), llvm::KnownBits::isNonNegative(), llvm::EVT::isVector(), llvm::ARM_MB::LD, llvm::APInt::lshr(), llvm::BitmaskEnumDetail::Mask(), llvm::max(), 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::APInt::sle(), llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SMULO, llvm::ISD::SRA, llvm::ISD::SSUBO, llvm::ISD::SUB, std::swap(), llvm::APInt::trunc(), llvm::ISD::TRUNCATE, llvm::ISD::UADDO, llvm::APInt::uge(), 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::APInt::zext(), llvm::ISD::ZEXTLOAD, and llvm::APInt::zextOrSelf().

◆ computeOverflowKind()

SelectionDAG::OverflowKind SelectionDAG::computeOverflowKind ( SDValue  N0,
SDValue  N1 
) const

◆ CreateStackTemporary() [1/2]

SDValue SelectionDAG::CreateStackTemporary ( EVT  VT,
unsigned  minAlign = 1 
)

◆ CreateStackTemporary() [2/2]

SDValue SelectionDAG::CreateStackTemporary ( EVT  VT1,
EVT  VT2 
)

◆ DbgBegin()

SDDbgInfo::DbgIterator llvm::SelectionDAG::DbgBegin ( )
inline

Definition at line 1358 of file SelectionDAG.h.

References llvm::SDDbgInfo::DbgBegin().

Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().

◆ DbgEnd()

SDDbgInfo::DbgIterator llvm::SelectionDAG::DbgEnd ( )
inline

Definition at line 1359 of file SelectionDAG.h.

References llvm::SDDbgInfo::DbgEnd().

Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().

◆ DbgLabelBegin()

SDDbgInfo::DbgLabelIterator llvm::SelectionDAG::DbgLabelBegin ( )
inline

Definition at line 1369 of file SelectionDAG.h.

References llvm::SDDbgInfo::DbgLabelBegin().

Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().

◆ DbgLabelEnd()

SDDbgInfo::DbgLabelIterator llvm::SelectionDAG::DbgLabelEnd ( )
inline

◆ DeleteNode()

void SelectionDAG::DeleteNode ( SDNode *  N)

◆ dump()

LLVM_DUMP_METHOD void SelectionDAG::dump ( ) const

◆ EVTToAPFloatSemantics()

static const fltSemantics& llvm::SelectionDAG::EVTToAPFloatSemantics ( EVT  VT)
inlinestatic

◆ expandVAArg()

SDValue SelectionDAG::expandVAArg ( SDNode *  Node)

◆ expandVACopy()

SDValue SelectionDAG::expandVACopy ( SDNode *  Node)

◆ ExtractVectorElements()

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 8483 of file SelectionDAG.cpp.

Referenced by adjustLoadValueTypeImpl(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), and parseCachePolicy().

◆ FoldConstantArithmetic() [1/2]

SDValue SelectionDAG::FoldConstantArithmetic ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDNode *  Cst1,
SDNode *  Cst2 
)

◆ FoldConstantArithmetic() [2/2]

SDValue SelectionDAG::FoldConstantArithmetic ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
const ConstantSDNode *  Cst1,
const ConstantSDNode *  Cst2 
)

◆ FoldConstantVectorArithmetic()

SDValue SelectionDAG::FoldConstantVectorArithmetic ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
ArrayRef< SDValue >  Ops,
const SDNodeFlags  Flags = SDNodeFlags() 
)

◆ FoldSetCC()

SDValue SelectionDAG::FoldSetCC ( EVT  VT,
SDValue  N1,
SDValue  N2,
ISD::CondCode  Cond,
const SDLoc &  dl 
)

◆ FoldSymbolOffset()

SDValue SelectionDAG::FoldSymbolOffset ( unsigned  Opcode,
EVT  VT,
const GlobalAddressSDNode *  GA,
const SDNode *  N2 
)

◆ getAddrSpaceCast()

SDValue SelectionDAG::getAddrSpaceCast ( const SDLoc &  dl,
EVT  VT,
SDValue  Ptr,
unsigned  SrcAS,
unsigned  DestAS 
)

◆ getAllOnesConstant()

SDValue llvm::SelectionDAG::getAllOnesConstant ( const SDLoc &  DL,
EVT  VT,
bool  IsTarget = false,
bool  IsOpaque = false 
)
inline

◆ getAnyExtendVectorInReg()

SDValue SelectionDAG::getAnyExtendVectorInReg ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

Return an operation which will any-extend the low lanes of the operand into the specified vector type.

For example, this can convert a v16i8 into a v4i32 by any-extending the low four lanes of the operand from i8 to i32.

Definition at line 1121 of file SelectionDAG.cpp.

References llvm::ISD::ANY_EXTEND_VECTOR_INREG, assert(), getNode(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), and llvm::EVT::isVector().

Referenced by combineShuffleToVectorExtend(), and isSETCCorConvertedSETCC().

◆ getAnyExtOrTrunc()

SDValue SelectionDAG::getAnyExtOrTrunc ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

◆ getAtomic() [1/4]

SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
const SDLoc &  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Val,
const Value *  PtrVal,
unsigned  Alignment,
AtomicOrdering  Ordering,
SyncScope::ID  SSID 
)

◆ getAtomic() [2/4]

SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
const SDLoc &  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Val,
MachineMemOperand *  MMO 
)

◆ getAtomic() [3/4]

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 6107 of file SelectionDAG.cpp.

References assert(), llvm::ISD::ATOMIC_LOAD, getAtomic(), getVTList(), and llvm::MVT::Other.

◆ getAtomic() [4/4]

SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
const SDLoc &  dl,
EVT  MemVT,
SDVTList  VTList,
ArrayRef< SDValue >  Ops,
MachineMemOperand *  MMO 
)

◆ getAtomicCmpSwap() [1/2]

SDValue SelectionDAG::getAtomicCmpSwap ( unsigned  Opcode,
const SDLoc &  dl,
EVT  MemVT,
SDVTList  VTs,
SDValue  Chain,
SDValue  Ptr,
SDValue  Cmp,
SDValue  Swp,
MachinePointerInfo  PtrInfo,
unsigned  Alignment,
AtomicOrdering  SuccessOrdering,
AtomicOrdering  FailureOrdering,
SyncScope::ID  SSID 
)

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 6014 of file SelectionDAG.cpp.

References assert(), llvm::ISD::ATOMIC_CMP_SWAP, llvm::ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS, getEVTAlignment(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, and llvm::MachineMemOperand::MOVolatile.

Referenced by getExpandedMinMaxOps(), and getUniformBase().

◆ getAtomicCmpSwap() [2/2]

SDValue SelectionDAG::getAtomicCmpSwap ( unsigned  Opcode,
const SDLoc &  dl,
EVT  MemVT,
SDVTList  VTs,
SDValue  Chain,
SDValue  Ptr,
SDValue  Cmp,
SDValue  Swp,
MachineMemOperand *  MMO 
)

◆ getAtomicMemcpy()

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 
)

◆ getAtomicMemmove()

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 
)

◆ getAtomicMemset()

SDValue SelectionDAG::getAtomicMemset ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Dst,
unsigned  DstAlign,
SDValue  Value,
SDValue  Size,
Type *  SizeTy,
unsigned  ElemSz,
bool  isTailCall,
MachinePointerInfo  DstPtrInfo 
)

◆ getBasicBlock() [1/2]

SDValue SelectionDAG::getBasicBlock ( MachineBasicBlock *  MBB)

◆ getBasicBlock() [2/2]

SDValue llvm::SelectionDAG::getBasicBlock ( MachineBasicBlock *  MBB,
SDLoc  dl 
)

◆ getBitcast()

SDValue SelectionDAG::getBitcast ( EVT  VT,
SDValue  V 
)

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 1850 of file SelectionDAG.cpp.

References llvm::ISD::BITCAST, getNode(), and llvm::SDValue::getValueType().

Referenced by BuildSplatI(), combineAnd(), combineAndMaskToShift(), combineBasicSADPattern(), combineBitcast(), combineBitcastvxi1(), combineCastedMaskArithmetic(), combineCompareEqual(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractVectorElt(), combineExtractWithShuffle(), combineFMA(), combineFneg(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineInsertSubvector(), combineLogicBlendIntoPBLENDV(), combineMaskedLoad(), combineMaskedStore(), combineMulToPMADDWD(), combineOr(), combineRedundantDWordShuffle(), combineSelect(), combineShuffle(), combineShuffleToVectorExtend(), combineStore(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineTruncationShuffle(), combineVectorCompareAndMaskUnaryOp(), combineVectorSizedSetCCEquality(), combineVSelectWithAllOnesOrZeros(), combineVSZext(), combineX86ShuffleChain(), combineX86ShufflesConstants(), combineXor(), convertIntLogicToFPLogic(), convertShiftLeftToScale(), createMMXBuildVector(), createVariablePermute(), EltsFromConsecutiveLoads(), ExtractBitFromMaskVector(), foldBitcastedFPLogic(), FoldIntToFPToInt(), getBuildDwordsVector(), getConstVector(), getCopyFromPartsVector(), getCopyToPartsVector(), getMaskNode(), getMemCmpLoad(), getMemsetValue(), getMOVL(), getOnesVector(), GetPromotionOpcode(), getScalarValueForVectorElement(), getTargetVShiftByConstNode(), getTargetVShiftNode(), getv64i1Argument(), getVShift(), getZeroVector(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), isSortedByValueNo(), isTruncateOf(), isTruncWithZeroHighBitsInput(), lower256BitVectorShuffle(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), lowerBuildVectorAsBroadcast(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), llvm::HexagonTargetLowering::LowerCall(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_VECTOR_ELT_SSE4(), LowerHorizontalByteSum(), LowerI64IntToFP_AVX512DQ(), LowerLoad(), lowerMasksToReg(), LowerMUL(), LowerMUL_LOHI(), LowerMULH(), lowerRegToMasks(), LowerRotate(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerShift(), LowerStore(), LowerTruncateVecI1(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i32(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), lowerV16I32VectorShuffle(), lowerV16I8VectorShuffle(), lowerV2I64VectorShuffle(), lowerV4I32VectorShuffle(), lowerV4I64VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I32VectorShuffle(), lowerV8I64VectorShuffle(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), LowerVectorAllZeroTest(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOPBitmath(), LowerVectorCTPOPInRegLUT(), lowerVectorShuffle(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBlend(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsBroadcast(), lowerVectorShuffleAsByteRotate(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsLanePermuteAndBlend(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsShift(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleAsZeroOrAnyExtend(), lowerVectorShuffleByMerging128BitLanes(), lowerVectorShuffleWithPACK(), lowerVectorShuffleWithPSHUFB(), lowerVSELECTtoVectorShuffle(), LowerVSETCC(), lowerX86FPLogicOp(), matchVectorShuffleWithPACK(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), parseCachePolicy(), Passv64i1ArgInRegs(), recoverFramePointer(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), ShrinkLoadReplaceStoreWithStore(), splitAndLowerVectorShuffle(), truncateVectorWithPACK(), and XFormVExtractWithShuffleIntoLoad().

◆ getBlockAddress()

SDValue SelectionDAG::getBlockAddress ( const BlockAddress *  BA,
EVT  VT,
int64_t  Offset = 0,
bool  isTarget = false,
unsigned char  TargetFlags = 0 
)

◆ getBoolConstant()

SDValue SelectionDAG::getBoolConstant ( bool  V,
const SDLoc &  DL,
EVT  VT,
EVT  OpVT 
)

◆ getBoolExtOrTrunc()

SDValue SelectionDAG::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.

Definition at line 1100 of file SelectionDAG.cpp.

References llvm::EVT::bitsLE(), llvm::TargetLoweringBase::getBooleanContents(), llvm::TargetLoweringBase::getExtendForContent(), getNode(), llvm::SDValue::getValueType(), and llvm::ISD::TRUNCATE.

Referenced by isBooleanFlip(), and llvm::TargetLowering::SimplifySetCC().

◆ getBuildVector() [1/2]

SDValue llvm::SelectionDAG::getBuildVector ( EVT  VT,
const SDLoc &  DL,
ArrayRef< SDValue >  Ops 
)
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 729 of file SelectionDAG.h.

References llvm::ISD::BUILD_VECTOR.

Referenced by adjustLoadValueTypeImpl(), buildScalarToVector(), buildVector(), ChangeVSETULTtoVSETULE(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractSubvector(), combineShuffleOfScalars(), combineStore(), combineToExtendBoolVectorInReg(), combineX86ShuffleChain(), CompactSwizzlableVector(), ConstantBuildVector(), convertBuildVectorCastElt(), convertLocVTToValVT(), convertShiftLeftToScale(), ExtendToType(), extractSubVector(), findUser(), foldBitcastedFPLogic(), FoldCONCAT_VECTORS(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), GeneratePerfectShuffle(), GenerateTBL(), getBuildDwordsVector(), getBuildVectorSplat(), getConstant(), getConstVector(), getCopyFromPartsVector(), getCopyToPartsVector(), getExpandedMinMaxOps(), getFPTernOp(), getGeneralPermuteNode(), getLoadExtOrTrunc(), getNode(), getTargetVShiftByConstNode(), getTargetVShiftNode(), getUnderlyingArgReg(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), isPermutation(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isTruncateOf(), LowerBITCAST(), LowerBITREVERSE(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), lowerBuildVectorToBitOp(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::SITargetLowering::LowerFormalArguments(), llvm::AMDGPUTargetLowering::LowerFP64_TO_INT(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), lowerMSABinaryBitImmIntr(), lowerMSABitClearImm(), lowerMSASplatZExt(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), LowerTruncateVectorStore(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerVECTOR_SHUFFLE_VSHF(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOPInRegLUT(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBitMask(), lowerVectorShuffleAsBlend(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleWithPSHUFB(), LowerVSETCC(), narrowExtractedVectorLoad(), NormalizeBuildVector(), parseCachePolicy(), PerformBUILD_VECTORCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), llvm::AMDGPUTargetLowering::performSraCombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), ReorganizeVector(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorLoad(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedVectorElts(), skipExtensionForVectorMULL(), SkipExtensionForVMULL(), splitAndLowerVectorShuffle(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), tryBuildVectorShuffle(), and tryToFoldExtendOfConstant().

◆ getBuildVector() [2/2]

SDValue llvm::SelectionDAG::getBuildVector ( EVT  VT,
const SDLoc &  DL,
ArrayRef< SDUse >  Ops 
)
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 738 of file SelectionDAG.h.

References llvm::ISD::BUILD_VECTOR.

◆ getCALLSEQ_END()

SDValue llvm::SelectionDAG::getCALLSEQ_END ( SDValue  Chain,
SDValue  Op1,
SDValue  Op2,
SDValue  InGlue,
const SDLoc &  DL 
)
inline

◆ getCALLSEQ_START()

SDValue llvm::SelectionDAG::getCALLSEQ_START ( SDValue  Chain,
uint64_t  InSize,
uint64_t  OutSize,
const SDLoc &  DL 
)
inline

◆ getCommutedVectorShuffle()

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 1734 of file SelectionDAG.cpp.

References llvm::ShuffleVectorSDNode::commuteMask(), llvm::ShuffleVectorSDNode::getMask(), llvm::SDNode::getOperand(), llvm::SDNode::getValueType(), and getVectorShuffle().

Referenced by lowerVectorShuffle(), and replaceShuffleOfInsert().

◆ getCondCode()

SDValue SelectionDAG::getCondCode ( ISD::CondCode  Cond)

◆ getConstant() [1/3]

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 1182 of file SelectionDAG.cpp.

References assert(), llvm::EVT::getScalarType(), and llvm::EVT::getSizeInBits().

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), addIPMSequence(), adjustForSubtraction(), adjustForTestUnderMask(), adjustICmpTruncate(), adjustLoadValueTypeImpl(), adjustSubwordCmp(), adjustZeroCmp(), AnalyzeReturnValues(), bitcastf32Toi32(), BuildExactSDIV(), BuildIntrinsicOp(), llvm::SITargetLowering::buildRSRC(), llvm::PPCTargetLowering::BuildSDIVPow2(), BuildSplatI(), llvm::TargetLowering::BuildUDIV(), buildVector(), calculateByteProvider(), CallingConvSupported(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), ChangeVSETULTtoVSETULE(), clampDynamicVectorIndex(), combineAcrossLanesIntrinsic(), combineADC(), combineAddOrSubToADCOrSBB(), combineAndLoadToBZHI(), combineAndMaskToShift(), CombineANDShift(), CombineBaseUpdate(), combineBEXTR(), combineBitcast(), combineBrCond(), combineCCMask(), combineCMov(), combineCompareEqual(), combineExtractSubvector(), combineExtractVectorElt(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineLoopSADPattern(), combineMaskedLoad(), combineMaskedStore(), combineMinNumMaxNum(), combineMOVMSK(), combineMul(), combineMulSpecial(), combineSelect(), combineSelectOfTwoConstants(), combineSetCC(), combineSetCCAtomicArith(), combineSext(), combineShiftLeft(), combineShiftRightArithmetic(), combineShiftRightLogical(), combineSub(), combineSubToSubus(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineVectorSizedSetCCEquality(), combineVectorTruncationWithPACKUS(), CombineVMOVDRRCandidateWithVecOp(), combinevXi1ConstantToInteger(), combineX86ShuffleChain(), combineZext(), ConstantAddressBlock(), ConstantBuildVector(), constantFoldBFE(), ConvertBooleanCarryToCarryFlag(), ConvertCarryFlagToBooleanCarry(), ConvertI1VectorToInteger(), ConvertSelectToConcatVector(), convertShiftLeftToScale(), convertValVTToLocVT(), CreateCopyOfByValArgument(), createFPCmp(), createGPRPairNode(), createLoadLR(), createMMXBuildVector(), createPSADBW(), createStoreLR(), createVariablePermute(), detectAVGPattern(), EltsFromConsecutiveLoads(), emitCLC(), EmitCMP(), emitCmp(), emitConditionalComparison(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), EmitKTEST(), emitMemMem(), emitSETCC(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrlen(), EnsureStackAlignment(), Expand64BitShift(), ExpandBITCAST(), expandf64Toi32(), llvm::TargetLowering::expandFP_TO_SINT(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), ExtendToType(), ExtendUsesToFormExtLoad(), ExtractBitFromMaskVector(), extractF64Exponent(), extractShiftForRotate(), findUser(), flipBoolean(), foldAddSubBoolOfMaskedVal(), foldAddSubOfSignBit(), foldBitcastedFPLogic(), FoldConstantArithmetic(), foldExtendedSignBitTest(), FoldIntToFPToInt(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToScaledMask(), foldXorTruncShiftIntoCmp(), fp16SrcZerosHighBits(), genConstMult(), generateEquivalentSub(), GeneratePerfectShuffle(), GenerateTBL(), getAArch64Cmp(), getAArch64XALUOOp(), getAbsolute(), llvm::MipsTargetLowering::getAddrNonPICSym64(), getARMIndexedAddressParts(), getAsCarry(), getBoolConstant(), getBuildVectorSplat(), getCCResult(), getConstant(), getConstVector(), getCopyFromParts(), getCopyFromPartsVector(), llvm::RegsForValue::getCopyFromRegs(), getCopyToPartsVector(), GetDemandedBits(), getDivRemArgList(), getDUPLANEOp(), getExpandedMinMaxOps(), GetExponent(), getExtendedControlRegister(), GetFPLibCall(), getFPTernOp(), getGeneralPermuteNode(), llvm::AMDGPUTargetLowering::getHiHalf64(), getIntPtrConstant(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), llvm::AMDGPUTargetLowering::getLoHalf64(), getMad64_32(), getMaskNode(), getMemBasePlusOffset(), getMemCmpLoad(), getMemsetStringVal(), getMemsetValue(), getMOVL(), getNode(), getNOT(), getOnesVector(), llvm::MipsTargetLowering::getOpndList(), getPermuteMask(), getPermuteNode(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPMOVMSKB(), llvm::AVRTargetLowering::getPostIndexedAddressParts(), llvm::AVRTargetLowering::getPreIndexedAddressParts(), GetPromotionOpcode(), getReadPerformanceCounter(), getReadTimeStampCounter(), getReductionSDNode(), getSETCC(), getShuffleScalarElt(), GetSignificand(), llvm::NVPTXTargetLowering::getSqrtEstimate(), getT2IndexedAddressParts(), llvm::ARCTargetLowering::getTargetNodeName(), getTargetVShiftByConstNode(), getTargetVShiftNode(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getUniformBase(), getV4X86ShuffleImm8ForMask(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), getVShift(), getZeroExtendInReg(), getZeroVector(), hasNonFlagsUse(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), initAccumulator(), insert1BitVector(), InsertBitToMaskVector(), llvm::intCCToAVRCC(), IntCondCCodeToICC(), isADDADDMUL(), isAddSubZExt(), isBLACompatibleAddress(), isBooleanFlip(), isBSwapHWordElement(), isClampZeroToOne(), isConditionalZeroOrAllOnes(), isConstantOrUndefBUILD_VECTOR(), llvm::TargetLowering::isExtendedTrueVal(), isFloatingPointZero(), llvm::PPCTargetLowering::isLegalAddressingMode(), isLowerSaturatingConditional(), isMemOPCandidate(), isNEONModifiedImm(), isPermutation(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), IsSmallObject(), isTargetConstant(), isTruncateOf(), isTruncWithZeroHighBitsInput(), llvm::SITargetLowering::isTypeDesirableForOp(), isVShiftRImm(), isWordAligned(), isXor1OfSetCC(), lower1BitVectorShuffle(), LowerABS(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAndToBT(), LowerAsSplatVectorLoad(), LowerATOMIC_FENCE(), lowerAtomicArith(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITREVERSE(), LowerBITREVERSE_XOP(), llvm::LanaiTargetLowering::LowerBR_CC(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBUILD_VECTOR(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), 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::LowerCallTo(), llvm::TargetLowering::lowerCmpEqZeroToCtlzSrl(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCTLZ(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), LowerCTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_SUBVECTOR(), LowerF128Load(), LowerF128Store(), 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(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), LowerHorizontalByteSum(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP64(), LowerInterruptReturn(), llvm::HexagonTargetLowering::LowerINTRINSIC_VOID(), LowerINTRINSIC_W_CHAIN(), llvm::MSP430TargetLowering::LowerJumpTable(), LowerLabelRef(), llvm::MipsTargetLowering::lowerLOAD(), LowerLoad(), LowerMemOpCallTo(), LowerMINMAX(), lowerMSABinaryBitImmIntr(), lowerMSABitClear(), lowerMSABitClearImm(), lowerMSASplatImm(), lowerMSASplatZExt(), LowerMSCATTER(), llvm::LanaiTargetLowering::LowerMUL(), LowerMUL(), LowerMUL_LOHI(), lowerMUL_LOHI32(), LowerMULH(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerOperation(), llvm::HexagonTargetLowering::LowerPREFETCH(), LowerPREFETCH(), llvm::SITargetLowering::LowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerReverse_VECTOR_SHUFFLEv16i8_v8i16(), LowerRotate(), LowerScalarImmediateShift(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::LanaiTargetLowering::LowerSELECT_CC(), LowerSELECT_CC(), llvm::LanaiTargetLowering::LowerSETCC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerSETCCCARRY(), LowerShift(), LowerShiftParts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), LowerToTLSExecModel(), LowerTruncateVecI1(), LowerTruncateVectorStore(), LowerUDIV(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), LowerUMULO_SMULO(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), lowerV16I8VectorShuffle(), lowerV2F64VectorShuffle(), lowerV2X128VectorShuffle(), lowerV4F64VectorShuffle(), lowerV4X128VectorShuffle(), lowerV8F64VectorShuffle(), LowerVASTART(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE_SHF(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorCTLZ_AVX512CDI(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOPBitmath(), LowerVectorCTPOPInRegLUT(), LowerVectorINT_TO_FP(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBitMask(), lowerVectorShuffleAsBlend(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsByteRotate(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsInsertPS(), lowerVectorShuffleAsRotate(), lowerVectorShuffleAsShift(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleAsTruncBroadcast(), lowerVectorShuffleToEXPAND(), lowerVectorShuffleWithPSHUFB(), lowerVectorShuffleWithSHUFPD(), lowerVectorShuffleWithSSE4A(), LowerVSETCC(), LowerWRITE_REGISTER(), lowerX86CmpEqZeroToCtlzSrl(), LowerXALUO(), LowerXOR(), LowerZERO_EXTEND_Mask(), llvm::SparcTargetLowering::makeAddress(), materializeSBB(), mayTailCallThisCC(), memsetStore(), narrowExtractedVectorBinOp(), NegateCC(), NormalizeBuildVector(), optimizeLogicalImm(), Passv64i1ArgInRegs(), PerformAddcSubcCombine(), PerformAddeSubeCombine(), performANDCombine(), PerformARMBUILD_VECTORCombine(), PerformBFICombine(), performBitcastCombine(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performDSPShiftCombine(), performExtendCombine(), llvm::AMDGPUTargetLowering::performFAbsCombine(), performFDivCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), performFpToIntCombine(), performGlobalAddressCombine(), performIntegerAbsCombine(), PerformIntrinsicCombine(), performMulCombine(), PerformMULCombine(), performORCombine(), PerformORCombineToBFI(), performSetccAddFolding(), PerformShiftCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), performSHLCombine(), PerformSHLSimplify(), llvm::AMDGPUTargetLowering::performSraCombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), PerformSTORECombine(), performTBZCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVDUPCombine(), performXorCombine(), PrepareCall(), promoteExtBeforeAdd(), llvm::AArch64TargetLowering::ReconstructShuffle(), recoverFramePointer(), ReorganizeVector(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::AVRTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::TargetLowering::ShrinkDemandedConstant(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), skipExtensionForVectorMULL(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), llvm::AMDGPUTargetLowering::split64BitValue(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), splitInt128(), splitStores(), splitStoreSplat(), llvm::X86TargetLowering::targetShrinkDemandedConstant(), TranslateX86CC(), truncateVecElts(), tryAdvSIMDModImm16(), tryAdvSIMDModImm32(), tryAdvSIMDModImm321s(), tryAdvSIMDModImm64(), tryAdvSIMDModImm8(), tryAdvSIMDModImmFP(), tryBuildVectorReplicate(), tryCombineShiftImm(), tryCombineToEXTR(), tryExtendDUPToExtractHigh(), tryFoldToZero(), tryFormConcatFromShuffle(), tryLowerToSLI(), TryMULWIDECombine(), tryToFoldExtendOfConstant(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), WidenVector(), willShiftRightEliminate(), WinDBZCheckDenominator(), and XFormVExtractWithShuffleIntoLoad().

◆ getConstant() [2/3]

SDValue SelectionDAG::getConstant ( const APInt &  Val,
const SDLoc &  DL,
EVT  VT,
bool  isTarget = false,
bool  isOpaque = false 
)

Definition at line 1191 of file SelectionDAG.cpp.

References llvm::ConstantInt::get(), and getConstant().

◆ getConstant() [3/3]

SDValue SelectionDAG::getConstant ( const ConstantInt &  Val,
const SDLoc &  DL,
EVT  VT,
bool  isTarget = false,
bool  isOpaque = false 
)

◆ getConstantDbgValue()

SDDbgValue * SelectionDAG::getConstantDbgValue ( DIVariable *  Var,
DIExpression *  Expr,
const Value *  C,
const DebugLoc &  DL,
unsigned  O 
)

Creates a constant SDDbgValue node.

Constant.

Definition at line 7410 of file SelectionDAG.cpp.

References assert(), and llvm::SDDbgInfo::getAlloc().

Referenced by getUnderlyingArgReg().

◆ getConstantFP() [1/3]

SDValue SelectionDAG::getConstantFP ( double  Val,
const SDLoc &  DL,
EVT  VT,
bool  isTarget = false 
)

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 1329 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 combineBitcast(), combineExtractWithShuffle(), combineFneg(), EltsFromConsecutiveLoads(), ExpandPowI(), foldFPToIntToFP(), FoldIntToFPToInt(), getConstantFP(), getConstVector(), getEstimate(), getF32Constant(), GetFPLibCall(), getFPTernOp(), getMad64_32(), getMemsetStringVal(), getMemsetValue(), GetNegatedExpression(), getNode(), getShuffleScalarElt(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), getZeroVector(), haveEfficientBuildVectorPattern(), isCanonicalized(), isFMulNegTwo(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerFABSorFNEG(), llvm::AMDGPUTargetLowering::LowerFCEIL(), LowerFCOPYSIGN(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::AMDGPUTargetLowering::LowerFLOG(), llvm::AMDGPUTargetLowering::LowerFP64_TO_INT(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND32_16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i32(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), parseCachePolicy(), llvm::AMDGPUTargetLowering::performRcpCombine(), PrepareCall(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), ShrinkLoadReplaceStoreWithStore(), and XFormVExtractWithShuffleIntoLoad().

◆ getConstantFP() [2/3]

SDValue SelectionDAG::getConstantFP ( const APFloat &  Val,
const SDLoc &  DL,
EVT  VT,
bool  isTarget = false 
)

Definition at line 1292 of file SelectionDAG.cpp.

References llvm::ConstantFP::get(), getConstantFP(), and getContext().

◆ getConstantFP() [3/3]

SDValue SelectionDAG::getConstantFP ( const ConstantFP &  V,
const SDLoc &  DL,
EVT  VT,
bool  isTarget = false 
)

◆ getConstantPool() [1/2]

SDValue SelectionDAG::getConstantPool ( const Constant *  C,
EVT  VT,
unsigned  Align = 0,
int  Offs = 0,
bool  isT = false,
unsigned char  TargetFlags = 0 
)

◆ getConstantPool() [2/2]

SDValue SelectionDAG::getConstantPool ( MachineConstantPoolValue *  C,
EVT  VT,
unsigned  Align = 0,
int  Offs = 0,
bool  isT = false,
unsigned char  TargetFlags = 0 
)

◆ getContext()

LLVMContext* llvm::SelectionDAG::getContext ( ) const
inline

Definition at line 404 of file SelectionDAG.h.

References Context.

Referenced by AddCombineVUZPToVPADDL(), llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), adjustLoadValueTypeImpl(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildPCRelGlobalAddress(), calculateByteProvider(), CallingConvSupported(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineFMinNumFMaxNum(), combineGatherScatter(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineInsertSubvector(), combineLoad(), combineLoopMAddPattern(), combineMaskedLoad(), combineMaskedStore(), combineMinNumMaxNum(), combineShuffleToVectorExtend(), combineSIntToFP(), combineStore(), combineToExtendBoolVectorInReg(), combineToExtendVectorInReg(), combineTruncateWithSat(), combineUIntToFP(), combineVectorTruncationWithPACKUS(), CombineVMOVDRRCandidateWithVecOp(), combineVSelectWithAllOnesOrZeros(), combinevXi1ConstantToInteger(), ConstantAddressBlock(), ConstantBuildVector(), ConvertSelectToConcatVector(), CreateStackTemporary(), createVirtualRegs(), detectPMADDUBSW(), llvm::SelectionDAGBuilder::EmitBranchForMergedCondition(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), errorUnsupported(), llvm::TargetLowering::expandFP_TO_SINT(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), extractSubVector(), fail(), FindMemType(), findUser(), foldBitcastedFPLogic(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), foldXorTruncShiftIntoCmp(), getAtomicMemcpy(), getAtomicMemmove(), getAtomicMemset(), getBuildPairElt(), getConstant(), getConstantFP(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), getDivRemArgList(), getEstimate(), getEVTAlignment(), getExpandedMinMaxOps(), GetFPLibCall(), getFPTernOp(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoadExtOrTrunc(), getMemcpy(), getMemcpyLoadsAndStores(), getMemmove(), getMemmoveLoadsAndStores(), getMemset(), getMemsetStringVal(), getMemsetValue(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), getPermuteMask(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), GetRegistersForValue(), llvm::AVRTargetLowering::getSetCCResultType(), llvm::ARCTargetLowering::getTargetNodeName(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), llvm::SelectionDAGBuilder::init(), isClampZeroToOne(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), isNegativeOne(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), IsSmallObject(), isSortedByValueNo(), isTruncateOf(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), isXor1OfSetCC(), LowerADDSUBCARRY(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), 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(), llvm::AMDGPUTargetLowering::LowerFCEIL(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerFPOWI(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND32_16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), LowerFSINCOS(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), LowerInterruptReturn(), LowerLoad(), LowerMSCATTER(), LowerMULH(), llvm::BPFTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), lowerRegToMasks(), llvm::Nios2TargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVASTART(), LowerVECTOR_SHUFFLE(), LowerVectorINT_TO_FP(), LowerVSETCC(), llvm::TargetLowering::makeLibCall(), MatchingStackOffset(), matchPMADDWD(), matchPMADDWD_2(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), packIntoRegLoc(), parseCachePolicy(), Passv64i1ArgInRegs(), PerformARMBUILD_VECTORCombine(), PerformBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performExtendCombine(), PerformInsertEltCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), performSelectCombine(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PrepareCall(), printMemOperand(), promoteToConstantPool(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorStore(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), shouldTransformMulToShiftsAddsSubs(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), llvm::TargetLowering::softenSetCCOperands(), splitStores(), truncateVectorWithPACK(), tryFormConcatFromShuffle(), tryToElideArgumentCopy(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), llvm::TargetLowering::verifyReturnAddressArgumentIsConstant(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), and XFormVExtractWithShuffleIntoLoad().

◆ getCopyFromReg() [1/2]

SDValue llvm::SelectionDAG::getCopyFromReg ( SDValue  Chain,
const SDLoc &  dl,
unsigned  Reg,
EVT  VT 
)
inline

Definition at line 700 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 >(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), EnsureStackAlignment(), findUnwindDestinations(), getAbsolute(), llvm::RegsForValue::getCopyFromRegs(), getDivRemArgList(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getExtendedControlRegister(), getFRAMEADDR(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), getReadPerformanceCounter(), getReadTimeStampCounter(), getReductionSDNode(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getv64i1Argument(), hasOnlySelectUsers(), isADDADDMUL(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::IsLegalToFold(), llvm::ARMTargetLowering::isReadOnly(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), isXor1OfSetCC(), 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(), lowerFCOPYSIGN64(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::Nios2TargetLowering::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(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::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(), PrepareCall(), recoverFramePointer(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceZeroVectorStore(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromRegLoc(), llvm::SelectionDAGBuilder::visitBitTestCase(), and llvm::SelectionDAGBuilder::visitJumpTable().

◆ getCopyFromReg() [2/2]

SDValue llvm::SelectionDAG::getCopyFromReg ( SDValue  Chain,
const SDLoc &  dl,
unsigned  Reg,
EVT  VT,
SDValue  Glue 
)
inline

◆ getCopyToReg() [1/3]

SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
const SDLoc &  dl,
unsigned  Reg,
SDValue  N 
)
inline

Definition at line 674 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 >(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), findUser(), getAbsolute(), llvm::RegsForValue::getCopyToRegs(), getDivRemArgList(), getExtendedControlRegister(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), getReadPerformanceCounter(), getReductionSDNode(), llvm::ARCTargetLowering::getTargetNodeName(), hasOnlySelectUsers(), isADDADDMUL(), llvm::SelectionDAGISel::IsLegalToFold(), isSortedByValueNo(), isXor1OfSetCC(), 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(), llvm::SelectionDAGBuilder::LowerCallTo(), LowerCMP_SWAP(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFCOPYSIGN64(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::Nios2TargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), LowerSETCCCARRY(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSLocalDynamicModel(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), packIntoRegLoc(), Passv64i1ArgInRegs(), llvm::SITargetLowering::PostISelFolding(), PrepareCall(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitBitTestHeader(), and llvm::SelectionDAGBuilder::visitJumpTableHeader().

◆ getCopyToReg() [2/3]

SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
const SDLoc &  dl,
unsigned  Reg,
SDValue  N,
SDValue  Glue 
)
inline

◆ getCopyToReg() [3/3]

SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Reg,
SDValue  N,
SDValue  Glue 
)
inline

◆ getDataLayout()

const DataLayout& llvm::SelectionDAG::getDataLayout ( ) const
inline

Definition at line 398 of file SelectionDAG.h.

References llvm::MachineFunction::getDataLayout().

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), addShuffleForVecExtend(), addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), BuildExactSDIV(), buildPCRelGlobalAddress(), llvm::TargetLowering::BuildUDIV(), calculateByteProvider(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBVOfVecSExt(), combineFMinNumFMaxNum(), combineInsertSubvector(), combineLoad(), combineShuffleToVectorExtend(), combineStore(), combineTruncationShuffle(), combineVSelectWithAllOnesOrZeros(), computeKnownBits(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), createGPRPairNode(), CreateStackTemporary(), createVirtualRegs(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::X86TargetLowering::emitStackGuardXorFP(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), ExpandBITCAST(), expandf64Toi32(), llvm::TargetLowering::expandFP_TO_SINT(), llvm::TargetLowering::expandMUL_LOHI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), expandVACopy(), findUnwindDestinations(), foldBitcastedFPLogic(), foldXorTruncShiftIntoCmp(), generateEquivalentSub(), getAbsolute(), getAddressForMemoryInput(), getAtomicMemcpy(), getAtomicMemmove(), getAtomicMemset(), getBuildPairElt(), getConstant(), getConstantPool(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), getDivRemArgList(), getEstimate(), getEVTAlignment(), getExpandedMinMaxOps(), GetExponent(), GetFPLibCall(), getFPTernOp(), llvm::SelectionDAGBuilder::getFrameIndexTy(), getGlobalAddress(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), getIntPtrConstant(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), getLoadStackGuard(), getMemCmpLoad(), getMemcpy(), getMemcpyLoadsAndStores(), getMemmove(), getMemmoveLoadsAndStores(), getMemset(), getMemsetStringVal(), getMOVL(), getNextIntArgReg(), llvm::MipsTargetLowering::getOpndList(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBase(), llvm::TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPPCf128HiElementSelector(), getReductionSDNode(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::AVRTargetLowering::getSetCCResultType(), getShiftAmountOperand(), llvm::SparcTargetLowering::getSRetArgSize(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::PPC::getVSPLTImmediate(), hasExceptionPointerOrCodeUser(), hasNonFlagsUse(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::SelectionDAGBuilder::init(), llvm::intCCToAVRCC(), isADDADDMUL(), isBLACompatibleAddress(), isExtendedBUILD_VECTOR(), isNEONModifiedImm(), IsPredicateKnownToFail(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), IsSmallObject(), isSortedByValueNo(), isTargetConstant(), isTruncateOf(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorReductionOp(), llvm::PPC::isVMRGEOShuffleMask(), llvm::PPC::isVMRGHShuffleMask(), llvm::PPC::isVMRGLShuffleMask(), llvm::PPC::isVPKUDUMShuffleMask(), llvm::PPC::isVPKUHUMShuffleMask(), llvm::PPC::isVPKUWUMShuffleMask(), llvm::PPC::isVSLDOIShuffleMask(), isWordAligned(), isXor1OfSetCC(), 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(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), LowerF64Op(), llvm::AMDGPUTargetLowering::LowerFCEIL(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPOWI(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND32_16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), LowerFSINCOS(), 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(), LowerLoad(), LowerMemOpCallTo(), lowerMSABitClearImm(), LowerMUL_LOHI(), LowerMULH(), 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(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), LowerVASTART(), LowerVectorINT_TO_FP(), LowerWRITE_REGISTER(), llvm::SparcTargetLowering::makeAddress(), llvm::TargetLowering::makeLibCall(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), Passv64i1ArgInRegs(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformSTORECombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PerformVMOVRRDCombine(), pickOpcodeForVT(), PrepareCall(), promoteToConstantPool(), recoverFramePointer(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), ReplaceLoadVector(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorStore(), llvm::AVRDAGToDAGISel::SelectAddr(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::SelectionDAGISel::SelectCodeCommon(), selectI64Imm(), llvm::AVRDAGToDAGISel::selectIndexedLoad(), llvm::AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), tryToElideArgumentCopy(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WinDBZCheckDenominator(), and XFormVExtractWithShuffleIntoLoad().

◆ getDbgLabel()

SDDbgLabel * SelectionDAG::getDbgLabel ( DILabel *  Label,
const DebugLoc &  DL,
unsigned  O 
)

Creates a SDDbgLabel node.

Definition at line 7541 of file SelectionDAG.cpp.

References assert(), DAGUpdateListener, E, and llvm::SDDbgInfo::getAlloc().

Referenced by getUnderlyingArgReg().

◆ getDbgValue()

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.

SDNode

Definition at line 7400 of file SelectionDAG.cpp.

References assert(), and llvm::SDDbgInfo::getAlloc().

Referenced by getUnderlyingArgReg(), salvageDebugInfo(), and transferDbgValues().

◆ GetDbgValues()

ArrayRef<SDDbgValue*> llvm::SelectionDAG::GetDbgValues ( const SDNode *  SD)
inline

Get the debug values which reference the given SDNode.

Definition at line 1349 of file SelectionDAG.h.

References llvm::SDDbgInfo::getSDDbgValues().

Referenced by ProcessSDDbgValues(), salvageDebugInfo(), and transferDbgValues().

◆ GetDemandedBits()

SDValue SelectionDAG::GetDemandedBits ( SDValue  V,
const APInt &  Mask 
)

See if the specified operand can be simplified with the knowledge that only the bits specified by Mask 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.)

Definition at line 2081 of file SelectionDAG.cpp.

References llvm::ISD::AND, llvm::ISD::ANY_EXTEND, assert(), llvm::ISD::Constant, llvm::APInt::getActiveBits(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), getConstant(), 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::BitmaskEnumDetail::Mask(), MaskedValueIsZero(), llvm::ISD::OR, llvm::ISD::SRL, llvm::APInt::trunc(), and llvm::ISD::XOR.

Referenced by combineBT(), isTruncateOf(), and ShrinkLoadReplaceStoreWithStore().

◆ getEHLabel()

SDValue SelectionDAG::getEHLabel ( const SDLoc &  dl,
SDValue  Root,
MCSymbol *  Label 
)

Definition at line 1773 of file SelectionDAG.cpp.

References llvm::ISD::EH_LABEL, and getLabelNode().

Referenced by llvm::SelectionDAGBuilder::lowerInvokable().

◆ getEntryNode()

SDValue llvm::SelectionDAG::getEntryNode ( ) const
inline

Return the token chain corresponding to the entry of the function.

Definition at line 457 of file SelectionDAG.h.

Referenced by llvm::AMDGPUTargetLowering::addTokenForArgument(), AnalyzeReturnValues(), llvm::AVRDAGToDAGISel::select< ISD::BRIND >(), buildPCRelGlobalAddress(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), clear(), llvm::SITargetLowering::copyToM0(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), llvm::AMDGPUTargetLowering::CreateLiveInRegisterRaw(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), findUnwindDestinations(), getAbsolute(), llvm::MipsTargetLowering::getAddrLocal(), llvm::SelectionDAGBuilder::getCopyFromRegs(), getDivRemArgList(), getExpandedMinMaxOps(), getFLUSHW(), getFPTernOp(), getFRAMEADDR(), getInputChainForNode(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMemCmpLoad(), getMOVL(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::AVRTargetLowering::getSetCCResultType(), getStackArgumentTokenFactor(), getUnderlyingArgReg(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), getZeroVector(), HandleMergeInputChains(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), isADDADDMUL(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), lowerFCOPYSIGN64(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), LowerFPOWI(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), LowerFSINCOS(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerI64IntToFP_AVX512DQ(), LowerINTRINSIC_W_CHAIN(), LowerMULH(), llvm::RISCVTargetLowering::LowerOperation(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerSETCC(), LowerSETCCCARRY(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSGeneralDynamicModel64(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVectorINT_TO_FP(), llvm::SparcTargetLowering::makeAddress(), llvm::TargetLowering::makeLibCall(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), parseCachePolicy(), performDivRemCombine(), llvm::SITargetLowering::PostISelFolding(), PrepareCall(), recoverFramePointer(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), replaceZeroVectorStore(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), UnpackFromArgumentSlot(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and WinDBZCheckDenominator().

◆ getEVTAlignment()

unsigned SelectionDAG::getEVTAlignment ( EVT  MemoryVT) const

◆ getExternalSymbol() [1/2]

SDValue SelectionDAG::getExternalSymbol ( const char *  Sym,
EVT  VT 
)

◆ getExternalSymbol() [2/2]

SDValue llvm::SelectionDAG::getExternalSymbol ( const char *  Sym,
const SDLoc &  dl,
EVT  VT 
)

◆ getExtLoad() [1/2]

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() 
)

◆ getExtLoad() [2/2]

SDValue SelectionDAG::getExtLoad ( ISD::LoadExtType  ExtType,
const SDLoc &  dl,
EVT  VT,
SDValue  Chain,
SDValue  Ptr,
EVT  MemVT,
MachineMemOperand *  MMO 
)

◆ getFPExtendOrRound()

SDValue SelectionDAG::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).

Definition at line 1076 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().

◆ getFrameIndex()

SDValue SelectionDAG::getFrameIndex ( int  FI,
EVT  VT,
bool  isTarget = false 
)

Definition at line 1380 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(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), CreateStackTemporary(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), EnsureStackAlignment(), getAbsolute(), getAddressForMemoryInput(), getMOVL(), getNextIntArgReg(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), haveEfficientBuildVectorPattern(), llvm::intCCToAVRCC(), isADDADDMUL(), isSortedByValueNo(), llvm::SITargetLowering::isTypeDesirableForOp(), isXor1OfSetCC(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), lowerCallResult(), LowerCallResult(), llvm::TargetLowering::LowerCallTo(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerI64IntToFP_AVX512DQ(), LowerINTRINSIC_W_CHAIN(), llvm::RISCVTargetLowering::LowerOperation(), llvm::MipsTargetLowering::lowerSTORE(), lowerUINT_TO_FP_vec(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), mayTailCallThisCC(), PrepareCall(), shouldGuaranteeTCO(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().

◆ getFrameIndexDbgValue()

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 7420 of file SelectionDAG.cpp.

References assert(), llvm::SDDbgValue::FRAMEIX, and llvm::SDDbgInfo::getAlloc().

Referenced by getUnderlyingArgReg().

◆ getGLOBAL_OFFSET_TABLE()

SDValue llvm::SelectionDAG::getGLOBAL_OFFSET_TABLE ( EVT  VT)
inline

◆ getGlobalAddress()

SDValue SelectionDAG::getGlobalAddress ( const GlobalValue *  GV,
const SDLoc &  DL,
EVT  VT,
int64_t  offset = 0,
bool  isTargetGA = false,
unsigned char  TargetFlags = 0 
)

◆ getGraphAttrs()

const std::string SelectionDAG::getGraphAttrs ( const SDNode *  N) const

Get graph attributes for a node.

getGraphAttrs - Get graph attributes for a node.

(eg. "color=red".) Used from getNodeAttributes.

Definition at line 194 of file SelectionDAGPrinter.cpp.

References llvm::errs(), and I.

Referenced by llvm::DOTGraphTraits< SelectionDAG * >::getNodeAttributes().

◆ getIndexedLoad()

SDValue SelectionDAG::getIndexedLoad ( SDValue  OrigLoad,
const SDLoc &  dl,
SDValue  Base,
SDValue  Offset,
ISD::MemIndexedMode  AM 
)

◆ getIndexedStore()

SDValue SelectionDAG::getIndexedStore ( SDValue  OrigStore,
const SDLoc &  dl,
SDValue  Base,
SDValue  Offset,
ISD::MemIndexedMode  AM 
)

◆ getIntPtrConstant()

SDValue SelectionDAG::getIntPtrConstant ( uint64_t  Val,
const SDLoc &  DL,
bool  isTarget = false 
)

Definition at line 1287 of file SelectionDAG.cpp.

References getConstant(), getDataLayout(), and llvm::TargetLoweringBase::getPointerTy().

Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildFromShuffleMostly(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBitcast(), combineBVOfVecSExt(), combineCompareEqual(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineInsertSubvector(), combineLoopSADPattern(), combineStore(), combineTargetShuffle(), combineToExtendVectorInReg(), combineVectorTruncationWithPACKUS(), combineVSZext(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::PPCTargetLowering::expandVSXStoreForLE(), ExtendToType(), ExtractBitFromMaskVector(), extractSubVector(), foldBitcastedFPLogic(), FoldIntToFPToInt(), getAbsolute(), getCopyToParts(), getExpandedMinMaxOps(), getFPExtendOrRound(), GetFPLibCall(), getFRAMEADDR(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMaskNode(), getMOVL(), getNextIntArgReg(), llvm::MipsTargetLowering::getOpndList(), getParamsForOneTrueMaskedElt(), GetPromotionOpcode(), getReductionSDNode(), llvm::X86TargetLowering::getRegisterByName(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::MipsTargetLowering::getTypeForExtReturn(), insert1BitVector(), InsertBitToMaskVector(), insertSubVector(), llvm::intCCToAVRCC(), isADDADDMUL(), isSETCCorConvertedSETCC(), isSortedByValueNo(), IsSplatValue(), isTruncWithZeroHighBitsInput(), isXor1OfSetCC(), lower1BitVectorShuffle(), LowerADDSUBCARRY(), LowerAVXCONCAT_VECTORS(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORSvXi1(), lowerCTPOP16BitElements(), lowerCTPOP32BitElements(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerEXTRACT_SUBVECTOR(), LowerFABSorFNEG(), LowerFCOPYSIGN(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), LowerFSINCOS(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), lowerI128ToGR128(), LowerI64IntToFP_AVX512DQ(), LowerLoad(), lowerMasksToReg(), LowerMGATHER(), LowerMLOAD(), LowerMULH(), llvm::RISCVTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), lowerRegToMasks(), llvm::LanaiTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerSDIV(), 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_vec(), LowerUMULO_SMULO(), lowerV2X128VectorShuffle(), lowerV4X128VectorShuffle(), LowerVAARG(), LowerVACOPY(), LowerVASTART(), LowerVectorINT_TO_FP(), lowerVectorShuffleWithUndefHalf(), LowerZERO_EXTEND_Mask(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), llvm::PPCTargetLowering::PerformDAGCombine(), performMADD_MSUBCombine(), PerformSTORECombine(), PrepareCall(), PrepareTailCall(), recoverFramePointer(), reduceVMULWidth(), ReplaceLoadVector(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), shouldGuaranteeTCO(), SplitAndExtendv16i1(), splitAndLowerVectorShuffle(), unpackF64OnRV32DSoftABI(), and widenSubVector().

◆ getJumpTable()

SDValue SelectionDAG::getJumpTable ( int  JTI,
EVT  VT,
bool  isTarget = false,
unsigned char  TargetFlags = 0 
)

◆ getLabelNode()

SDValue SelectionDAG::getLabelNode ( unsigned  Opcode,
const SDLoc &  dl,
SDValue  Root,
MCSymbol *  Label 
)

◆ getLibInfo()

const TargetLibraryInfo& llvm::SelectionDAG::getLibInfo ( ) const
inline

Definition at line 402 of file SelectionDAG.h.

◆ getLoad() [1/4]

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 6300 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(), llvm::X86TargetLowering::BuildFILD(), buildPCRelGlobalAddress(), calculateByteProvider(), CalculateTailCallArgDest(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBVOfConsecutiveLoads(), combineLoad(), combineMaskedLoadConstantMask(), combineStore(), ConstantAddressBlock(), EltsFromConsecutiveLoads(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), EnsureStackAlignment(), expandf64Toi32(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), expandVACopy(), findUser(), foldBitcastedFPLogic(), getAbsolute(), llvm::MipsTargetLowering::getAddrGlobal(), llvm::MipsTargetLowering::getAddrGlobalLargeGOT(), llvm::MipsTargetLowering::getAddrLocal(), getBuildPairElt(), getExpandedMinMaxOps(), getExtLoad(), GetFPLibCall(), getFRAMEADDR(), getIndexedLoad(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoad(), getLoadExtOrTrunc(), getMemCmpLoad(), getMemmoveLoadsAndStores(), getMOVL(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getVectorCompareInfo(), hasOnlySelectUsers(), isADDADDMUL(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isSortedByValueNo(), isTruncateOf(), llvm::SITargetLowering::isTypeDesirableForOp(), isXor1OfSetCC(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAsSplatVectorLoad(), LowerBUILD_VECTORAsVariablePermute(), lowerBuildVectorAsBroadcast(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), llvm::TargetLowering::LowerCallTo(), LowerEXTRACT_SUBVECTOR(), LowerF128Load(), llvm::SparcTargetLowering::LowerF128Op(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::Nios2TargetLowering::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::RISCVTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::LanaiTargetLowering::LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerTruncateVecI1(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), LowerVAARG(), LowerVASTART(), LowerVectorINT_TO_FP(), lowerVectorShuffleAsBroadcast(), llvm::SparcTargetLowering::makeAddress(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::PPCTargetLowering::PerformDAGCombine(), performIntToFpCombine(), llvm::AMDGPUTargetLowering::performLoadCombine(), PrepareCall(), reduceMaskedLoadToScalarLoad(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), SkipLoadExtensionForVMULL(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().

◆ getLoad() [2/4]

SDValue SelectionDAG::getLoad ( EVT  VT,
const SDLoc &  dl,
SDValue  Chain,
SDValue  Ptr,
MachineMemOperand *  MMO 
)

◆ getLoad() [3/4]

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 
)

◆ getLoad() [4/4]

SDValue SelectionDAG::getLoad ( ISD::MemIndexedMode  AM,
ISD::LoadExtType  ExtType,
EVT  VT,
const SDLoc &  dl,
SDValue  Chain,
SDValue  Ptr,
SDValue  Offset,
EVT  MemVT,
MachineMemOperand *  MMO 
)

◆ getLogicalNOT()

SDValue SelectionDAG::getLogicalNOT ( const SDLoc &  DL,
SDValue  Val,
EVT  VT 
)

Create a logical NOT operation as (XOR Val, BooleanOne).

Definition at line 1162 of file SelectionDAG.cpp.

References getBoolConstant(), getNode(), and llvm::ISD::XOR.

Referenced by llvm::HexagonTargetLowering::LowerAddSubCarry().

◆ getMachineFunction()

MachineFunction& llvm::SelectionDAG::getMachineFunction ( ) const
inline

Definition at line 395 of file SelectionDAG.h.

Referenced by llvm::RegsForValue::AddInlineAsmOperands(), llvm::StatepointLoweringState::allocateStackSlot(), llvm::analyzeArguments(), AnalyzeReturnValues(), areCallingConvEligibleForTCO_64SVR4(), llvm::X86TargetLowering::BuildFILD(), llvm::TargetLowering::BuildSDIVPow2(), CalculateTailCallSPDiff(), CallingConvSupported(), llvm::AArch64TargetLowering::canMergeStoresTo(), llvm::X86TargetLowering::canMergeStoresTo(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineFMinNumFMaxNum(), combineMul(), combineOr(), combineStore(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), ConstantAddressBlock(), ConvertSelectToConcatVector(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), CreateStackTemporary(), createVirtualRegs(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), llvm::BaseIndexOffset::equalBaseIndex(), errorUnsupported(), expandf64Toi32(), llvm::X86TargetLowering::expandIndirectJTBranch(), ExpandPowI(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), fail(), llvm::SelectionDAGBuilder::FindMergedConditions(), FindOptimalMemOpLowering(), findUnwindDestinations(), findUser(), fixupFuncForFI(), foldFPToIntToFP(), getAbsolute(), getAddressForMemoryInput(), llvm::MipsTargetLowering::getAddrLocal(), getAtomic(), getAtomicCmpSwap(), getDivRemArgList(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getExpandedMinMaxOps(), getFPTernOp(), getFRAMEADDR(), llvm::MipsTargetLowering::getGlobalReg(), llvm::DOTGraphTraits< SelectionDAG * >::getGraphName(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLoad(), getLoadExtOrTrunc(), getLoadStackGuard(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemIntrinsicNode(), getMemmoveLoadsAndStores(), getMemsetStores(), getMOVL(), getNextIntArgReg(), llvm::MipsTargetLowering::getOpndList(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getReductionSDNode(), llvm::X86TargetLowering::getRegisterByName(), GetRegistersForValue(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::NVPTXTargetLowering::getSqrtEstimate(), llvm::SparcTargetLowering::getSRetArgSize(), getStore(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getTOCEntry(), getTruncStore(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getUniformBase(), getv64i1Argument(), getVectorCompareInfo(), hasNonFlagsUse(), hasOnlySelectUsers(), hasReturnsTwiceAttr(), haveEfficientBuildVectorPattern(), InferPointerInfo(), InsertBitToMaskVector(), llvm::intCCToAVRCC(), isADDADDMUL(), isCanonicalized(), isConsecutiveLSLoc(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::TargetLowering::isInTailCallPosition(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), isSortedByValueNo(), isTargetConstant(), llvm::SITargetLowering::isTypeDesirableForOp(), isXor1OfSetCC(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::AMDGPUTargetLowering::loadStackInputValue(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), LowerAndToBT(), LowerAsSplatVectorLoad(), lowerAtomicArithWithLOCK(), 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::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), LowerEXTRACT_SUBVECTOR(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), lowerFCOPYSIGN64(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerFPOWI(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerI64IntToFP_AVX512DQ(), llvm::HexagonTargetLowering::LowerINLINEASM(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), llvm::SelectionDAGBuilder::lowerInvokable(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), lowerRegToMasks(), llvm::Nios2TargetLowering::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(), llvm::MipsTargetLowering::lowerSTORE(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), LowerToTLSLocalDynamicModel(), LowerUINT_TO_FP_i64(), lowerUINT_TO_FP_vec(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVACOPY(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), LowerVectorINT_TO_FP(), lowerVectorShuffleAsBroadcast(), LowerWRITE_REGISTER(), llvm::SparcTargetLowering::makeAddress(), MarkEHGuard(), MarkEHRegistrationNode(), MatchingStackOffset(), mayTailCallThisCC(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), packIntoRegLoc(), parseCachePolicy(), Passv64i1ArgInRegs(), PerformADDCombineWithOperands(), llvm::PPCTargetLowering::PerformDAGCombine(), performXorCombine(), llvm::SITargetLowering::PostISelFolding(), PrepareCall(), printMemOperand(), promoteToConstantPool(), recoverFramePointer(), reduceVMULWidth(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::TargetLowering::CallLoweringInfo::setLibCallee(), setUsesTOCBasePtr(), shouldGuaranteeTCO(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), spillIncomingStatepointValue(), splitStores(), llvm::AMDGPUTargetLowering::storeStackInputValue(), StoreTailCallArgumentsToStackSlot(), llvm::X86InstrInfo::unfoldMemoryOperand(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), unpackFromRegLoc(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().

◆ getMachineNode() [1/13]

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 7245 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(), llvm::X86TargetLowering::emitStackGuardXorFP(), findUser(), getAbsolute(), getExtendedControlRegister(), getLeftShift(), getLoadStackGuard(), getMachineNode(), getPrefetchNode(), getPTXCmpMode(), getScatterNode(), getTargetExtractSubreg(), getTargetInsertSubreg(), getUnderlyingArgReg(), getVectorCompareInfo(), isMemOPCandidate(), isPermutation(), isPreferredADD(), llvm::SITargetLowering::legalizeTargetIndependentNode(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), LowerATOMIC_FENCE(), LowerBITCAST(), LowerF128Load(), LowerF128Store(), LowerF64Op(), lowerI128ToGR128(), LowerMGATHER(), llvm::RISCVTargetLowering::LowerOperation(), llvm::SystemZTargetLowering::LowerOperationWrapper(), mayTailCallThisCC(), narrowIfNeeded(), optimizeLogicalImm(), parseCachePolicy(), performBitcastCombine(), llvm::R600TargetLowering::PerformDAGCombine(), pickOpcodeForVT(), llvm::SITargetLowering::PostISelFolding(), 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(), 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::HexagonTargetLowering::shouldExpandAtomicRMWInIR(), SubIdx2Lane(), tryBitfieldInsertOpFromOr(), tryBitfieldInsertOpFromOrAndImm(), llvm::X86InstrInfo::unfoldMemoryOperand(), Widen(), and llvm::SITargetLowering::wrapAddr64Rsrc().

◆ getMachineNode() [2/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT,
SDValue  Op1 
)

Definition at line 7251 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [3/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT,
SDValue  Op1,
SDValue  Op2 
)

Definition at line 7258 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [4/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3 
)

Definition at line 7265 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [5/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT,
ArrayRef< SDValue >  Ops 
)

Definition at line 7273 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [6/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
SDValue  Op1,
SDValue  Op2 
)

Definition at line 7279 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [7/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3 
)

Definition at line 7287 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [8/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
ArrayRef< SDValue >  Ops 
)

Definition at line 7295 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [9/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
EVT  VT3,
SDValue  Op1,
SDValue  Op2 
)

Definition at line 7302 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [10/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
EVT  VT3,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3 
)

Definition at line 7310 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [11/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
EVT  VT1,
EVT  VT2,
EVT  VT3,
ArrayRef< SDValue >  Ops 
)

Definition at line 7319 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [12/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
ArrayRef< EVT >  ResultTys,
ArrayRef< SDValue >  Ops 
)

Definition at line 7326 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

◆ getMachineNode() [13/13]

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
const SDLoc &  dl,
SDVTList  VTs,
ArrayRef< SDValue >  Ops 
)

◆ getMaskedGather()

SDValue SelectionDAG::getMaskedGather ( SDVTList  VTs,
EVT  VT,
const SDLoc &  dl,
ArrayRef< SDValue >  Ops,
MachineMemOperand *  MMO 
)

◆ getMaskedLoad()

SDValue SelectionDAG::getMaskedLoad ( EVT  VT,
const SDLoc &  dl,
SDValue  Chain,
SDValue  Ptr,
SDValue  Mask,
SDValue  Src0,
EVT  MemVT,
MachineMemOperand *  MMO,
ISD::LoadExtType  ExtTy,
bool  IsExpanding = false 
)

◆ getMaskedScatter()

SDValue SelectionDAG::getMaskedScatter ( SDVTList  VTs,
EVT  VT,
const SDLoc &  dl,
ArrayRef< SDValue >  Ops,
MachineMemOperand *  MMO 
)

◆ getMaskedStore()

SDValue SelectionDAG::getMaskedStore ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Val,
SDValue  Ptr,
SDValue  Mask,
EVT  MemVT,
MachineMemOperand *  MMO,
bool  IsTruncating = false,
bool  IsCompressing = false 
)

◆ getMCSymbol()

SDValue SelectionDAG::getMCSymbol ( MCSymbol *  Sym,
EVT  VT 
)

Definition at line 1521 of file SelectionDAG.cpp.

Referenced by getUnderlyingArgReg(), and recoverFramePointer().

◆ getMDNode()

SDValue SelectionDAG::getMDNode ( const MDNode *  MD)

◆ getMemBasePlusOffset()

SDValue SelectionDAG::getMemBasePlusOffset ( SDValue  Base,
unsigned  Offset,
const SDLoc &  DL 
)

◆ getMemcpy()

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 5674 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(), getContext(), getDataLayout(), getExternalSymbol(), llvm::DataLayout::getIntPtrType(), llvm::TargetLoweringBase::getLibcallCallingConv(), llvm::TargetLoweringBase::getLibcallName(), getMemcpyLoadsAndStores(), llvm::SDValue::getNode(), llvm::TargetLoweringBase::getPointerTy(), llvm::EVT::getTypeForEVT(), llvm::SDValue::getValueType(), llvm::ConstantSDNode::getZExtValue(), llvm::ConstantSDNode::isNullValue(), llvm::TargetLowering::LowerCallTo(), llvm::ARMISD::MEMCPY, llvm::TargetLoweringBase::ArgListEntry::Node, Result, llvm::TargetLowering::CallLoweringInfo::setChain(), llvm::TargetLowering::CallLoweringInfo::setDebugLoc(), llvm::TargetLowering::CallLoweringInfo::setLibCallee(), llvm::TargetLowering::CallLoweringInfo::setTailCall(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, and llvm::TargetLoweringBase::ArgListEntry::Ty.

Referenced by AnalyzeReturnValues(), CallingConvSupported(), CC_Lanai32_VarArg(), CreateCopyOfByValArgument(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), getAbsolute(), getMemCmpLoad(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), lowerCallResult(), LowerCallResult(), LowerVACOPY(), mayTailCallThisCC(), and unpackF64OnRV32DSoftABI().

◆ getMemIntrinsicNode() [1/2]

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,
unsigned  Size = 0 
)

◆ getMemIntrinsicNode() [2/2]

SDValue SelectionDAG::getMemIntrinsicNode ( unsigned  Opcode,
const SDLoc &  dl,
SDVTList  VTList,
ArrayRef< SDValue >  Ops,
EVT  MemVT,
MachineMemOperand *  MMO 
)

◆ getMemmove()

SDValue SelectionDAG::getMemmove ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Dst,
SDValue  Src,
SDValue  Size,
unsigned  Align,
bool  isVol,
bool  isTailCall,
MachinePointerInfo  DstPtrInfo,
MachinePointerInfo  SrcPtrInfo 
)

◆ getMemset()

SDValue SelectionDAG::getMemset ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Dst,
SDValue  Src,
SDValue  Size,
unsigned  Align,
bool  isVol,
bool  isTailCall,
MachinePointerInfo  DstPtrInfo 
)

◆ getMergeValues()

SDValue SelectionDAG::getMergeValues ( ArrayRef< SDValue >  Ops,
const SDLoc &  dl 
)

Create a MERGE_VALUES node from the given operands.

getMergeValues - Create a MERGE_VALUES node from the given operands.

Definition at line 6118 of file SelectionDAG.cpp.

References getNode(), getVTList(), llvm::ISD::MERGE_VALUES, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and llvm::ArrayRef< T >::size().

Referenced by adjustLoadValueTypeImpl(), ConstantAddressBlock(), ConvertSelectToConcatVector(), createVirtualRegs(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), findUser(), getAbsolute(), getDivRemArgList(), getFPTernOp(), llvm::XCoreTargetLowering::getJumpTableEncoding(), getLoadExtOrTrunc(), getReductionSDNode(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), isADDADDMUL(), llvm::SITargetLowering::isTypeDesirableForOp(), isWordAligned(), isXor1OfSetCC(), LowerADDC_ADDE_SUBC_SUBE(), llvm::HexagonTargetLowering::LowerAddSubCarry(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), lowerDSPIntr(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::AMDGPUTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), LowerF128Load(), lowerFCOPYSIGN64(), LowerINTRINSIC_W_CHAIN(), llvm::MipsTargetLowering::lowerLOAD(), LowerLoad(), LowerMGATHER(), LowerMLOAD(), LowerMUL_LOHI(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), LowerShiftParts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), llvm::AMDGPUTargetLowering::LowerUDIVREM(), lowerUINT_TO_FP_vec(), LowerUMULO_SMULO(), llvm::HexagonTargetLowering::LowerUnalignedLoad(), mayTailCallThisCC(), parseCachePolicy(), llvm::AMDGPUTargetLowering::performLoadCombine(), llvm::AMDGPUTargetLowering::performMulLoHi24Combine(), PrepareCall(), ReorganizeVector(), llvm::TargetLowering::scalarizeVectorLoad(), and llvm::AMDGPUTargetLowering::SplitVectorLoad().

◆ getNode() [1/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
ArrayRef< SDUse >  Ops 
)

Gets or creates the specified node.

Definition at line 6639 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(), BuildExactSDIV(), buildFromShuffleMostly(), BuildIntrinsicOp(), buildMergeScalars(), buildPCRelGlobalAddress(), buildScalarToVector(), llvm::PPCTargetLowering::BuildSDIVPow2(), llvm::TargetLowering::BuildUDIV(), buildVector(), BuildVSLDOI(), calculateByteProvider(), CallingConvSupported(), CanCombineFCOPYSIGN_EXTEND_ROUND(), canFoldInAddressingMode(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), chainLoadsAndStoresForMemcpy(), checkVSELConstraints(), clampDynamicVectorIndex(), combineAcrossLanesIntrinsic(), combineADC(), combineAdd(), combineAddOrSubToADCOrSBB(), combineAnd(), combineAndLoadToBZHI(), combineAndMaskToShift(), CombineANDShift(), combineANDXORWithAllOnesIntoANDNP(), CombineBaseUpdate(), combineBasicSADPattern(), combineBEXTR(), combineBitcast(), combineBitcastvxi1(), combineBrCond(), combineBT(), combineBVOfVecSExt(), combineCastedMaskArithmetic(), combineCCMask(), combineCMov(), combineCompareEqual(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineExtractSubvector(), combineExtractVectorElt(), combineExtractWithShuffle(), combineFaddFsub(), combineFAndFNotToFAndn(), combineFMA(), combineFMADDSUB(), combineFMinFMax(), llvm::AMDGPUTargetLowering::combineFMinMaxLegacy(), combineFMinNumFMaxNum(), combineFneg(), combineHorizontalMinMaxResult(), combineHorizontalPredicateResult(), combineIncDecVector(), combineInsertSubvector(), combineLoad(), combineLogicBlendIntoPBLENDV(), combineLoopMAddPattern(), combineLoopSADPattern(), combineMaskedLoad(), combineMaskedStore(), combineMinNumMaxNum(), combineMul(), combineMulSpecial(), combineMulToPMADDWD(), combineMulToPMULDQ(), combineOr(), combineOrCmpEqZeroToCtlzSrl(), combinePMULH(), combineRedundantDWordShuffle(), combineRedundantHalfShuffle(), combineSBB(), combineScalarToVector(), combineSelect(), combineSelectAndUse(), combineSelectOfTwoConstants(), combineSetCC(), combineSext(), combineSextInRegCmov(), combineShiftLeft(), combineShiftRightArithmetic(), combineShiftRightLogical(), combineShuffle(), combineShuffleOfConcatUndef(), combineShuffleToAddSubOrFMAddSub(), combineShuffleToFMAddSub(), combineSignExtendInReg(), combineSIntToFP(), combineStore(), combineSub(), combineSubToSubus(), combineTargetShuffle(), combineToExtendBoolVectorInReg(), combineToExtendCMOV(), combineToExtendVectorInReg(), combineTruncate(), combineTruncatedArithmetic(), combineTruncateWithSat(), combineUIntToFP(), combineVectorCompareAndMaskUnaryOp(), combineVectorSizedSetCCEquality(), combineVectorTruncationWithPACKSS(), combineVectorTruncationWithPACKUS(), CombineVMOVDRRCandidateWithVecOp(), combineVSelectToShrunkBlend(), combineVSelectWithAllOnesOrZeros(), combineVSZext(), combineX86ShuffleChain(), combineXor(), combineZext(), ConstantAddressBlock(), ConstantBuildVector(), ConvertBooleanCarryToCarryFlag(), convertBuildVectorCastElt(), ConvertCarryFlagToBooleanCarry(), convertIntLogicToFPLogic(), convertLocVTToValVT(), ConvertSelectToConcatVector(), convertShiftLeftToScale(), convertValVTToLocVT(), llvm::SITargetLowering::copyToM0(), createCMovFP(), createFPCmp(), createGPRPairNode(), createLoadLR(), createMMXBuildVector(), createPSADBW(), createStoreLR(), createVariablePermute(), createVirtualRegs(), detectAVGPattern(), detectPMADDUBSW(), detectUSatPattern(), distributeOpThroughSelect(), emitCLC(), EmitCMP(), emitCmp(), emitComparison(), emitConditionalComparison(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), emitIntrinsicWithCC(), emitIntrinsicWithCCAndChain(), EmitKTEST(), emitMemMem(), emitSETCC(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen(), EmitVectorComparison(), EnsureStackAlignment(), Expand64BitShift(), ExpandBITCAST(), ExpandBVWithShuffles(), expandExp(), expandExp2(), expandf64Toi32(), llvm::TargetLowering::expandFP_TO_SINT(), ExpandHorizontalBinOp(), llvm::X86TargetLowering::expandIndirectJTBranch(), llvm::TargetLowering::expandIndirectJTBranch(), expandLog(), expandLog10(), expandLog2(), llvm::TargetLowering::expandMUL_LOHI(), expandPow(), ExpandPowI(), ExpandREAD_REGISTER(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), ExtendToType(), ExtendUsesToFormExtLoad(), ExtractBitFromMaskVector(), extractF64Exponent(), extractLOHI(), extractShiftForRotate(), extractSubVector(), findUnwindDestinations(), findUser(), flipBoolean(), foldAddSubBoolOfMaskedVal(), foldAddSubOfSignBit(), foldBitcastedFPLogic(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), foldExtendedSignBitTest(), foldFPToIntToFP(), foldFreeOpFromSelect(), FoldIntToFPToInt(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToScaledMask(), foldVectorXorShiftIntoCmp(), foldXorTruncShiftIntoCmp(), 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(), getAnyExtendVectorInReg(), getAnyExtOrTrunc(), getAsCarry(), getAsNonOpaqueConstant(), getBitcast(), getBitTestCondition(), getBoolExtOrTrunc(), getBuildVectorSplat(), getCCResult(), getConstant(), llvm::SelectionDAGBuilder::getControlRoot(), getCopyFromParts(), getCopyFromPartsVector(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), getCTPOP16BitCounts(), llvm::DAGTypeLegalizer::getDAG(), GetDemandedBits(), getDivRem8(), getDivRemArgList(), getDUPLANEOp(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getEstimate(), getEstimateRefinementSteps(), getExpandedMinMaxOps(), GetExponent(), getExtendedControlRegister(), getExtendInVec(), getFLUSHW(), getFPBinOp(), getFPExtendOrRound(), GetFPLibCall(), getFPTernOp(), getFRAMEADDR(), getGeneralPermuteNode(), llvm::AMDGPUTargetLowering::getHiHalf64(), getInputChainForNode(), llvm::XCoreTargetLowering::getJumpTableEncoding(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLimitedPrecisionExp2(), getLoadExtOrTrunc(), getLogicalNOT(), llvm::AMDGPUTargetLowering::getLoHalf64(), getMad64_32(), getMaskNode(), getMemBasePlusOffset(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStringVal(), getMemsetValue(), getMergeValues(), getMOVL(), getMul24(), GetNegatedExpression(), getNextIntArgReg(), getNode(), getNOT(), llvm::MipsTargetLowering::getOpndList(), getPermuteMask(), getPermuteNode(), llvm::HexagonTargetLowering::getPICJumpTableRelocBase(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPMOVMSKB(), GetPromotionOpcode(), getReadPerformanceCounter(), getReadTimeStampCounter(), llvm::AMDGPUTargetLowering::getRecipEstimate(), getReductionSDNode(), GetRegistersForValue(), llvm::SelectionDAGBuilder::getRoot(), getScalarMaskingNode(), getSETCC(), llvm::AVRTargetLowering::getSetCCResultType(), getSExtOrTrunc(), getSignExtendVectorInReg(), GetSignificand(), getSplatConstantFP(), llvm::AMDGPUTargetLowering::getSqrtEstimate(), llvm::NVPTXTargetLowering::getSqrtEstimate(), getStackArgumentTokenFactor(), llvm::BPFTargetLowering::getTargetNodeName(), llvm::ARCTargetLowering::getTargetNodeName(), getTargetVShiftByConstNode(), getTargetVShiftNode(), GetTLSADDR(), getTOCEntry(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getUniformBase(), getv64i1Argument(), getVAArg(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorCompareInfo(), llvm::TargetLowering::getVectorElementPointer(), getVectorMaskingNode(), getVectorShuffle(), getVShift(), getZeroExtendInReg(), getZeroExtendVectorInReg(), getZeroVector(), getZExtOrTrunc(), HandleMergeInputChains(), hasNonFlagsUse(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::IncrementMemoryAddress(), initAccumulator(), insert1BitVector(), InsertBitToMaskVector(), insertSubVector(), llvm::intCCToAVRCC(), isADDADDMUL(), isAddSubZExt(), isAnyConstantBuildVector(), isBooleanFlip(), isBSwapHWordElement(), isClampZeroToOne(), isConstantOrUndefBUILD_VECTOR(), isContractable(), isDivRemLibcallAvailable(), llvm::TargetLowering::isExtendedTrueVal(), isFloatingPointZero(), isFMulNegTwo(), isFusableLoadOpStorePattern(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::PPCTargetLowering::isLegalAddressingMode(), llvm::SelectionDAGISel::IsLegalToFold(), isLowerSaturatingConditional(), isMemOPCandidate(), isNegativeOne(), isNEONModifiedImm(), isPermutation(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isSlicingProfitable(), IsSmallObject(), isSortedByValueNo(), IsSplatValue(), isSplatVector(), isTargetConstant(), isTruncateOf(), isTruncWithZeroHighBitsInput(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorReductionOp(), isVShiftRImm(), isWordAligned(), isXor1OfSetCC(), joinDwords(), lower1BitVectorShuffle(), Lower256IntArith(), Lower256IntVSETCC(), Lower512IntArith(), LowerABS(), LowerADD_SUB(), LowerADDC_ADDE_SUBC_SUBE(), llvm::HexagonTargetLowering::LowerAddSubCarry(), LowerADDSUBCARRY(), LowerADJUST_TRAMPOLINE(), 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::LanaiTargetLowering::LowerBR_CC(), llvm::MSP430TargetLowering::LowerBR_CC(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBUILD_VECTOR(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), 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(), llvm::TargetLowering::LowerCallTo(), llvm::TargetLowering::lowerCmpEqZeroToCtlzSrl(), llvm::AMDGPUTargetLowering::LowerCONCAT_VECTORS(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORSvXi1(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::HexagonTargetLowering::LowerConstantPool(), LowerCTLZ(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), lowerCTPOP16BitElements(), lowerCTPOP32BitElements(), LowerCTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), lowerDSPIntr(), llvm::LanaiTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::SparcTargetLowering::LowerEH_SJLJ_LONGJMP(), llvm::SparcTargetLowering::LowerEH_SJLJ_SETJMP(), LowerEXTEND_VECTOR_INREG(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_SUBVECTOR(), LowerEXTRACT_VECTOR_ELT(), LowerEXTRACT_VECTOR_ELT_SSE4(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), LowerF64Op(), LowerFABSorFNEG(), llvm::AMDGPUTargetLowering::LowerFCEIL(), LowerFCOPYSIGN(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), LowerFGETSIGN(), llvm::AMDGPUTargetLowering::LowerFLOG(), llvm::AMDGPUTargetLowering::LowerFNEARBYINT(), llvm::Nios2TargetLowering::LowerFormalArguments(), 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(), LowerFP_EXTEND(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), llvm::AMDGPUTargetLowering::LowerFP_TO_SINT(), LowerFP_TO_SINT(), lowerFP_TO_SINT_STORE(), llvm::AMDGPUTargetLowering::LowerFP_TO_UINT(), LowerFPOWI(), llvm::LanaiTargetLowering::LowerFRAMEADDR(), llvm::AMDGPUTargetLowering::LowerFREM(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND32_16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), LowerFSINCOS(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), 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(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP64(), 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_LOHI(), lowerMUL_LOHI32(), LowerMULH(), llvm::R600TargetLowering::LowerOperation(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::HexagonTargetLowering::LowerPREFETCH(), LowerPREFETCH(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::HexagonTargetLowering::LowerREADCYCLECOUNTER(), lowerRegToMasks(), llvm::Nios2TargetLowering::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(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerSDIV(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::LanaiTargetLowering::LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSELECT_CC(), LowerSELECT_CC(), llvm::LanaiTargetLowering::LowerSETCC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerSETCCCARRY(), LowerShift(), LowerShiftParts(), llvm::MSP430TargetLowering::LowerShifts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), 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(), lowerToAddSubOrFMAddSub(), LowerToHorizontalOp(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), LowerToTLSGeneralDynamicModel32(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerTruncateVecI1(), LowerTruncateVectorStore(), 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(), lowerV16F32VectorShuffle(), lowerV16I32VectorShuffle(), lowerV16I8VectorShuffle(), lowerV2F64VectorShuffle(), lowerV2I64VectorShuffle(), lowerV2X128VectorShuffle(), lowerV4F32VectorShuffle(), lowerV4F64VectorShuffle(), lowerV4I32VectorShuffle(), lowerV4I64VectorShuffle(), lowerV4X128VectorShuffle(), lowerV8F32VectorShuffle(), lowerV8F64VectorShuffle(), lowerV8I16GeneralSingleInputVectorShuffle(), lowerV8I32VectorShuffle(), lowerV8I64VectorShuffle(), LowerVAARG(), LowerVASTART(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE_SHF(), lowerVECTOR_SHUFFLE_VSHF(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorAllZeroTest(), LowerVectorCTLZ_AVX512CDI(), LowerVectorCTLZInRegLUT(), LowerVectorCTPOP(), LowerVectorCTPOPBitmath(), LowerVectorCTPOPInRegLUT(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), LowerVectorIntUnary(), lowerVectorShuffleAsBitBlend(), lowerVectorShuffleAsBitMask(), lowerVectorShuffleAsBlend(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsBroadcast(), lowerVectorShuffleAsByteRotate(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsInsertPS(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsRotate(), lowerVectorShuffleAsShift(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleAsTruncBroadcast(), lowerVectorShuffleAsZeroOrAnyExtend(), lowerVectorShuffleToEXPAND(), lowerVectorShuffleWithPACK(), lowerVectorShuffleWithPERMV(), lowerVectorShuffleWithPSHUFB(), lowerVectorShuffleWithSHUFPD(), lowerVectorShuffleWithSHUFPS(), lowerVectorShuffleWithSSE4A(), lowerVectorShuffleWithUndefHalf(), lowerVectorShuffleWithUNPCK(), lowerVectorShuffleWithVPMOV(), llvm::HexagonTargetLowering::LowerVSELECT(), lowerVSELECTtoVectorShuffle(), LowerVSETCC(), LowerVSETCCWithSUBUS(), LowerWRITE_REGISTER(), lowerX86CmpEqZeroToCtlzSrl(), lowerX86FPLogicOp(), LowerXALUO(), LowerXOR(), LowerZERO_EXTEND_Mask(), llvm::SparcTargetLowering::makeAddress(), makeEquivalentMemoryOrdering(), llvm::SparcTargetLowering::makeHiLoPair(), matchPMADDWD(), matchPMADDWD_2(), matchRotateSub(), materializeSBB(), mayTailCallThisCC(), minMaxOpcToMin3Max3Opc(), moveBelowOrigChain(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), llvm::X86TargetLowering::needsFixedCatchObjects(), NegateCC(), optimizeLogicalImm(), packIntoRegLoc(), parseCachePolicy(), partitionShuffleOfConcats(), Passv64i1ArgInRegs(), performADDCombine(), PerformADDCombineWithOperands(), PerformAddcSubcCombine(), PerformAddeSubeCombine(), performAddSubLongCombine(), performANDCombine(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::performAssertSZExtCombine(), PerformBFICombine(), performBitcastCombine(), llvm::ARMTargetLowering::PerformBRCONDCombine(), performBRCONDCombine(), PerformBUILD_VECTORCombine(), llvm::ARMTargetLowering::PerformCMOVCombine(), performCMovFPCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), performCONDCombine(), llvm::R600TargetLowering::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(), llvm::AMDGPUTargetLowering::performLoadCombine(), performMADD_MSUBCombine(), performMulCombine(), PerformMULCombine(), llvm::AMDGPUTargetLowering::performMulhsCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), llvm::AMDGPUTargetLowering::performMulLoHi24Combine(), performORCombine(), PerformORCombine(), PerformORCombineToBFI(), PerformORCombineToSMULWBT(), PerformREMCombine(), llvm::AMDGPUTargetLowering::performSelectCombine(), performSELECTCombine(), performSelectCombine(), performSetccAddFolding(), performSETCCCombine(), PerformSETCCCombine(), PerformShiftCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), performSHLCombine(), PerformSHLSimplify(), llvm::AMDGPUTargetLowering::performSraCombine(), performSRACombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), performSRLCombine(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), performTBZCombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), PerformUMLALCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVDUPLANECombine(), PerformVECTOR_SHUFFLECombine(), performVectorCompareAndMaskUnaryOpCombine(), PerformVMOVDRRCombine(), PerformVMULCombine(), performVSELECTCombine(), performVSelectCombine(), performXORCombine(), performXorCombine(), PrepareCall(), PrepareTailCall(), promoteExtBeforeAdd(), promoteToConstantPool(), llvm::AArch64TargetLowering::ReconstructShuffle(), recoverFramePointer(), reduceMaskedLoadToScalarLoad(), reduceMaskedStoreToScalarStore(), reduceVMULWidth(), ReorganizeVector(), ReplaceAllUsesWith(), ReplaceBITCASTResults(), replaceInChain(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::AVRTargetLowering::ReplaceNodeResults(), llvm::XCoreTargetLowering::ReplaceNodeResults(), llvm::SparcTargetLowering::ReplaceNodeResults(), llvm::SITargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), ReplaceReductionResults(), replaceShuffleOfInsert(), llvm::TargetLowering::scalarizeVectorLoad(), llvm::TargetLowering::scalarizeVectorStore(), llvm::HexagonDAGToDAGISel::SelectIntrinsicWOChain(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), shouldGuaranteeTCO(), llvm::TargetLowering::ShrinkDemandedConstant(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), llvm::AMDGPUTargetLowering::split64BitValue(), SplitAndExtendv16i1(), splitAndLowerVectorShuffle(), llvm::AMDGPUTargetLowering::splitBinaryBitConstantOpImpl(), llvm::SITargetLowering::splitBinaryVectorOp(), splitInt128(), SplitOpsAndApply(), splitStores(), splitStoreSplat(), llvm::SITargetLowering::splitUnaryVectorOp(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), SplitVSETCC(), stripModuloOnShift(), llvm::X86TargetLowering::targetShrinkDemandedConstant(), truncateVecElts(), truncateVectorWithPACK(), tryAdvSIMDModImm16(), tryAdvSIMDModImm32(), tryAdvSIMDModImm321s(), tryAdvSIMDModImm64(), tryAdvSIMDModImm8(), tryAdvSIMDModImmFP(), tryBuildVectorReplicate(), tryCombineCRC32(), tryCombineFixedPointConvert(), tryCombineLongOpWithDup(), tryCombineShiftImm(), tryCombineToBSL(), tryCombineToEXTR(), tryExtendDUPToExtractHigh(), tryFoldToZero(), tryFormConcatFromShuffle(), tryLowerToSLI(), TryMULWIDECombine(), tryToFoldExtendOfConstant(), tryToFoldExtOfLoad(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromRegLoc(), llvm::SelectionDAGBuilder::UpdateSplitBlock(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), WidenMaskArithmetic(), widenSubVector(), WidenVector(), willShiftRightEliminate(), WinDBZCheckDenominator(), and XFormVExtractWithShuffleIntoLoad().

◆ getNode() [2/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
ArrayRef< SDValue >  Ops,
const SDNodeFlags  Flags = SDNodeFlags() 
)

◆ getNode() [3/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
ArrayRef< EVT >  ResultTys,
ArrayRef< SDValue >  Ops 
)

Definition at line 6716 of file SelectionDAG.cpp.

References getNode(), and getVTList().

◆ getNode() [4/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
ArrayRef< SDValue >  Ops 
)

◆ getNode() [5/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT 
)

Gets or creates the specified node.

Definition at line 3751 of file SelectionDAG.cpp.

References AddNodeIDNode(), E, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getVTList(), NewSDValueDbgMsg(), and llvm::None.

◆ getNode() [6/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDValue  Operand,
const SDNodeFlags  Flags = SDNodeFlags() 
)

Definition at line 3768 of file SelectionDAG.cpp.

References llvm::ISD::ABS, llvm::APInt::abs(), AddNodeIDNode(), llvm::ISD::ANY_EXTEND, 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::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, 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::FSUB, 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(), getTarget(), getUNDEF(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::APInt::getZExtValue(), llvm::MVT::Glue, llvm::SDNodeFlags::hasNoSignedZeros(), 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_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::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, and llvm::APInt::zextOrTrunc().

◆ getNode() [7/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
const SDNodeFlags  Flags = SDNodeFlags() 
)

Definition at line 4411 of file SelectionDAG.cpp.

References llvm::ISD::ADD, llvm::APFloat::add(), llvm::ISD::ADDC, llvm::ISD::ADDE, 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::APFloat::convert(), llvm::APFloat::copySign(), llvm::APFloat::divide(), llvm::dyn_cast(), E, llvm::ISD::EntryToken, EVTToAPFloatSemantics(), 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, FoldCONCAT_VECTORS(), FoldConstantArithmetic(), llvm::ISD::FP_ROUND, llvm::ISD::FP_ROUND_INREG, llvm::ISD::FREM, llvm::ISD::FSUB, getAllOnesConstant(), getAnyExtOrTrunc(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), getBuildVector(), getConstant(), getConstantFP(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::APFloat::getNaN(), llvm::SDValue::getNode(), getNode(), llvm::SDValue::getNumOperands(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::EVT::getScalarSizeInBits(), 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::TargetLoweringBase::hasFloatingPointExceptions(), 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::APFloat::mod(), llvm::ISD::MUL, llvm::ISD::MULHS, llvm::ISD::MULHU, llvm::APFloat::multiply(), N, NewSDValueDbgMsg(), llvm::APFloatBase::opDivByZero, llvm::APFloatBase::opInvalidOp, llvm::ISD::OR, llvm::MVT::Other, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::APFloatBase::rmNearestTiesToEven, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SDIV, llvm::SDNode::setFlags(), llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SRA, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SUB, llvm::APFloat::subtract(), std::swap(), llvm::ISD::TokenFactor, llvm::APInt::trunc(), llvm::ISD::UDIV, llvm::ISD::UMAX, llvm::ISD::UMIN, llvm::ISD::UREM, llvm::NVPTX::PTXLdStInstCode::V2, and llvm::ISD::XOR.

◆ getNode() [8/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDValue  N3,
const SDNodeFlags  Flags = SDNodeFlags() 
)

◆ getNode() [9/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDValue  N3,
SDValue  N4 
)

Definition at line 5006 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [10/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDValue  N3,
SDValue  N4,
SDValue  N5 
)

Definition at line 5012 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [11/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList 
)

Definition at line 6771 of file SelectionDAG.cpp.

References getNode(), and llvm::None.

◆ getNode() [12/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
SDValue  N 
)

Definition at line 6776 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [13/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
SDValue  N1,
SDValue  N2 
)

Definition at line 6782 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [14/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
SDValue  N1,
SDValue  N2,
SDValue  N3 
)

Definition at line 6788 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [15/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
SDValue  N1,
SDValue  N2,
SDValue  N3,
SDValue  N4 
)

Definition at line 6794 of file SelectionDAG.cpp.

References getNode().

◆ getNode() [16/16]

SDValue SelectionDAG::getNode ( unsigned  Opcode,
const SDLoc &  DL,
SDVTList  VTList,
SDValue  N1,
SDValue  N2,
SDValue  N3,
SDValue  N4,
SDValue  N5 
)

Definition at line 6800 of file SelectionDAG.cpp.

References getNode().

◆ getNodeIfExists()

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 7382 of file SelectionDAG.cpp.

References AddNodeIDNode(), E, llvm::MVT::Glue, llvm::SDVTList::NumVTs, and llvm::SDVTList::VTs.

Referenced by hasNonFlagsUse(), and isAnyConstantBuildVector().

◆ getNOT()

SDValue SelectionDAG::getNOT ( const SDLoc &  DL,
SDValue  Val,
EVT  VT 
)

◆ getObjectPtrOffset() [1/2]

SDValue llvm::SelectionDAG::getObjectPtrOffset ( const SDLoc &  SL,
SDValue  Op,
int64_t  Offset 
)
inline

◆ getObjectPtrOffset() [2/2]

SDValue llvm::SelectionDAG::getObjectPtrOffset ( const SDLoc &  SL,
SDValue  Op,
SDValue  Offset 
)
inline

◆ getORE()

OptimizationRemarkEmitter& llvm::SelectionDAG::getORE ( ) const
inline

Definition at line 405 of file SelectionDAG.h.

◆ getPass()

const Pass* llvm::SelectionDAG::getPass ( ) const
inline

◆ getRegister()

SDValue SelectionDAG::getRegister ( unsigned  Reg,
EVT  VT 
)

Definition at line 1744 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 >(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), ConvertCarryFlagToBooleanCarry(), createCMovFP(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), expandf64Toi32(), findUnwindDestinations(), findUser(), getAbsolute(), llvm::MipsTargetLowering::getAddrGPRel(), getAVX2GatherNode(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getEstimate(), getGatherNode(), llvm::MipsDAGToDAGISel::getGlobalBaseReg(), llvm::MipsTargetLowering::getGlobalReg(), llvm::ARMTargetLowering::getJumpTableEncoding(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), getPrefetchNode(), getReductionSDNode(), getScatterNode(), llvm::ARCTargetLowering::getTargetNodeName(), getTOCEntry(), llvm::MipsTargetLowering::getTypeForExtReturn(), getVectorCompareInfo(), getZeroVector(), isADDADDMUL(), isFloatingPointZero(), isLowerSaturatingConditional(), isXor1OfSetCC(), llvm::SITargetLowering::legalizeTargetIndependentNode(), LowerATOMIC_FENCE(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallResult(), LowerCallResult(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::LanaiTargetLowering::LowerConstantPool(), llvm::HexagonTargetLowering::LowerEH_RETURN(), lowerFCOPYSIGN64(), llvm::LanaiTargetLowering::LowerGlobalAddress(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), llvm::SparcTargetLowering::LowerINTRINSIC_WO_CHAIN(), llvm::LanaiTargetLowering::LowerJumpTable(), LowerMemOpCallTo(), llvm::BPFTargetLowering::LowerOperation(), llvm::Nios2TargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), LowerSETCCCARRY(), LowerVASTART(), mayTailCallThisCC(), llvm::X86TargetLowering::needsFixedCatchObjects(), packIntoRegLoc(), Passv64i1ArgInRegs(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), llvm::SITargetLowering::PostISelFolding(), PrepareCall(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::PPCTargetLowering::SelectAddressRegRegOnly(), llvm::SelectionDAGISel::SelectCodeCommon(), unpackF64OnRV32DSoftABI(), and UnpackFromArgumentSlot().

◆ getRegisterMask()

SDValue SelectionDAG::getRegisterMask ( const uint32_t *  RegMask)

◆ getRoot()

const SDValue& llvm::SelectionDAG::getRoot ( ) const
inline

◆ getSelect()

SDValue llvm::SelectionDAG::getSelect ( const SDLoc &  DL,
EVT  VT,
SDValue  Cond,
SDValue  LHS,
SDValue  RHS 
)
inline

◆ getSelectCC()

SDValue llvm::SelectionDAG::getSelectCC ( const SDLoc &  DL,
SDValue  LHS,
SDValue  RHS,
SDValue  True,
SDValue  False,
ISD::CondCode  Cond 
)
inline

◆ getSelectionDAGInfo()

const SelectionDAGTargetInfo& llvm::SelectionDAG::getSelectionDAGInfo ( ) const
inline

Definition at line 403 of file SelectionDAG.h.

Referenced by getMemCmpLoad().

◆ getSetCC()

SDValue llvm::SelectionDAG::getSetCC ( const SDLoc &  DL,
EVT  VT,
SDValue  LHS,
SDValue  RHS,
ISD::CondCode  Cond 
)
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 951 of file SelectionDAG.h.

References assert(), llvm::SDValue::getValueType(), llvm::EVT::isVector(), llvm::ISD::SETCC, and llvm::ISD::SETCC_INVALID.

Referenced by calculateByteProvider(), combineExtSetcc(), combineFMinNumFMaxNum(), combineSelect(), combineSetCC(), combineToExtendBoolVectorInReg(), combineVectorSizedSetCCEquality(), combineVSelectWithAllOnesOrZeros(), ConvertSelectToConcatVector(), EmitVectorComparison(), findUser(), foldExtendedSignBitTest(), FoldIntToFPToInt(), FoldSetCC(), foldXorTruncShiftIntoCmp(), getEstimate(), getExpandedMinMaxOps(), GetFPLibCall(), getFPTernOp(), getMemCmpLoad(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), getUnderlyingArgReg(), haveEfficientBuildVectorPattern(), llvm::TargetLowering::isExtendedTrueVal(), isTruncateOf(), isVectorReductionOp(), lower1BitVectorShuffle(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AMDGPUTargetLowering::LowerCTLZ_CTTZ(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::AMDGPUTargetLowering::LowerFCEIL(), llvm::AMDGPUTargetLowering::LowerFFLOOR(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::AMDGPUTargetLowering::LowerFRINT(), llvm::AMDGPUTargetLowering::LowerFROUND32_16(), llvm::AMDGPUTargetLowering::LowerFROUND64(), llvm::AMDGPUTargetLowering::LowerFTRUNC(), llvm::AMDGPUTargetLowering::LowerINT_TO_FP32(), LowerIntVSETCC_AVX512(), LowerMINMAX(), lowerMSABitClearImm(), LowerScalarImmediateShift(), llvm::HexagonTargetLowering::LowerSETCC(), LowerShift(), LowerShiftParts(), llvm::LanaiTargetLowering::LowerSHL_PARTS(), llvm::LanaiTargetLowering::LowerSRL_PARTS(), LowerTruncateVecI1(), lowerUINT_TO_FP_vec(), LowerUMULO_SMULO(), LowerVectorCTLZInRegLUT(), lowerVSELECTtoVectorShuffle(), llvm::AMDGPUTargetLowering::performSelectCombine(), performSELECTCombine(), performVSelectCombine(), PrepareCall(), replaceShuffleOfInsert(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), and llvm::SelectionDAGBuilder::visitSwitchCase().

◆ getSExtOrTrunc()

SDValue SelectionDAG::getSExtOrTrunc ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

◆ getShiftAmountOperand()

SDValue SelectionDAG::getShiftAmountOperand ( EVT  LHSTy,
SDValue  Op 
)

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 1880 of file SelectionDAG.cpp.

References getDataLayout(), llvm::TargetLoweringBase::getShiftAmountTy(), llvm::SDValue::getValueType(), getZExtOrTrunc(), and llvm::EVT::isVector().

◆ getSignExtendVectorInReg()

SDValue SelectionDAG::getSignExtendVectorInReg ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

Return an operation which will sign extend the low lanes of the operand into the specified vector type.

For example, this can convert a v16i8 into a v4i32 by sign extending the low four lanes of the operand from i8 to i32.

Definition at line 1132 of file SelectionDAG.cpp.

References assert(), getNode(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::EVT::isVector(), and llvm::ISD::SIGN_EXTEND_VECTOR_INREG.

Referenced by combineToExtendVectorInReg(), getExtendInVec(), isSETCCorConvertedSETCC(), isTruncateOf(), LowerLoad(), and LowerSIGN_EXTEND().

◆ getSplatBuildVector()

SDValue llvm::SelectionDAG::getSplatBuildVector ( EVT  VT,
const SDLoc &  DL,
SDValue  Op 
)
inline

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 746 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 ConstantBuildVector(), getConstant(), getConstantFP(), getMemsetValue(), getUniformBase(), getVectorShuffle(), and hasOnlySelectUsers().

◆ GetSplitDestVTs()

std::pair< EVT, EVT > SelectionDAG::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.

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 8455 of file SelectionDAG.cpp.

References llvm::EVT::getHalfNumVectorElementsVT(), and llvm::EVT::isVector().

Referenced by ConvertSelectToConcatVector(), ExtendUsesToFormExtLoad(), ReplaceReductionResults(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), and SplitVSETCC().

◆ getSrcValue()

SDValue SelectionDAG::getSrcValue ( const Value *  v)

◆ getStackArgumentTokenFactor()

SDValue SelectionDAG::getStackArgumentTokenFactor ( SDValue  Chain)

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 5021 of file SelectionDAG.cpp.

References getEntryNode(), getNode(), llvm::MVT::Other, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::ISD::TokenFactor.

Referenced by getMOVL(), and PrepareCall().

◆ getStore() [1/2]

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 6351 of file SelectionDAG.cpp.

References assert(), getEVTAlignment(), getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), InferPointerInfo(), llvm::PointerUnion< PT1, PT2 >::isNull(), llvm::MachineMemOperand::MOLoad, llvm::MachineMemOperand::MOStore, llvm::MVT::Other, and llvm::MachinePointerInfo::V.

Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::AArch64TargetLowering::CCAssignFnForReturn(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineStore(), createVirtualRegs(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), llvm::TargetLowering::expandUnalignedLoad(), llvm::TargetLowering::expandUnalignedStore(), expandVAArg(), expandVACopy(), findUnwindDestinations(), getAbsolute(), getAddressForMemoryInput(), getExpandedMinMaxOps(), GetFPLibCall(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMOVL(), getNextIntArgReg(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), GetPromotionOpcode(), getReadTimeStampCounter(), llvm::ARCTargetLowering::getTargetNodeName(), getTruncStore(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getVectorCompareInfo(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::intCCToAVRCC(), isADDADDMUL(), isSortedByValueNo(), isXor1OfSetCC(), 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(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), LowerF128Store(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerFP_TO_SINT_STORE(), LowerI64IntToFP_AVX512DQ(), LowerINTRINSIC_W_CHAIN(), LowerMemOpCallTo(), lowerMSAStoreIntr(), LowerMULH(), llvm::RISCVTargetLowering::LowerOperation(), LowerSTORE(), LowerStore(), LowerTruncateVectorStore(), lowerUINT_TO_FP_vec(), LowerVAARG(), llvm::LanaiTargetLowering::LowerVASTART(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), LowerVASTART(), mayTailCallThisCC(), memsetStore(), llvm::X86TargetLowering::needsFixedCatchObjects(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformSTORECombine(), PrepareCall(), reduceMaskedStoreToScalarStore(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::TargetLowering::scalarizeVectorStore(), ShrinkLoadReplaceStoreWithStore(), spillIncomingStatepointValue(), splitStores(), splitStoreSplat(), llvm::HexagonDAGToDAGISel::StoreInstrForLoadIntrinsic(), llvm::AMDGPUTargetLowering::storeStackInputValue(), StoreTailCallArgumentsToStackSlot(), and unpackF64OnRV32DSoftABI().

◆ getStore() [2/2]

SDValue SelectionDAG::getStore ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Val,
SDValue  Ptr,
MachineMemOperand *  MMO 
)

◆ getSubtarget()

const TargetSubtargetInfo& llvm::SelectionDAG::getSubtarget ( ) const
inline

◆ getTarget()

const TargetMachine& llvm::SelectionDAG::getTarget ( ) const
inline

◆ getTargetBlockAddress()

SDValue llvm::SelectionDAG::getTargetBlockAddress ( const BlockAddress *  BA,
EVT  VT,
int64_t  Offset = 0,
unsigned char  TargetFlags = 0 
)
inline

◆ getTargetConstant() [1/3]

SDValue llvm::SelectionDAG::getTargetConstant ( uint64_t  Val,
const SDLoc &  DL,
EVT  VT,
bool  isOpaque = false 
)
inline

Definition at line 571 of file SelectionDAG.h.

References getConstant().

Referenced by llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), llvm::AVRDAGToDAGISel::select< ISD::STORE >(), llvm::SITargetLowering::buildRSRC(), buildSMovImm32(), CallingConvSupported(), createGPRPairNode(), createVirtualRegs(), llvm::HexagonDAGToDAGISel::DetectUseSxtw(), findUser(), llvm::PPC::get_VSPLTI_elt(), getAL(), getAVX2GatherNode(), getCopyFromParts(), getEstimate(), getFPTernOp(), getGatherNode(), getIntOperandsFromRegisterString(), getLeftShift(), getMad64_32(), getPrefetchNode(), getPTXCmpMode(), getScatterNode(), getTargetExtractSubreg(), getTargetInsertSubreg(), llvm::MipsTargetLowering::getTypeForExtReturn(), getUnderlyingArgReg(), getUniformBase(), getVAArg(), getVectorCompareInfo(), getZeroVector(), hasOnlySelectUsers(), isNEONModifiedImm(), isPermutation(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), llvm::SparcTargetLowering::LowerAsmOperandForConstraint(), llvm::LanaiTargetLowering::LowerAsmOperandForConstraint(), llvm::AVRTargetLowering::LowerAsmOperandForConstraint(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), llvm::SystemZTargetLowering::LowerAsmOperandForConstraint(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), LowerATOMIC_FENCE(), LowerBITCAST(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), LowerCMP_SWAP(), LowerCTTZ(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), lowerVECTOR_SHUFFLE_VSHF(), LowerVectorINT_TO_FP(), mayTailCallThisCC(), narrowIfNeeded(), optimizeLogicalImm(), parseCachePolicy(), Passv64i1ArgInRegs(), performBitcastCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), pickOpcodeForVT(), pushStackMapConstant(), ReplaceBITCASTResults(), llvm::AVRDAGToDAGISel::SelectAddr(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::HexagonDAGToDAGISel::SelectAnyImmediate(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectConstantFP(), llvm::HexagonDAGToDAGISel::SelectD2P(), llvm::HexagonDAGToDAGISel::SelectFrameIndex(), selectI64Imm(), selectI64ImmDirect(), 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(), SubIdx2Lane(), tryBitfieldInsertOpFromOr(), tryBitfieldInsertOpFromOrAndImm(), Widen(), and llvm::SITargetLowering::wrapAddr64Rsrc().

◆ getTargetConstant() [2/3]

SDValue llvm::SelectionDAG::getTargetConstant ( const APInt &  Val,
const SDLoc &  DL,
EVT  VT,
bool  isOpaque = false 
)
inline

Definition at line 575 of file SelectionDAG.h.

References getConstant().

◆ getTargetConstant() [3/3]

SDValue llvm::SelectionDAG::getTargetConstant ( const ConstantInt &  Val,
const SDLoc &  DL,
EVT  VT,
bool  isOpaque = false 
)
inline

Definition at line 579 of file SelectionDAG.h.

References getConstant().

◆ getTargetConstantFP() [1/3]

SDValue llvm::SelectionDAG::getTargetConstantFP ( double  Val,
const SDLoc &  DL,
EVT  VT 
)
inline

◆ getTargetConstantFP() [2/3]

SDValue llvm::SelectionDAG::getTargetConstantFP ( const APFloat &  Val,
const SDLoc &  DL,
EVT  VT 
)
inline

Definition at line 606 of file SelectionDAG.h.

◆ getTargetConstantFP() [3/3]

SDValue llvm::SelectionDAG::getTargetConstantFP ( const ConstantFP &  Val,
const SDLoc &  DL,
EVT  VT 
)
inline

Definition at line 609 of file SelectionDAG.h.

◆ getTargetConstantPool() [1/2]

SDValue llvm::SelectionDAG::getTargetConstantPool ( const Constant *  C,
EVT  VT,
unsigned  Align = 0,
int  Offset = 0,
unsigned char  TargetFlags = 0 
)
inline

◆ getTargetConstantPool() [2/2]

SDValue llvm::SelectionDAG::getTargetConstantPool ( MachineConstantPoolValue *  C,
EVT  VT,
unsigned  Align = 0,
int  Offset = 0,
unsigned char  TargetFlags = 0 
)
inline

Definition at line 642 of file SelectionDAG.h.

References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, and Reg.

◆ getTargetExternalSymbol()

SDValue SelectionDAG::getTargetExternalSymbol ( const char *  Sym,
EVT  VT,
unsigned char  TargetFlags = 0 
)

◆ getTargetExtractSubreg()

SDValue SelectionDAG::getTargetExtractSubreg ( int  SRIdx,
const SDLoc &  DL,
EVT  VT,
SDValue  Operand 
)

◆ getTargetFrameIndex()

SDValue llvm::SelectionDAG::getTargetFrameIndex ( int  FI,
EVT  VT 
)
inline

◆ getTargetGlobalAddress()

SDValue llvm::SelectionDAG::getTargetGlobalAddress ( const GlobalValue *  GV,
const SDLoc &  DL,
EVT  VT,
int64_t  offset = 0,
unsigned char  TargetFlags = 0 
)
inline

Definition at line 617 of file SelectionDAG.h.

Referenced by addStackMapLiveVars(), llvm::analyzeArguments(), AnalyzeReturnValues(), buildPCRelGlobalAddress(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), llvm::MipsTargetLowering::EmitInstrWithCustomInserter(), getAbsolute(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getEstimate(), llvm::MipsTargetLowering::getGlobalReg(), getMOVL(), llvm::MipsTargetLowering::getOpndList(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::AVRTargetLowering::getSetCCResultType(), llvm::BPFTargetLowering::getTargetNodeName(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getUnderlyingArgReg(), llvm::ARCTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::isReadOnly(), IsSmallObject(), isTargetConstant(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), llvm::HexagonTargetLowering::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(), llvm::RISCVTargetLowering::LowerOperation(), LowerToTLSExecModel(), llvm::HexagonTargetLowering::LowerToTLSGeneralDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSInitialExecModel(), LowerToTLSLocalDynamicModel(), llvm::HexagonTargetLowering::LowerToTLSLocalExecModel(), LowerWRITE_REGISTER(), mayTailCallThisCC(), PrepareCall(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::HexagonDAGToDAGISel::SelectGlobalAddress(), unpackF64OnRV32DSoftABI(), and llvm::SparcTargetLowering::withTargetFlags().

◆ getTargetIndex()

SDValue SelectionDAG::getTargetIndex ( int  Index,
EVT  VT,
int64_t  Offset = 0,
unsigned char  TargetFlags = 0 
)

◆ getTargetInsertSubreg()

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 7372 of file SelectionDAG.cpp.

References getMachineNode(), getTargetConstant(), llvm::MVT::i32, and Result.

Referenced by getAbsolute(), isPreferredADD(), LowerF64Op(), and mayTailCallThisCC().

◆ getTargetJumpTable()

SDValue llvm::SelectionDAG::getTargetJumpTable ( int  JTI,
EVT  VT,
unsigned char  TargetFlags = 0 
)
inline

◆ getTargetLoweringInfo()

const TargetLowering& llvm::SelectionDAG::getTargetLoweringInfo ( ) const
inline

Definition at line 401 of file SelectionDAG.h.

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineToVPADD(), AddCombineVUZPToVPADDL(), llvm::RegsForValue::AddInlineAsmOperands(), addStackMapLiveVars(), buildFromShuffleMostly(), llvm::TargetLowering::BuildSDIVPow2(), calculateByteProvider(), canFoldInAddressingMode(), llvm::ARMTargetLowering::CCAssignFnForReturn(), combineBEXTR(), combineConcatVectorOfExtracts(), combineConcatVectorOfScalars(), combineFMA(), combineFMinNumFMaxNum(), combineFneg(), combineGatherScatter(), combineLoad(), combineLogicBlendIntoPBLENDV(), combineMaskedLoad(), combineMaskedStore(), combineMOVMSK(), combineMulToPMADDWD(), combineMulToPMULDQ(), combinePMULDQ(), combineSelect(), combineSelectOfTwoConstants(), combineShuffle(), combineShuffleToFMAddSub(), combineStore(), combineToExtendVectorInReg(), combineTruncatedArithmetic(), combineTruncateWithSat(), combineVSelectToShrunkBlend(), combineVSelectWithAllOnesOrZeros(), combineX86ShuffleChain(), ConvertCarryFlagToBooleanCarry(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), createVirtualRegs(), EltsFromConsecutiveLoads(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), ExpandBITCAST(), expandf64Toi32(), expandVAArg(), expandVACopy(), findUnwindDestinations(), FoldCONCAT_VECTORS(), FoldIntToFPToInt(), foldXorTruncShiftIntoCmp(), getAbsolute(), getAddressForMemoryInput(), getConstVector(), getCopyFromParts(), getCopyFromPartsVector(), llvm::SelectionDAGBuilder::getCopyFromRegs(), llvm::RegsForValue::getCopyFromRegs(), getCopyToParts(), getCopyToPartsVector(), llvm::RegsForValue::getCopyToRegs(), llvm::SelectionDAGBuilder::getFrameIndexTy(), getHexagonLowering(), getLimitedPrecisionExp2(), getLoadStackGuard(), getMad64_32(), getMemCmpLoad(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), GetNegatedExpression(), llvm::SDNode::getOperationName(), getUnderlyingArgReg(), getUniformBase(), llvm::SelectionDAGBuilder::getValueImpl(), hasNonFlagsUse(), hasOnlySelectUsers(), isAddSubOrSubAdd(), isBLACompatibleAddress(), isConsecutiveLSLoc(), isFloatingPointZero(), isKnownNeverSNan(), isLowerSaturatingConditional(), isVectorReductionOp(), isWordAligned(), isXor1OfSetCC(), LowerADDC_ADDE_SUBC_SUBE(), LowerADDSUBCARRY(), LowerATOMIC_STORE(), LowerBITCAST(), lowerBuildVectorAsBroadcast(), lowerBuildVectorToBitOp(), llvm::SelectionDAGBuilder::LowerCallTo(), LowerFPOWI(), LowerFSINCOS(), llvm::SelectionDAGBuilder::lowerInvokable(), LowerLoad(), LowerMemOpCallTo(), LowerMUL_LOHI(), LowerUINT_TO_FP_i64(), LowerVASTART(), lowerVectorShuffle(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsShift(), LowerVSETCC(), LowerXALUO(), LowerXOR(), llvm::BaseIndexOffset::match(), mayTailCallThisCC(), narrowExtractedVectorBinOp(), llvm::ScheduleDAGSDNodes::newSUnit(), patchMatchingInput(), PerformADDCombineWithOperands(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), performExtendCombine(), PerformExtendCombine(), PerformLOADCombine(), performORCombine(), PerformORCombine(), performSelectCombine(), PerformShiftCombine(), PerformSTORECombine(), performTBISimplification(), PerformVECTOR_SHUFFLECombine(), PerformXORCombine(), PrepareCall(), recoverFramePointer(), llvm::X86TargetLowering::ReplaceNodeResults(), selectI64Imm(), llvm::TargetLowering::CallLoweringInfo::setLibCallee(), llvm::SelectionDAGBuilder::ShouldEmitAsBranches(), shouldTransformMulToShiftsAddsSubs(), simplifyDivRem(), simplifyI24(), tryToElideArgumentCopy(), VerifyDAGDiverence(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorFailure(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), WidenMaskArithmetic(), WinDBZCheckDenominator(), and XFormVExtractWithShuffleIntoLoad().

◆ getTargetMemSDNode()

template<class TargetMemSDNode >
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 1624 of file SelectionDAG.h.

References llvm::FoldingSetNodeID::AddInteger(), llvm::FoldingSetNodeID::AddPointer(), E, llvm::MachinePointerInfo::getAddrSpace(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::MachineMemOperand::getPointerInfo(), llvm::FoldingSetImpl< T >::InsertNode(), N, and llvm::SDVTList::VTs.

Referenced by EmitMaskedTruncSStore(), EmitTruncSStore(), LowerMGATHER(), LowerMSCATTER(), and llvm::X86TargetLowering::ReplaceNodeResults().

◆ getTruncStore() [1/2]

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() 
)

◆ getTruncStore() [2/2]

SDValue SelectionDAG::getTruncStore ( SDValue  Chain,
const SDLoc &  dl,
SDValue  Val,
SDValue  Ptr,
EVT  SVT,
MachineMemOperand *  MMO 
)

◆ getUNDEF()

SDValue llvm::SelectionDAG::getUNDEF ( EVT  VT)
inline

Return an UNDEF node. UNDEF does not have a useful SDLoc.

Definition at line 865 of file SelectionDAG.h.

References llvm::ISD::UNDEF.

Referenced by addShuffleForVecExtend(), buildFromShuffleMostly(), buildMergeScalars(), buildScalarToVector(), buildVector(), calculateByteProvider(), CallingConvSupported(), canFoldInAddressingMode(), combineBasicSADPattern(), combineBitcast(), combineBitcastvxi1(), combineBVOfConsecutiveLoads(), combineConcatVectorOfExtracts(), combineExtractWithShuffle(), combineInsertSubvector(), combineMaskedLoad(), combineMaskedLoadConstantMask(), combineMaskedStore(), combineSetCCAtomicArith(), combineShuffleOfConcatUndef(), combineShuffleOfScalars(), combineStore(), combineTargetShuffle(), combineToExtendVectorInReg(), combineX86ShuffleChain(), combineX86ShufflesRecursively(), CompactSwizzlableVector(), concatSubVectors(), ConstantBuildVector(), convertLocVTToValVT(), convertShiftLeftToScale(), createMMXBuildVector(), createVirtualRegs(), EltsFromConsecutiveLoads(), emitNonHSAIntrinsicError(), emitRemovedIntrinsicError(), EmitTruncSStore(), ExpandBVWithShuffles(), ExpandHorizontalBinOp(), ExtendToType(), ExtractBitFromMaskVector(), findUser(), foldBitcastedFPLogic(), FoldCONCAT_VECTORS(), FoldConstantArithmetic(), FoldConstantVectorArithmetic(), FoldSetCC(), fp16SrcZerosHighBits(), getBuildDwordsVector(), getConstVector(), getCopyFromPartsVector(), getCopyToPartsVector(), getExpandedMinMaxOps(), getExtLoad(), GetFPLibCall(), getGeneralPermuteNode(), getLoad(), getMOVL(), getNode(), GetPromotionOpcode(), getShuffleScalarElt(), getShuffleVectorZeroOrUndef(), getStore(), llvm::SystemZTargetLowering::getTargetNodeName(), getTargetVShiftNode(), getTruncStore(), getUnderlyingArgReg(), llvm::SelectionDAGBuilder::getValueImpl(), getVectorShuffle(), hasOnlySelectUsers(), insert1BitVector(), isAddSubOrSubAdd(), isBooleanFlip(), isConstantOrUndefBUILD_VECTOR(), isHorizontalBinOp(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), isTruncateOf(), isTruncWithZeroHighBitsInput(), joinDwords(), LowerAsSplatVectorLoad(), LowerAVXCONCAT_VECTORS(), LowerAVXExtend(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBITREVERSE_XOP(), LowerBUILD_VECTORAsVariablePermute(), LowerBUILD_VECTORvXi1(), LowerBuildVectorv16i8(), llvm::HexagonTargetLowering::LowerCONCAT_VECTORS(), LowerCONCAT_VECTORS(), LowerCONCAT_VECTORSvXi1(), LowerEXTEND_VECTOR_INREG(), LowerEXTRACT_SUBVECTOR(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), LowerFP_EXTEND(), LowerI64IntToFP_AVX512DQ(), llvm::MipsTargetLowering::lowerLOAD(), LowerLoad(), LowerMSCATTER(), LowerSCALAR_TO_VECTOR(), LowerShift(), lowerShuffleAsRepeatedMaskAndLanePermute(), LowerSIGN_EXTEND(), LowerSIGN_EXTEND_Mask(), LowerStore(), LowerTruncateVecI1(), LowerTruncateVectorStore(), lowerUINT_TO_FP_v2i32(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), lowerV16I8VectorShuffle(), lowerV2F64VectorShuffle(), lowerV2X128VectorShuffle(), lowerV4X128VectorShuffle(), llvm::HexagonTargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), lowerVectorShuffle(), lowerVectorShuffleAsBlend(), lowerVectorShuffleAsBlendAndPermute(), lowerVectorShuffleAsBlendOfPSHUFBs(), lowerVectorShuffleAsDecomposedShuffleBlend(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsLanePermuteAndBlend(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleByMerging128BitLanes(), lowerVectorShuffleWithPSHUFB(), lowerVectorShuffleWithSSE4A(), lowerVectorShuffleWithUndefHalf(), LowerZERO_EXTEND_Mask(), matchBinaryPermuteVectorShuffle(), matchBinaryVectorShuffle(), matchVectorShuffleAsInsertPS(), matchVectorShuffleWithUNPCK(), mayTailCallThisCC(), narrowExtractedVectorLoad(), parseCachePolicy(), partitionShuffleOfConcats(), PerformARMBUILD_VECTORCombine(), llvm::R600TargetLowering::PerformDAGCombine(), PerformSTORECombine(), PerformVECTOR_SHUFFLECombine(), PrepareCall(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), ReplaceBITCASTResults(), llvm::X86TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifyDemandedVectorElts(), simplifyDivRem(), llvm::TargetLowering::SimplifySetCC(), splitAndLowerVectorShuffle(), SplitVSETCC(), tryBuildVectorShuffle(), tryFoldToZero(), tryToFoldExtendOfConstant(), widenSubVector(), WidenVector(), and XFormVExtractWithShuffleIntoLoad().

◆ getVAArg()

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 6633 of file SelectionDAG.cpp.

References getNode(), getTargetConstant(), getVTList(), llvm::MVT::i32, llvm::MVT::Other, and llvm::ISD::VAARG.

Referenced by createVirtualRegs(), and GetFPLibCall().

◆ getValueType()

SDValue SelectionDAG::getValueType ( EVT  VT)

Definition at line 1499 of file SelectionDAG.cpp.

References llvm::EVT::getSimpleVT(), llvm::EVT::isExtended(), llvm::EVT::isSimple(), and llvm::MVT::SimpleTy.

Referenced by llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::X86TargetLowering::BuildFILD(), calculateByteProvider(), CC_Lanai32_VarArg(), combineShiftRightArithmetic(), combineVectorTruncationWithPACKSS(), ConstantAddressBlock(), convertLocVTToValVT(), llvm::SITargetLowering::copyToM0(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), EnsureStackAlignment(), llvm::PPCTargetLowering::expandVSXStoreForLE(), foldExtendedSignBitTest(), getAArch64Cmp(), getCopyFromParts(), llvm::RegsForValue::getCopyFromRegs(), llvm::DAGTypeLegalizer::getDAG(), getExpandedMinMaxOps(), getLoadExtOrTrunc(), getNode(), llvm::MipsTargetLowering::getOpndList(), getPermuteMask(), getVectorCompareInfo(), isAnyConstantBuildVector(), isSortedByValueNo(), isSplatVector(), isTruncateOf(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SITargetLowering::LowerCallResult(), llvm::AMDGPUTargetLowering::LowerDIVREM24(), llvm::Nios2TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerMSACopyIntr(), llvm::BPFTargetLowering::LowerOperation(), llvm::SelectionDAGBuilder::lowerRangeToAssertZExt(), llvm::MSP430TargetLowering::LowerSIGN_EXTEND(), llvm::AMDGPUTargetLowering::LowerSIGN_EXTEND_INREG(), lowerUINT_TO_FP_vec(), LowerVASTART(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), PrepareCall(), llvm::R600TargetLowering::ReplaceNodeResults(), UnpackFromArgumentSlot(), and WidenMaskArithmetic().

◆ getVectorShuffle()

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 1561 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(), BuildVSLDOI(), combineBasicSADPattern(), combineBVOfConsecutiveLoads(), combineConcatVectorOfExtracts(), combineHorizontalMinMaxResult(), combineInsertSubvector(), combineMaskedLoad(), combineMaskedStore(), combineSelect(), combineShuffle(), combineShuffleOfConcatUndef(), combineShuffleOfSplat(), combineStore(), combineToExtendBoolVectorInReg(), convertShiftLeftToScale(), createVariablePermute(), EltsFromConsecutiveLoads(), ExpandBVWithShuffles(), ExtractBitFromMaskVector(), foldBitcastedFPLogic(), GeneratePerfectShuffle(), getCommutedVectorShuffle(), getExpandedMinMaxOps(), getMOVL(), getShuffleVectorZeroOrUndef(), getUnpackh(), getUnpackl(), getVectorCompareInfo(), hasOnlySelectUsers(), InsertBitToMaskVector(), isBSwapHWordElement(), isSETCCorConvertedSETCC(), IsSingleInstrConstant(), lower1BitVectorShuffle(), lower256BitVectorShuffle(), LowerAsSplatVectorLoad(), LowerBUILD_VECTORAsVariablePermute(), LowerBuildVectorv4x32(), LowerEXTEND_VECTOR_INREG(), LowerLoad(), LowerMUL(), LowerMUL_LOHI(), LowerMULH(), LowerRotate(), LowerScalarImmediateShift(), LowerShift(), lowerShuffleAsRepeatedMaskAndLanePermute(), LowerSIGN_EXTEND(), LowerTruncateVecI1(), LowerUINT_TO_FP_i64(), lowerV16I8VectorShuffle(), lowerV2I64VectorShuffle(), lowerV4I32VectorShuffle(), lowerVectorShuffle(), lowerVectorShuffleAsBlendAndPermute(), lowerVectorShuffleAsDecomposedShuffleBlend(), lowerVectorShuffleAsElementInsertion(), lowerVectorShuffleAsLanePermuteAndBlend(), lowerVectorShuffleAsPermuteAndUnpack(), lowerVectorShuffleAsSpecificZeroOrAnyExtend(), lowerVectorShuffleByMerging128BitLanes(), lowerVectorShuffleWithUndefHalf(), lowerVSELECTtoVectorShuffle(), LowerVSETCC(), partitionShuffleOfConcats(), performConcatVectorsCombine(), performSelectCombine(), PerformSTORECombine(), PerformVECTOR_SHUFFLECombine(), llvm::AArch64TargetLowering::ReconstructShuffle(), reduceVMULWidth(), replaceShuffleOfInsert(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), splitAndLowerVectorShuffle(), truncateVectorWithPACK(), and XFormVExtractWithShuffleIntoLoad().

◆ getVRegDbgValue()

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 7432 of file SelectionDAG.cpp.

References assert(), llvm::SDDbgInfo::getAlloc(), and llvm::SDDbgValue::VREG.

Referenced by getUnderlyingArgReg().

◆ getVTList() [1/5]

SDVTList SelectionDAG::getVTList ( EVT  VT)

Return an SDVTList that represents the list of values specified.

Definition at line 6807 of file SelectionDAG.cpp.

References makeVTList().

Referenced by AddCombineTo64bitMLAL(), AddCombineTo64BitSMLAL16(), AddCombineTo64bitUMAAL(), addStackMapLiveVars(), adjustLoadValueTypeImpl(), llvm::analyzeArguments(), AnalyzeReturnValues(), llvm::X86TargetLowering::BuildFILD(), llvm::TargetLowering::BuildUDIV(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), checkVSELConstraints(), CloneNodeWithValues(), combineADC(), combineAddOrSubToADCOrSBB(), CombineBaseUpdate(), combineBVOfVecSExt(), combineSBB(), CombineVLDDUP(), ConstantBuildVector(), ConvertBooleanCarryToCarryFlag(), ConvertCarryFlagToBooleanCarry(), ConvertSelectToConcatVector(), createLoadLR(), createStoreLR(), createVirtualRegs(), EltsFromConsecutiveLoads(), emitCLC(), emitComparison(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), emitIntrinsicWithCCAndChain(), EmitKTEST(), EmitMaskedTruncSStore(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), EmitTruncSStore(), Expand64BitShift(), ExpandBITCAST(), expandf64Toi32(), llvm::TargetLowering::expandMUL_LOHI(), ExpandREAD_REGISTER(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), findUser(), GeneratePerfectShuffle(), getAArch64XALUOOp(), getAbsolute(), llvm::MipsTargetLowering::getAddrGPRel(), getAddrSpaceCast(), getAsCarry(), getAtomic(), getAVX2GatherNode(), getBasicBlock(), getBlockAddress(), getBoundedStrlen(), getConstant(), getConstantFP(), getConstantPool(), llvm::RegsForValue::getCopyFromRegs(), getDivRem8(), getDivRemArgList(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getExpandedMinMaxOps(), getExtendedControlRegister(), getFPBinOp(), getFPTernOp(), getFrameIndex(), getGatherNode(), getGlobalAddress(), getIndexedStore(), getJumpTable(), llvm::ARMTargetLowering::getJumpTableEncoding(), getLabelNode(), getLoad(), getMachineNode(), getMad64_32(), getMaskedLoad(), getMaskedStore(), getMDNode(), getMergeValues(), getMOVL(), getMul24(), getNode(), llvm::MipsTargetLowering::getOpndList(), getReadPerformanceCounter(), getReadTimeStampCounter(), getReductionSDNode(), getRegister(), getRegisterMask(), getScatterNode(), getSrcValue(), getStore(), getTargetIndex(), llvm::ARCTargetLowering::getTargetNodeName(), GetTLSADDR(), getTOCEntry(), getTruncStore(), getUnderlyingArgReg(), getUniformBase(), getVAArg(), getVectorCompareInfo(), getVectorShuffle(), hasNonFlagsUse(), hasOnlySelectUsers(), haveEfficientBuildVectorPattern(), llvm::intCCToAVRCC(), isADDADDMUL(), isDivRemLibcallAvailable(), isFloatingPointZero(), llvm::ARMTargetLowering::isReadOnly(), isSETCCorConvertedSETCC(), isTruncateOf(), isTruncWithZeroHighBitsInput(), isWordAligned(), isXor1OfSetCC(), LowerABS(), LowerADDC_ADDE_SUBC_SUBE(), 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(), llvm::TargetLowering::LowerCallTo(), LowerCMP_SWAP(), LowerCTLZ(), LowerCTTZ(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), llvm::SparcTargetLowering::LowerEH_SJLJ_SETJMP(), LowerFSINCOS(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), LowerMGATHER(), LowerMSCATTER(), LowerMUL_LOHI(), llvm::BPFTargetLowering::LowerOperation(), llvm::RISCVTargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerOperation(), llvm::SystemZTargetLowering::LowerOperationWrapper(), llvm::HexagonTargetLowering::LowerREADCYCLECOUNTER(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::AMDGPUTargetLowering::LowerSDIVREM(), llvm::LanaiTargetLowering::LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), LowerSETCCCARRY(), LowerToTLSExecModel(), llvm::AMDGPUTargetLowering::LowerUDIVREM64(), lowerUINT_TO_FP_vec(), LowerVECTOR_SHUFFLE(), LowerVectorINT_TO_FP(), LowerXALUO(), mayTailCallThisCC(), mutateStrictFPToFP(), llvm::X86TargetLowering::needsFixedCatchObjects(), NegateCC(), packIntoRegLoc(), llvm::ARMTargetLowering::PerformCMOVCombine(), performCONDCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performIntegerAbsCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), PerformSETCCCombine(), PerformUMLALCombine(), PerformVDUPCombine(), pickOpcodeForVT(), PrepareCall(), recoverFramePointer(), ReplaceCMP_SWAP_128Results(), ReplaceCMP_SWAP_64Results(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), ReplaceLongIntrinsic(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), llvm::SelectionDAGISel::SelectCodeCommon(), SelectNodeTo(), llvm::HexagonDAGToDAGISel::SelectTypecast(), SubIdx2Lane(), unpackF64OnRV32DSoftABI(), and llvm::SelectionDAGBuilder::visitBitTestCase().

◆ getVTList() [2/5]

SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2 
)

◆ getVTList() [3/5]

SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2,
EVT  VT3 
)

◆ getVTList() [4/5]

SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2,
EVT  VT3,
EVT  VT4 
)

◆ getVTList() [5/5]

SDVTList SelectionDAG::getVTList ( ArrayRef< EVT >  VTs)

◆ getZeroExtendInReg()

SDValue SelectionDAG::getZeroExtendInReg ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

◆ getZeroExtendVectorInReg()

SDValue SelectionDAG::getZeroExtendVectorInReg ( SDValue  Op,
const SDLoc &  DL,
EVT  VT 
)

Return an operation which will zero extend the low lanes of the operand into the specified vector type.

For example, this can convert a v16i8 into a v4i32 by zero extending the low four lanes of the operand from i8 to i32.

Definition at line 1143 of file SelectionDAG.cpp.

References assert(), getNode(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::EVT::isVector(), and llvm::ISD::ZERO_EXTEND_VECTOR_INREG.

Referenced by combineToExtendVectorInReg(), getExtendInVec(), getTargetVShiftNode(), and isSETCCorConvertedSETCC().

◆ getZExtOrTrunc()

SDValue SelectionDAG::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.

Definition at line 1094 of file SelectionDAG.cpp.

References llvm::EVT::bitsGT(), getNode(), llvm::SDValue::getValueType(), llvm::ISD::TRUNCATE, and llvm::ISD::ZERO_EXTEND.

Referenced by combineAddOrSubToADCOrSBB(), combineAndLoadToBZHI(), combineBitcast(), combineBitcastvxi1(), combineCompareEqual(), combineExtractWithShuffle(), combineMinNumMaxNum(), combineSelect(), combineShuffleOfScalars(), combineSubToSubus(), createVariablePermute(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen(), llvm::TargetLowering::expandFP_TO_SINT(), foldAddSubBoolOfMaskedVal(), FoldCONCAT_VECTORS(), generateEquivalentSub(), getExpandedMinMaxOps(), getMad64_32(), getMemCmpLoad(), getShiftAmountOperand(), getUnderlyingArgReg(), llvm::TargetLowering::getVectorElementPointer(), hasOnlySelectUsers(), llvm::TargetLowering::IncrementMemoryAddress(), isTruncateOf(), llvm::SITargetLowering::isTypeDesirableForOp(), isVectorReductionOp(), llvm::HexagonTargetLowering::LowerBITCAST(), LowerBITCAST(), LowerBuildVectorv16i8(), LowerFGETSIGN(), llvm::AMDGPUTargetLowering::LowerFP_TO_FP16(), LowerINTRINSIC_W_CHAIN(), llvm::SystemZTargetLowering::LowerOperationWrapper(), lowerX86CmpEqZeroToCtlzSrl(), llvm::AMDGPUTargetLowering::performMulCombine(), llvm::AMDGPUTargetLowering::performMulhuCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), llvm::AMDGPUTargetLowering::performTruncateCombine(), llvm::X86TargetLowering::ReplaceNodeResults(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), tryFoldToZero(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), and llvm::SelectionDAGBuilder::visitJumpTableHeader().

◆ hasDebugValues()

bool llvm::SelectionDAG::hasDebugValues ( ) const
inline

Return true if there are any SDDbgValue nodes associated with this SelectionDAG.

Definition at line 1356 of file SelectionDAG.h.

References llvm::SDDbgInfo::empty().

Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().

◆ haveNoCommonBitsSet()

bool SelectionDAG::haveNoCommonBitsSet ( SDValue  A,
SDValue  B 
) const

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 3690 of file SelectionDAG.cpp.

References assert(), computeKnownBits(), and llvm::SDValue::getValueType().

Referenced by foldAddSubOfSignBit().

◆ InferPtrAlignment()

unsigned SelectionDAG::InferPtrAlignment ( SDValue  Ptr) const

◆ init()

void SelectionDAG::init ( MachineFunction &  NewMF,
OptimizationRemarkEmitter &  NewORE,
Pass *  PassPtr,
const TargetLibraryInfo *  LibraryInfo,
DivergenceAnalysis *  Divergence 
)

◆ isBaseWithConstantOffset()

bool SelectionDAG::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.

This handles the equivalence: X|Cst == X+Cst iff X&Cst = 0.

Definition at line 3612 of file SelectionDAG.cpp.

References llvm::ISD::ADD, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), MaskedValueIsZero(), and llvm::ISD::OR.

Referenced by getBaseWithConstantOffset(), isWordAligned(), LowerAsSplatVectorLoad(), replaceZeroVectorStore(), and llvm::AVRDAGToDAGISel::SelectAddr().

◆ isConstantFPBuildVectorOrConstantFP()

SDNode * SelectionDAG::isConstantFPBuildVectorOrConstantFP ( SDValue  N)

◆ isConstantIntBuildVectorOrConstantInt()

SDNode * SelectionDAG::isConstantIntBuildVectorOrConstantInt ( SDValue  N)

◆ isConstantValueOfAnyType()

bool llvm::SelectionDAG::isConstantValueOfAnyType ( SDValue  N)
inline
Returns
true if 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 1564 of file SelectionDAG.h.

References isConstantFPBuildVectorOrConstantFP().

Referenced by llvm::AMDGPUTargetLowering::performSelectCombine().

◆ isEqualTo()

bool SelectionDAG::isEqualTo ( SDValue  A,
SDValue  B 
) const

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 3675 of file SelectionDAG.cpp.

Referenced by combineSelect().

◆ isKnownNeverNaN()

bool SelectionDAG::isKnownNeverNaN ( SDValue  Op) const

Test whether the given SDValue is known to never be NaN.

Definition at line 3625 of file SelectionDAG.cpp.

References C, llvm::SDNode::getFlags(), getTarget(), and llvm::SDNodeFlags::hasNoNaNs().

Referenced by combineMinNumMaxNum(), combineSelect(), isCanonicalized(), and isKnownNeverSNan().

◆ isKnownNeverZero()

bool SelectionDAG::isKnownNeverZero ( SDValue  Op) const

◆ isKnownNeverZeroFloat()

bool SelectionDAG::isKnownNeverZeroFloat ( SDValue  Op) const

Test whether the given floating point SDValue is known to never be positive or negative zero.

Definition at line 3642 of file SelectionDAG.cpp.

References assert(), C, llvm::SDValue::getValueType(), and llvm::EVT::isFloatingPoint().

Referenced by combineSelect().

◆ isKnownToBeAPowerOfTwo()

bool SelectionDAG::isKnownToBeAPowerOfTwo ( SDValue  Val) const

◆ isUndef()

bool SelectionDAG::isUndef ( unsigned  Opcode,
ArrayRef< SDValue >  Ops 
)

◆ Legalize()

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 4729 of file LegalizeDAG.cpp.

References E, llvm::SmallPtrSetImpl< PtrType >::erase(), llvm::SmallPtrSetImpl< PtrType >::insert(), N, and llvm::SDNode::use_empty().

◆ LegalizeOp()

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.

Returns
true if 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 4778 of file LegalizeDAG.cpp.

References llvm::SmallPtrSetImpl< PtrType >::count(), and llvm::SmallPtrSetImpl< PtrType >::insert().

Referenced by isAnyConstantBuildVector().

◆ LegalizeTypes()

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 1114 of file LegalizeTypes.cpp.

References llvm::DAGTypeLegalizer::DAGTypeLegalizer().

◆ LegalizeVectors()

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 1216 of file LegalizeVectorOps.cpp.

◆ makeEquivalentMemoryOrdering()

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 8037 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(), lowerVectorShuffleAsBroadcast(), and narrowExtractedVectorLoad().

◆ MaskedValueIsZero()

bool SelectionDAG::MaskedValueIsZero ( SDValue  Op,
const APInt &  Mask,
unsigned  Depth = 0 
) const

◆ MorphNodeTo()

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 7123 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, isPodLike< T >::value >::push_back(), RemoveDeadNodes(), llvm::SDNode::use_empty(), and llvm::SDVTList::VTs.

Referenced by HandleMergeInputChains(), mutateStrictFPToFP(), SelectNodeTo(), and llvm::HexagonDAGToDAGISel::SelectTypecast().

◆ mutateStrictFPToFP()

SDNode * SelectionDAG::mutateStrictFPToFP ( SDNode *  Node)

◆ operator=()

SelectionDAG& llvm::SelectionDAG::operator= ( const SelectionDAG &  )
delete

◆ RemoveDeadNode()

void SelectionDAG::RemoveDeadNode ( SDNode *  N)

◆ RemoveDeadNodes() [1/2]

void SelectionDAG::RemoveDeadNodes ( )

◆ RemoveDeadNodes() [2/2]

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 677 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, isPodLike< T >::value >::push_back(), and llvm::SDNode::use_empty().

◆ ReplaceAllUsesOfValuesWith()

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 7877 of file SelectionDAG.cpp.

References llvm::SmallVectorTemplateCommon< T >::begin(), E, llvm::SmallVectorTemplateCommon< T >::end(), llvm::SDValue::getNode(), llvm::SDValue::getResNo(), llvm::SDUse::getResNo(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::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().

◆ ReplaceAllUsesOfValueWith()

void SelectionDAG::ReplaceAllUsesOfValueWith ( SDValue  From,
SDValue  To 
)

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 7728 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(), calculateByteProvider(), canFoldInAddressingMode(), combineSetCCAtomicArith(), combineSIntToFP(), combineVSelectToShrunkBlend(), ConvertSelectToConcatVector(), emitIntrinsicWithCCAndChain(), ExtendUsesToFormExtLoad(), findUser(), foldBitcastedFPLogic(), foldExtendedSignBitTest(), generateEquivalentSub(), getAbsolute(), getCCResult(), getDivRem8(), getInputChainForNode(), hasNonFlagsUse(), isAnyConstantBuildVector(), isSlicingProfitable(), isTruncateOf(), lowerAtomicArith(), LowerCMP_SWAP(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerLoad(), makeEquivalentMemoryOrdering(), mutateStrictFPToFP(), llvm::PPCTargetLowering::PerformDAGCombine(), performDivRemCombine(), performIntToFpCombine(), PerformORCombineToSMULWBT(), llvm::AMDGPUTargetLowering::performStoreCombine(), PerformVDUPCombine(), PrepareCall(), ReplaceAllUsesOfValuesWith(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::SelectionDAGISel::ReplaceUses(), ShrinkLoadReplaceStoreWithStore(), simplifyDivRem(), SkipExtensionForVMULL(), SubIdx2Lane(), tryToFoldExtOfExtload(), and tryToFoldExtOfLoad().

◆ ReplaceAllUsesWith() [1/3]

void SelectionDAG::ReplaceAllUsesWith ( SDValue  FromN,
SDValue  To 
)

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 7578 of file SelectionDAG.cpp.

References assert(), 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(), findUser(), foldMaskAndShiftToExtract(), foldMaskAndShiftToScale(), foldMaskedShiftToScaledMask(), isAnyConstantBuildVector(), isMemOPCandidate(), isTargetConstant(), llvm::SITargetLowering::legalizeTargetIndependentNode(), LowerMSCATTER(), mutateStrictFPToFP(), PerformBFICombine(), performCONDCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), PerformSHLSimplify(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), llvm::SelectionDAGISel::ReplaceNode(), llvm::SelectionDAGISel::ReplaceUses(), SelectNodeTo(), simplifyDivRem(), SubIdx2Lane(), and VerifySDNode().

◆ ReplaceAllUsesWith() [2/3]

void SelectionDAG::ReplaceAllUsesWith ( SDNode *  From,
SDNode *  To 
)

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 7629 of file SelectionDAG.cpp.

References assert(), 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() [3/3]

void SelectionDAG::ReplaceAllUsesWith ( SDNode *  From,
const SDValue *  To 
)

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 7685 of file SelectionDAG.cpp.

References 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().

◆ RepositionNode()

void llvm::SelectionDAG::RepositionNode ( allnodes_iterator  Position,
SDNode *  N 
)
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 1323 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().

◆ salvageDebugInfo()

void SelectionDAG::salvageDebugInfo ( SDNode &  N)

◆ SelectNodeTo() [1/11]

SDNode * SelectionDAG::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.

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 7016 of file SelectionDAG.cpp.

References getVTList(), and llvm::None.

Referenced by llvm::AVRDAGToDAGISel::select< ISD::FrameIndex >(), llvm::SelectionDAGISel::IsLegalToFold(), SelectNodeTo(), tryBitfieldInsertOpFromOr(), and tryBitfieldInsertOpFromOrAndImm().

◆ SelectNodeTo() [2/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT,
SDValue  Op1 
)

Definition at line 7022 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [3/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT,
SDValue  Op1,
SDValue  Op2 
)

Definition at line 7029 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [4/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3 
)

Definition at line 7037 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [5/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT,
ArrayRef< SDValue >  Ops 
)

Definition at line 7045 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [6/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT1,
EVT  VT2 
)

Definition at line 7057 of file SelectionDAG.cpp.

References getVTList(), llvm::None, and SelectNodeTo().

◆ SelectNodeTo() [7/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT1,
EVT  VT2,
ArrayRef< SDValue >  Ops 
)

Definition at line 7051 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [8/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT1,
EVT  VT2,
EVT  VT3,
ArrayRef< SDValue >  Ops 
)

Definition at line 7063 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [9/11]

SDNode* llvm::SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  TargetOpc,
EVT  VT1,
EVT  VT2,
SDValue  Op1 
)

◆ SelectNodeTo() [10/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
EVT  VT1,
EVT  VT2,
SDValue  Op1,
SDValue  Op2 
)

Definition at line 7070 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

◆ SelectNodeTo() [11/11]

SDNode * SelectionDAG::SelectNodeTo ( SDNode *  N,
unsigned  MachineOpc,
SDVTList  VTs,
ArrayRef< SDValue >  Ops 
)

◆ setFunctionLoweringInfo()

void llvm::SelectionDAG::setFunctionLoweringInfo ( FunctionLoweringInfo *  FuncInfo)
inline

Definition at line 387 of file SelectionDAG.h.

References clear().

◆ setGraphAttrs()

void SelectionDAG::setGraphAttrs ( const SDNode *  N,
const char *  Attrs 
)

Set graph attributes for a node. (eg. "color=red".)

setGraphAttrs - Set graph attributes for a node.

(eg. "color=red".)

Definition at line 182 of file SelectionDAGPrinter.cpp.

References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, llvm::errs(), and N.

◆ setGraphColor()

void SelectionDAG::setGraphColor ( const SDNode *  N,
const char *  Color 
)

◆ setRoot()

const SDValue& llvm::SelectionDAG::setRoot ( SDValue  N)
inline

◆ setSubgraphColor()

void SelectionDAG::setSubgraphColor ( SDNode *  N,
const char *  Color 
)

Convenience for setting subgraph color attribute.

setSubgraphColor - Convenience for setting subgraph color attribute.

Definition at line 256 of file SelectionDAGPrinter.cpp.

References llvm::errs().

◆ SignBitIsZero()

bool SelectionDAG::SignBitIsZero ( SDValue  Op,
unsigned  Depth = 0 
) const

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 2144 of file SelectionDAG.cpp.

References llvm::SDValue::getScalarValueSizeInBits(), llvm::APInt::getSignMask(), and MaskedValueIsZero().

Referenced by calculateByteProvider(), combineGatherScatter(), combineUIntToFP(), foldExtendedSignBitTest(), foldFPToIntToFP(), getCmp(), LowerVSETCC(), and simplifyDivRem().

◆ SplitVector() [1/2]

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 8469 of file SelectionDAG.cpp.

References assert(), llvm::ISD::EXTRACT_SUBVECTOR, getConstant(), llvm::SDValue::getValueType(), llvm::EVT::getVectorNumElements(), llvm::MipsISD::Hi, and llvm::MipsISD::Lo.

Referenced by ConvertSelectToConcatVector(), getPMOVMSKB(), LowerBITCAST(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), and SplitVSETCC().

◆ SplitVector() [2/2]

std::pair<SDValue, SDValue> llvm::SelectionDAG::SplitVector ( const SDValue &  N,
const SDLoc &  DL 
)
inline

Split the vector with EXTRACT_SUBVECTOR and return the low/high part.

Definition at line 1535 of file SelectionDAG.h.

References llvm::SDValue::getValueType().

◆ SplitVectorOperand()

std::pair<SDValue, SDValue> llvm::SelectionDAG::SplitVectorOperand ( const SDNode *  N,
unsigned  OpNo 
)
inline

◆ transferDbgValues()

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 7442 of file SelectionDAG.cpp.

References AddDbgValue(), assert(), llvm::DIExpression::createFragmentExpression(), getDbgValue(), GetDbgValues(), llvm::SDNode::getHasDebugValue(), llvm::SDValue::getNode(), llvm::SDValue::getResNo(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::SDDbgValue::SDNODE.

Referenced by getNode(), isTruncateOf(), ReplaceAllUsesOfValuesWith(), ReplaceAllUsesOfValueWith(), and ReplaceAllUsesWith().

◆ UnrollVectorOp()

SDValue SelectionDAG::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.

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 8321 of file SelectionDAG.cpp.

References assert(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FP_ROUND_INREG, getConstant(), 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, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::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 isSETCCorConvertedSETCC(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), and parseCachePolicy().

◆ updateDivergence()

void SelectionDAG::updateDivergence ( SDNode *  N)

◆ UpdateNodeOperands() [1/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
SDValue  Op 
)

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 6897 of file SelectionDAG.cpp.

References assert(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOperand(), N, and updateDivergence().

Referenced by combineGatherScatter(), getExpandedMinMaxOps(), GetFPLibCall(), getFPTernOp(), isTargetConstant(), isXor1OfSetCC(), llvm::SITargetLowering::legalizeTargetIndependentNode(), makeEquivalentMemoryOrdering(), moveBelowOrigChain(), llvm::PPCTargetLowering::PerformDAGCombine(), PrepareCall(), llvm::DAGTypeLegalizer::run(), llvm::TargetLowering::SimplifyDemandedBits(), simplifyDivRem(), SubIdx2Lane(), and UpdateNodeOperands().

◆ UpdateNodeOperands() [2/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
SDValue  Op1,
SDValue  Op2 
)

◆ UpdateNodeOperands() [3/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3 
)

Definition at line 6952 of file SelectionDAG.cpp.

References UpdateNodeOperands().

◆ UpdateNodeOperands() [4/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3,
SDValue  Op4 
)

Definition at line 6958 of file SelectionDAG.cpp.

References UpdateNodeOperands().

◆ UpdateNodeOperands() [5/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
SDValue  Op1,
SDValue  Op2,
SDValue  Op3,
SDValue  Op4,
SDValue  Op5 
)

Definition at line 6965 of file SelectionDAG.cpp.

References UpdateNodeOperands().

◆ UpdateNodeOperands() [6/6]

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode *  N,
ArrayRef< SDValue >  Ops 
)

◆ VerifyDAGDiverence()

void SelectionDAG::VerifyDAGDiverence ( )

◆ viewGraph() [1/2]

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 151 of file SelectionDAGPrinter.cpp.

References llvm::errs(), getName(), and llvm::ViewGraph().

◆ viewGraph() [2/2]

void SelectionDAG::viewGraph ( )

Definition at line 164 of file SelectionDAGPrinter.cpp.

Friends And Related Function Documentation

◆ DAGUpdateListener

friend struct DAGUpdateListener
friend

DAGUpdateListener is a friend so it can manipulate the listener stack.

Definition at line 322 of file SelectionDAG.h.

Referenced by getDbgLabel(), IsPredicateKnownToFail(), and llvm::DAGTypeLegalizer::run().

Member Data Documentation

◆ NewNodesMustHaveLegalTypes

bool llvm::SelectionDAG::NewNodesMustHaveLegalTypes = false

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 318 of file SelectionDAG.h.

Referenced by FoldConstantArithmetic(), FoldConstantVectorArithmetic(), and getConstant().

◆ NodeGraphAttrs

std::map<const SDNode *, std::string> llvm::SelectionDAG::NodeGraphAttrs

Definition at line 412 of file SelectionDAG.h.


The documentation for this class was generated from the following files: