class SelectionDAG
Declaration
class SelectionDAG { /* full declaration omitted */ };
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:223
Member Variables
- public bool 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.
- public int NodeGraphAttrs
- public static const unsigned int MaxRecursionDepth = 6
Method Overview
- public void AddDbgLabel(llvm::SDDbgLabel * DB)
- public void AddDbgValue(llvm::SDDbgValue * DB, llvm::SDNode * SD, bool isParameter)
- public unsigned int AssignTopologicalOrder()
- public int ByvalParmDbgBegin() const
- public int ByvalParmDbgEnd() const
- public void Combine(llvm::CombineLevel Level, llvm::AAResults * AA, CodeGenOpt::Level OptLevel)
- public unsigned int ComputeNumSignBits(llvm::SDValue Op, unsigned int Depth = 0) const
- public unsigned int ComputeNumSignBits(llvm::SDValue Op, const llvm::APInt & DemandedElts, unsigned int Depth = 0) const
- public llvm::SDValue CreateStackTemporary(llvm::EVT VT, unsigned int minAlign = 1)
- public llvm::SDValue CreateStackTemporary(llvm::EVT VT1, llvm::EVT VT2)
- public int DbgBegin() const
- public int DbgEnd() const
- public int DbgLabelBegin() const
- public int DbgLabelEnd() const
- public void DeleteNode(llvm::SDNode * N)
- public static const llvm::fltSemantics & EVTToAPFloatSemantics(llvm::EVT VT)
- public void ExtractVectorElements(llvm::SDValue Op, SmallVectorImpl<llvm::SDValue> & Args, unsigned int Start = 0, unsigned int Count = 0)
- public llvm::SDValue FoldConstantArithmetic(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDNode * N1, llvm::SDNode * N2)
- public llvm::SDValue FoldConstantArithmetic(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, const llvm::ConstantSDNode * C1, const llvm::ConstantSDNode * C2)
- public llvm::SDValue FoldConstantVectorArithmetic(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, ArrayRef<llvm::SDValue> Ops, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue FoldSetCC(llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2, ISD::CondCode Cond, const llvm::SDLoc & dl)
- public llvm::SDValue FoldSymbolOffset(unsigned int Opcode, llvm::EVT VT, const llvm::GlobalAddressSDNode * GA, const llvm::SDNode * N2)
- public ArrayRef<llvm::SDDbgValue *> GetDbgValues(const llvm::SDNode * SD) const
- public llvm::SDValue GetDemandedBits(llvm::SDValue V, const llvm::APInt & DemandedBits)
- public llvm::SDValue GetDemandedBits(llvm::SDValue V, const llvm::APInt & DemandedBits, const llvm::APInt & DemandedElts)
- public std::pair<EVT, EVT> GetSplitDestVTs(const llvm::EVT & VT) const
- public unsigned int InferPtrAlignment(llvm::SDValue Ptr) const
- public void Legalize()
- public bool LegalizeOp(llvm::SDNode * N, SmallSetVector<llvm::SDNode *, 16> & UpdatedNodes)
- public bool LegalizeTypes()
- public bool LegalizeVectors()
- public bool MaskedValueIsAllOnes(llvm::SDValue Op, const llvm::APInt & Mask, unsigned int Depth = 0) const
- public bool MaskedValueIsZero(llvm::SDValue Op, const llvm::APInt & Mask, unsigned int Depth = 0) const
- public bool MaskedValueIsZero(llvm::SDValue Op, const llvm::APInt & Mask, const llvm::APInt & DemandedElts, unsigned int Depth = 0) const
- public llvm::SDNode * MorphNodeTo(llvm::SDNode * N, unsigned int Opc, llvm::SDVTList VTs, ArrayRef<llvm::SDValue> Ops)
- public void RemoveDeadNode(llvm::SDNode * N)
- public void RemoveDeadNodes()
- public void RemoveDeadNodes(SmallVectorImpl<llvm::SDNode *> & DeadNodes)
- public void ReplaceAllUsesOfValueWith(llvm::SDValue From, llvm::SDValue To)
- public void ReplaceAllUsesOfValuesWith(const llvm::SDValue * From, const llvm::SDValue * To, unsigned int Num)
- public void ReplaceAllUsesWith(llvm::SDNode * From, const llvm::SDValue * To)
- public void ReplaceAllUsesWith(llvm::SDNode * From, llvm::SDNode * To)
- public void ReplaceAllUsesWith(llvm::SDValue From, llvm::SDValue To)
- public void RepositionNode(int Position, llvm::SDNode * N)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT, llvm::SDValue Op1)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT, llvm::SDValue Op1, llvm::SDValue Op2)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT1, llvm::EVT VT2)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT1, llvm::EVT VT2, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int TargetOpc, llvm::EVT VT1, llvm::EVT VT2, llvm::SDValue Op1)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::EVT VT1, llvm::EVT VT2, llvm::SDValue Op1, llvm::SDValue Op2)
- public llvm::SDNode * SelectNodeTo(llvm::SDNode * N, unsigned int MachineOpc, llvm::SDVTList VTs, ArrayRef<llvm::SDValue> Ops)
- public SelectionDAG(const llvm::SelectionDAG &)
- public SelectionDAG(const llvm::TargetMachine & TM, CodeGenOpt::Level)
- public bool SignBitIsZero(llvm::SDValue Op, unsigned int Depth = 0) const
- public std::pair<SDValue, SDValue> SplitVector(const llvm::SDValue & N, const llvm::SDLoc & DL)
- public std::pair<SDValue, SDValue> SplitVector(const llvm::SDValue & N, const llvm::SDLoc & DL, const llvm::EVT & LoVT, const llvm::EVT & HiVT)
- public std::pair<SDValue, SDValue> SplitVectorOperand(const llvm::SDNode * N, unsigned int OpNo)
- public llvm::SDValue UnrollVectorOp(llvm::SDNode * N, unsigned int ResNE = 0)
- public std::pair<SDValue, SDValue> UnrollVectorOverflowOp(llvm::SDNode * N, unsigned int ResNE = 0)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, llvm::SDValue Op)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::SDValue Op4)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3, llvm::SDValue Op4, llvm::SDValue Op5)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDNode * UpdateNodeOperands(llvm::SDNode * N, llvm::SDValue Op1, llvm::SDValue Op2)
- public void VerifyDAGDiverence()
- public llvm::SDValue WidenVector(const llvm::SDValue & N, const llvm::SDLoc & DL)
- public void addCallSiteInfo(const llvm::SDNode * CallNode, llvm::SelectionDAG::CallSiteInfoImpl && CallInfo)
- public void addHeapAllocSite(const llvm::SDNode * Node, llvm::MDNode * MD)
- public int allnodes() const
- public int allnodes()
- public int allnodes_begin() const
- public int allnodes_begin()
- public int allnodes_end() const
- public int allnodes_end()
- public int allnodes_size() const
- public bool areNonVolatileConsecutiveLoads(llvm::LoadSDNode * LD, llvm::LoadSDNode * Base, unsigned int Bytes, int Dist) const
- public void clear()
- public void clearGraphAttrs()
- public llvm::KnownBits computeKnownBits(llvm::SDValue Op, const llvm::APInt & DemandedElts, unsigned int Depth = 0) const
- public llvm::KnownBits computeKnownBits(llvm::SDValue Op, unsigned int Depth = 0) const
- public llvm::SelectionDAG::OverflowKind computeOverflowKind(llvm::SDValue N0, llvm::SDValue N1) const
- public void dump() const
- public llvm::SDValue expandVAArg(llvm::SDNode * Node)
- public llvm::SDValue expandVACopy(llvm::SDNode * Node)
- public llvm::SDValue foldConstantFPMath(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2)
- public llvm::SDValue getAddrSpaceCast(const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Ptr, unsigned int SrcAS, unsigned int DestAS)
- public llvm::SDValue getAllOnesConstant(const llvm::SDLoc & DL, llvm::EVT VT, bool IsTarget = false, bool IsOpaque = false)
- public llvm::SDValue getAnyExtOrTrunc(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getAtomic(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT MemVT, llvm::SDVTList VTList, ArrayRef<llvm::SDValue> Ops, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getAtomic(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT MemVT, llvm::EVT VT, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getAtomic(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT MemVT, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::SDValue Val, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getAtomicCmpSwap(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT MemVT, llvm::SDVTList VTs, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::SDValue Cmp, llvm::SDValue Swp, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getAtomicMemcpy(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, unsigned int DstAlign, llvm::SDValue Src, unsigned int SrcAlign, llvm::SDValue Size, llvm::Type * SizeTy, unsigned int ElemSz, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo)
- public llvm::SDValue getAtomicMemmove(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, unsigned int DstAlign, llvm::SDValue Src, unsigned int SrcAlign, llvm::SDValue Size, llvm::Type * SizeTy, unsigned int ElemSz, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo)
- public llvm::SDValue getAtomicMemset(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, unsigned int DstAlign, llvm::SDValue Value, llvm::SDValue Size, llvm::Type * SizeTy, unsigned int ElemSz, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo)
- public llvm::BlockFrequencyInfo * getBFI() const
- public llvm::SDValue getBasicBlock(llvm::MachineBasicBlock * MBB)
- public llvm::SDValue getBasicBlock(llvm::MachineBasicBlock * MBB, llvm::SDLoc dl)
- public llvm::SDValue getBitcast(llvm::EVT VT, llvm::SDValue V)
- public llvm::SDValue getBlockAddress(const llvm::BlockAddress * BA, llvm::EVT VT, int64_t Offset = 0, bool isTarget = false, unsigned int TargetFlags = 0)
- public llvm::SDValue getBoolConstant(bool V, const llvm::SDLoc & DL, llvm::EVT VT, llvm::EVT OpVT)
- public llvm::SDValue getBoolExtOrTrunc(llvm::SDValue Op, const llvm::SDLoc & SL, llvm::EVT VT, llvm::EVT OpVT)
- public llvm::SDValue getBuildVector(llvm::EVT VT, const llvm::SDLoc & DL, ArrayRef<llvm::SDUse> Ops)
- public llvm::SDValue getBuildVector(llvm::EVT VT, const llvm::SDLoc & DL, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDValue getCALLSEQ_END(llvm::SDValue Chain, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue InGlue, const llvm::SDLoc & DL)
- public llvm::SDValue getCALLSEQ_START(llvm::SDValue Chain, uint64_t InSize, uint64_t OutSize, const llvm::SDLoc & DL)
- public llvm::SDValue getCommutedVectorShuffle(const llvm::ShuffleVectorSDNode & SV)
- public llvm::SDValue getCondCode(ISD::CondCode Cond)
- public llvm::SDValue getConstant(const llvm::APInt & Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false, bool isOpaque = false)
- public llvm::SDValue getConstant(const llvm::ConstantInt & Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false, bool isOpaque = false)
- public llvm::SDValue getConstant(uint64_t Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false, bool isOpaque = false)
- public llvm::SDDbgValue * getConstantDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, const llvm::Value * C, const llvm::DebugLoc & DL, unsigned int O)
- public llvm::SDValue getConstantFP(double Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false)
- public llvm::SDValue getConstantFP(const llvm::ConstantFP & V, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false)
- public llvm::SDValue getConstantFP(const llvm::APFloat & Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isTarget = false)
- public llvm::SDValue getConstantPool(llvm::MachineConstantPoolValue * C, llvm::EVT VT, unsigned int Align = 0, int Offs = 0, bool isT = false, unsigned int TargetFlags = 0)
- public llvm::SDValue getConstantPool(const llvm::Constant * C, llvm::EVT VT, unsigned int Align = 0, int Offs = 0, bool isT = false, unsigned int TargetFlags = 0)
- public llvm::LLVMContext * getContext() const
- public llvm::SDValue getCopyFromReg(llvm::SDValue Chain, const llvm::SDLoc & dl, unsigned int Reg, llvm::EVT VT)
- public llvm::SDValue getCopyFromReg(llvm::SDValue Chain, const llvm::SDLoc & dl, unsigned int Reg, llvm::EVT VT, llvm::SDValue Glue)
- public llvm::SDValue getCopyToReg(llvm::SDValue Chain, const llvm::SDLoc & dl, unsigned int Reg, llvm::SDValue N)
- public llvm::SDValue getCopyToReg(llvm::SDValue Chain, const llvm::SDLoc & dl, unsigned int Reg, llvm::SDValue N, llvm::SDValue Glue)
- public llvm::SDValue getCopyToReg(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Reg, llvm::SDValue N, llvm::SDValue Glue)
- public const llvm::DataLayout & getDataLayout() const
- public llvm::SDDbgLabel * getDbgLabel(llvm::DILabel * Label, const llvm::DebugLoc & DL, unsigned int O)
- public llvm::SDDbgValue * getDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, llvm::SDNode * N, unsigned int R, bool IsIndirect, const llvm::DebugLoc & DL, unsigned int O)
- public llvm::DenormalMode getDenormalMode(llvm::EVT VT) const
- public const llvm::LegacyDivergenceAnalysis * getDivergenceAnalysis() const
- public llvm::SDValue getEHLabel(const llvm::SDLoc & dl, llvm::SDValue Root, llvm::MCSymbol * Label)
- public unsigned int getEVTAlignment(llvm::EVT MemoryVT) const
- public llvm::SDValue getEntryNode() const
- public llvm::SDValue getExtLoad(ISD::LoadExtType ExtType, const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::MachinePointerInfo PtrInfo, llvm::EVT MemVT, unsigned int Alignment = 0, MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes())
- public llvm::SDValue getExtLoad(ISD::LoadExtType ExtType, const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::EVT MemVT, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getExternalSymbol(const char * Sym, llvm::EVT VT)
- public llvm::SDValue getExternalSymbol(const char * Sym, const llvm::SDLoc & dl, llvm::EVT VT)
- public llvm::SDValue getFPExtendOrRound(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getFrameIndex(int FI, llvm::EVT VT, bool isTarget = false)
- public llvm::SDDbgValue * getFrameIndexDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, unsigned int FI, bool IsIndirect, const llvm::DebugLoc & DL, unsigned int O)
- public llvm::SDValue getGLOBAL_OFFSET_TABLE(llvm::EVT VT)
- public llvm::SDValue getGlobalAddress(const llvm::GlobalValue * GV, const llvm::SDLoc & DL, llvm::EVT VT, int64_t offset = 0, bool isTargetGA = false, unsigned int TargetFlags = 0)
- public const std::string getGraphAttrs(const llvm::SDNode * N) const
- public llvm::MDNode * getHeapAllocSite(const llvm::SDNode * Node)
- public llvm::SDValue getIndexedLoad(llvm::SDValue OrigLoad, const llvm::SDLoc & dl, llvm::SDValue Base, llvm::SDValue Offset, ISD::MemIndexedMode AM)
- public llvm::SDValue getIndexedMaskedLoad(llvm::SDValue OrigLoad, const llvm::SDLoc & dl, llvm::SDValue Base, llvm::SDValue Offset, ISD::MemIndexedMode AM)
- public llvm::SDValue getIndexedMaskedStore(llvm::SDValue OrigStore, const llvm::SDLoc & dl, llvm::SDValue Base, llvm::SDValue Offset, ISD::MemIndexedMode AM)
- public llvm::SDValue getIndexedStore(llvm::SDValue OrigStore, const llvm::SDLoc & dl, llvm::SDValue Base, llvm::SDValue Offset, ISD::MemIndexedMode AM)
- public llvm::SDValue getIntPtrConstant(uint64_t Val, const llvm::SDLoc & DL, bool isTarget = false)
- public llvm::SDValue getJumpTable(int JTI, llvm::EVT VT, bool isTarget = false, unsigned int TargetFlags = 0)
- public llvm::SDValue getLabelNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::SDValue Root, llvm::MCSymbol * Label)
- public const llvm::TargetLibraryInfo & getLibInfo() const
- public llvm::SDValue getLifetimeNode(bool IsStart, const llvm::SDLoc & dl, llvm::SDValue Chain, int FrameIndex, int64_t Size, int64_t Offset = -1)
- public llvm::SDValue getLoad(llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getLoad(ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::SDValue Offset, llvm::MachinePointerInfo PtrInfo, llvm::EVT MemVT, unsigned int Alignment = 0, MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes(), const llvm::MDNode * Ranges = nullptr)
- public llvm::SDValue getLoad(ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::SDValue Offset, llvm::EVT MemVT, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getLoad(llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::MachinePointerInfo PtrInfo, unsigned int Alignment = 0, MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes(), const llvm::MDNode * Ranges = nullptr)
- public llvm::SDValue getLogicalNOT(const llvm::SDLoc & DL, llvm::SDValue Val, llvm::EVT VT)
- public llvm::SDValue getMCSymbol(llvm::MCSymbol * Sym, llvm::EVT VT)
- public llvm::SDValue getMDNode(const llvm::MDNode * MD)
- public llvm::MachineFunction & getMachineFunction() const
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, llvm::SDValue Op1, llvm::SDValue Op2)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::SDVTList VTs, ArrayRef<llvm::SDValue> Ops)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, ArrayRef<llvm::EVT> ResultTys, ArrayRef<llvm::SDValue> Ops)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3, ArrayRef<llvm::SDValue> Ops)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3, llvm::SDValue Op1, llvm::SDValue Op2)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, ArrayRef<llvm::SDValue> Ops)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT1, llvm::EVT VT2, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Op1)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT, ArrayRef<llvm::SDValue> Ops)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Op1, llvm::SDValue Op2, llvm::SDValue Op3)
- public llvm::MachineSDNode * getMachineNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::EVT VT, llvm::SDValue Op1, llvm::SDValue Op2)
- public llvm::SDValue getMaskedGather(llvm::SDVTList VTs, llvm::EVT VT, const llvm::SDLoc & dl, ArrayRef<llvm::SDValue> Ops, llvm::MachineMemOperand * MMO, ISD::MemIndexType IndexType)
- public llvm::SDValue getMaskedLoad(llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Base, llvm::SDValue Offset, llvm::SDValue Mask, llvm::SDValue Src0, llvm::EVT MemVT, llvm::MachineMemOperand * MMO, ISD::MemIndexedMode AM, ISD::LoadExtType, bool IsExpanding = false)
- public llvm::SDValue getMaskedScatter(llvm::SDVTList VTs, llvm::EVT VT, const llvm::SDLoc & dl, ArrayRef<llvm::SDValue> Ops, llvm::MachineMemOperand * MMO, ISD::MemIndexType IndexType)
- public llvm::SDValue getMaskedStore(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Val, llvm::SDValue Base, llvm::SDValue Offset, llvm::SDValue Mask, llvm::EVT MemVT, llvm::MachineMemOperand * MMO, ISD::MemIndexedMode AM, bool IsTruncating = false, bool IsCompressing = false)
- public llvm::SDValue getMemBasePlusOffset(llvm::SDValue Base, int64_t Offset, const llvm::SDLoc & DL, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getMemBasePlusOffset(llvm::SDValue Base, llvm::SDValue Offset, const llvm::SDLoc & DL, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getMemIntrinsicNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::SDVTList VTList, ArrayRef<llvm::SDValue> Ops, llvm::EVT MemVT, llvm::MachinePointerInfo PtrInfo, unsigned int Align = 0, MachineMemOperand::Flags Flags = <null expr>, uint64_t Size = 0, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes())
- public llvm::SDValue getMemIntrinsicNode(unsigned int Opcode, const llvm::SDLoc & dl, llvm::SDVTList VTList, ArrayRef<llvm::SDValue> Ops, llvm::EVT MemVT, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getMemcpy(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, llvm::SDValue Src, llvm::SDValue Size, unsigned int Align, bool isVol, bool AlwaysInline, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo)
- public llvm::SDValue getMemmove(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, llvm::SDValue Src, llvm::SDValue Size, unsigned int Align, bool isVol, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo, llvm::MachinePointerInfo SrcPtrInfo)
- public llvm::SDValue getMemset(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Dst, llvm::SDValue Src, llvm::SDValue Size, unsigned int Align, bool isVol, bool isTailCall, llvm::MachinePointerInfo DstPtrInfo)
- public llvm::SDValue getMergeValues(ArrayRef<llvm::SDValue> Ops, const llvm::SDLoc & dl)
- public llvm::SDValue getNOT(const llvm::SDLoc & DL, llvm::SDValue Val, llvm::EVT VT)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue Operand, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, ArrayRef<llvm::SDUse> Ops)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3, llvm::SDValue N4, llvm::SDValue N5)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, ArrayRef<llvm::SDValue> Ops, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, ArrayRef<llvm::EVT> ResultTys, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3, llvm::SDValue N4)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3, llvm::SDValue N4)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3, llvm::SDValue N4, llvm::SDValue N5)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, llvm::SDValue N)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, llvm::SDValue N1, llvm::SDValue N2, llvm::SDValue N3)
- public llvm::SDValue getNode(unsigned int Opcode, const llvm::SDLoc & DL, llvm::SDVTList VTList, llvm::SDValue N1, llvm::SDValue N2)
- public llvm::SDNode * getNodeIfExists(unsigned int Opcode, llvm::SDVTList VTList, ArrayRef<llvm::SDValue> Ops, const llvm::SDNodeFlags Flags = llvm::SDNodeFlags())
- public llvm::OptimizationRemarkEmitter & getORE() const
- public llvm::SDValue getObjectPtrOffset(const llvm::SDLoc & SL, llvm::SDValue Ptr, int64_t Offset)
- public llvm::SDValue getObjectPtrOffset(const llvm::SDLoc & SL, llvm::SDValue Ptr, llvm::SDValue Offset)
- public llvm::ProfileSummaryInfo * getPSI() const
- public const llvm::Pass * getPass() const
- public llvm::SDValue getPtrExtOrTrunc(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getPtrExtendInReg(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getRegister(unsigned int Reg, llvm::EVT VT)
- public llvm::SDValue getRegisterMask(const uint32_t * RegMask)
- public const llvm::SDValue & getRoot() const
- public llvm::SelectionDAG::CallSiteInfo getSDCallSiteInfo(const llvm::SDNode * CallNode)
- public llvm::SDValue getSExtOrTrunc(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getSelect(const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue Cond, llvm::SDValue LHS, llvm::SDValue RHS)
- public llvm::SDValue getSelectCC(const llvm::SDLoc & DL, llvm::SDValue LHS, llvm::SDValue RHS, llvm::SDValue True, llvm::SDValue False, ISD::CondCode Cond)
- public const llvm::SelectionDAGTargetInfo & getSelectionDAGInfo() const
- public llvm::SDValue getSetCC(const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue LHS, llvm::SDValue RHS, ISD::CondCode Cond, llvm::SDValue Chain = llvm::SDValue(), bool IsSignaling = false)
- public llvm::SDValue getShiftAmountConstant(uint64_t Val, llvm::EVT VT, const llvm::SDLoc & DL, bool LegalTypes = true)
- public llvm::SDValue getShiftAmountOperand(llvm::EVT LHSTy, llvm::SDValue Op)
- public llvm::SDValue getSplatBuildVector(llvm::EVT VT, const llvm::SDLoc & DL, llvm::SDValue Op)
- public llvm::SDValue getSplatSourceVector(llvm::SDValue V, int & SplatIndex)
- public llvm::SDValue getSplatValue(llvm::SDValue V)
- public llvm::SDValue getSplatVector(llvm::EVT VT, const llvm::SDLoc & DL, llvm::SDValue Op)
- public llvm::SDValue getSrcValue(const llvm::Value * v)
- public llvm::SDValue getStackArgumentTokenFactor(llvm::SDValue Chain)
- public llvm::SDValue getStore(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Val, llvm::SDValue Ptr, llvm::MachinePointerInfo PtrInfo, unsigned int Alignment = 0, MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes())
- public llvm::SDValue getStore(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Val, llvm::SDValue Ptr, llvm::MachineMemOperand * MMO)
- public std::pair<SDValue, SDValue> getStrictFPExtendOrRound(llvm::SDValue Op, llvm::SDValue Chain, const llvm::SDLoc & DL, llvm::EVT VT)
- public const llvm::TargetSubtargetInfo & getSubtarget() const
- public llvm::SDValue getSymbolFunctionGlobalAddress(llvm::SDValue Op, llvm::Function ** TargetFunction = nullptr)
- public const llvm::TargetMachine & getTarget() const
- public llvm::SDValue getTargetBlockAddress(const llvm::BlockAddress * BA, llvm::EVT VT, int64_t Offset = 0, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetConstant(const llvm::APInt & Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isOpaque = false)
- public llvm::SDValue getTargetConstant(uint64_t Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isOpaque = false)
- public llvm::SDValue getTargetConstant(const llvm::ConstantInt & Val, const llvm::SDLoc & DL, llvm::EVT VT, bool isOpaque = false)
- public llvm::SDValue getTargetConstantFP(const llvm::ConstantFP & Val, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getTargetConstantFP(const llvm::APFloat & Val, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getTargetConstantFP(double Val, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getTargetConstantPool(const llvm::Constant * C, llvm::EVT VT, unsigned int Align = 0, int Offset = 0, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetConstantPool(llvm::MachineConstantPoolValue * C, llvm::EVT VT, unsigned int Align = 0, int Offset = 0, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetExternalSymbol(const char * Sym, llvm::EVT VT, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetExtractSubreg(int SRIdx, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue Operand)
- public llvm::SDValue getTargetFrameIndex(int FI, llvm::EVT VT)
- public llvm::SDValue getTargetGlobalAddress(const llvm::GlobalValue * GV, const llvm::SDLoc & DL, llvm::EVT VT, int64_t offset = 0, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetIndex(int Index, llvm::EVT VT, int64_t Offset = 0, unsigned int TargetFlags = 0)
- public llvm::SDValue getTargetInsertSubreg(int SRIdx, const llvm::SDLoc & DL, llvm::EVT VT, llvm::SDValue Operand, llvm::SDValue Subreg)
- public llvm::SDValue getTargetJumpTable(int JTI, llvm::EVT VT, unsigned int TargetFlags = 0)
- public const llvm::TargetLowering & getTargetLoweringInfo() const
- public template <class TargetMemSDNode>llvm::SDValue getTargetMemSDNode(llvm::SDVTList VTs, ArrayRef<llvm::SDValue> Ops, const llvm::SDLoc & dl, llvm::EVT MemVT, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getTokenFactor(const llvm::SDLoc & DL, SmallVectorImpl<llvm::SDValue> & Vals)
- public llvm::SDValue getTruncStore(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Val, llvm::SDValue Ptr, llvm::EVT SVT, llvm::MachineMemOperand * MMO)
- public llvm::SDValue getTruncStore(llvm::SDValue Chain, const llvm::SDLoc & dl, llvm::SDValue Val, llvm::SDValue Ptr, llvm::MachinePointerInfo PtrInfo, llvm::EVT SVT, unsigned int Alignment = 0, MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone, const llvm::AAMDNodes & AAInfo = llvm::AAMDNodes())
- public llvm::SDValue getUNDEF(llvm::EVT VT)
- public llvm::SDValue getVAArg(llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue Chain, llvm::SDValue Ptr, llvm::SDValue SV, unsigned int Align)
- public llvm::SDDbgValue * getVRegDbgValue(llvm::DIVariable * Var, llvm::DIExpression * Expr, unsigned int VReg, bool IsIndirect, const llvm::DebugLoc & DL, unsigned int O)
- public llvm::SDVTList getVTList(llvm::EVT VT1, llvm::EVT VT2)
- public llvm::SDVTList getVTList(llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3)
- public llvm::SDVTList getVTList(llvm::EVT VT)
- public llvm::SDVTList getVTList(llvm::EVT VT1, llvm::EVT VT2, llvm::EVT VT3, llvm::EVT VT4)
- public llvm::SDVTList getVTList(ArrayRef<llvm::EVT> VTs)
- public llvm::SDValue getValueType(llvm::EVT)
- public llvm::SDValue getVectorShuffle(llvm::EVT VT, const llvm::SDLoc & dl, llvm::SDValue N1, llvm::SDValue N2, ArrayRef<int> Mask)
- public llvm::SDValue getZExtOrTrunc(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public llvm::SDValue getZeroExtendInReg(llvm::SDValue Op, const llvm::SDLoc & DL, llvm::EVT VT)
- public bool hasDebugValues() const
- public bool haveNoCommonBitsSet(llvm::SDValue A, llvm::SDValue B) const
- public void init(llvm::MachineFunction & NewMF, llvm::OptimizationRemarkEmitter & NewORE, llvm::Pass * PassPtr, const llvm::TargetLibraryInfo * LibraryInfo, llvm::LegacyDivergenceAnalysis * Divergence, llvm::ProfileSummaryInfo * PSIin, llvm::BlockFrequencyInfo * BFIin)
- public bool isBaseWithConstantOffset(llvm::SDValue Op) const
- public llvm::SDNode * isConstantFPBuildVectorOrConstantFP(llvm::SDValue N)
- public llvm::SDNode * isConstantIntBuildVectorOrConstantInt(llvm::SDValue N)
- public inline bool isConstantValueOfAnyType(llvm::SDValue N)
- public bool isEqualTo(llvm::SDValue A, llvm::SDValue B) const
- public bool isKnownNeverNaN(llvm::SDValue Op, bool SNaN = false, unsigned int Depth = 0) const
- public bool isKnownNeverSNaN(llvm::SDValue Op, unsigned int Depth = 0) const
- public bool isKnownNeverZero(llvm::SDValue Op) const
- public bool isKnownNeverZeroFloat(llvm::SDValue Op) const
- public bool isKnownToBeAPowerOfTwo(llvm::SDValue Val) const
- public bool isSplatValue(llvm::SDValue V, bool AllowUndefs = false)
- public bool isSplatValue(llvm::SDValue V, const llvm::APInt & DemandedElts, llvm::APInt & UndefElts)
- public bool isUndef(unsigned int Opcode, ArrayRef<llvm::SDValue> Ops)
- public llvm::SDValue makeEquivalentMemoryOrdering(llvm::LoadSDNode * Old, llvm::SDValue New)
- public llvm::SDValue matchBinOpReduction(llvm::SDNode * Extract, ISD::NodeType & BinOp, ArrayRef<ISD::NodeType> CandidateBinOps, bool AllowPartials = false)
- public llvm::SDNode * mutateStrictFPToFP(llvm::SDNode * Node)
- public void salvageDebugInfo(llvm::SDNode & N)
- public void setFunctionLoweringInfo(llvm::FunctionLoweringInfo * FuncInfo)
- public void setGraphAttrs(const llvm::SDNode * N, const char * Attrs)
- public void setGraphColor(const llvm::SDNode * N, const char * Color)
- public void setNodeMemRefs(llvm::MachineSDNode * N, ArrayRef<llvm::MachineMemOperand *> NewMemRefs)
- public const llvm::SDValue & setRoot(llvm::SDValue N)
- public void setSubgraphColor(llvm::SDNode * N, const char * Color)
- public bool shouldOptForSize() const
- public llvm::SDValue simplifyFPBinop(unsigned int Opcode, llvm::SDValue X, llvm::SDValue Y)
- public llvm::SDValue simplifySelect(llvm::SDValue Cond, llvm::SDValue TVal, llvm::SDValue FVal)
- public llvm::SDValue simplifyShift(llvm::SDValue X, llvm::SDValue Y)
- public void transferDbgValues(llvm::SDValue From, llvm::SDValue To, unsigned int OffsetInBits = 0, unsigned int SizeInBits = 0, bool InvalidateDbg = true)
- public void updateDivergence(llvm::SDNode * N)
- public void viewGraph(const std::string & Title)
- public void viewGraph()
- public ~SelectionDAG()
Methods
¶void AddDbgLabel(llvm::SDDbgLabel* DB)
void AddDbgLabel(llvm::SDDbgLabel* DB)
Description
Add a dbg_label SDNode.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1422
Parameters
- llvm::SDDbgLabel* DB
¶void AddDbgValue(llvm::SDDbgValue* DB,
llvm::SDNode* SD,
bool isParameter)
void AddDbgValue(llvm::SDDbgValue* DB,
llvm::SDNode* SD,
bool isParameter)
Description
Add a dbg_value SDNode. If SD is non-null that means the value is produced by SD.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1419
Parameters
- llvm::SDDbgValue* DB
- llvm::SDNode* SD
- bool isParameter
¶unsigned int AssignTopologicalOrder()
unsigned int AssignTopologicalOrder()
Description
Topological-sort the AllNodes list and a assign a unique node id for each node in the DAG based on their topological order. Returns the number of nodes.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1394
¶int ByvalParmDbgBegin() const
int ByvalParmDbgBegin() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1437
¶int ByvalParmDbgEnd() const
int ByvalParmDbgEnd() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1440
¶void Combine(llvm::CombineLevel Level,
llvm::AAResults* AA,
CodeGenOpt::Level OptLevel)
void Combine(llvm::CombineLevel Level,
llvm::AAResults* AA,
CodeGenOpt::Level OptLevel)
Description
This iterates over the nodes in the SelectionDAG, folding certain types of nodes together, or eliminating superfluous nodes. The Level argument controls whether Combine is allowed to produce nodes and types that are illegal on the target.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:510
Parameters
- llvm::CombineLevel Level
- llvm::AAResults* AA
- CodeGenOpt::Level OptLevel
¶unsigned int ComputeNumSignBits(
llvm::SDValue Op,
unsigned int Depth = 0) const
unsigned int ComputeNumSignBits(
llvm::SDValue Op,
unsigned int Depth = 0) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1568
Parameters
- llvm::SDValue Op
- unsigned int Depth = 0
¶unsigned int ComputeNumSignBits(
llvm::SDValue Op,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
unsigned int ComputeNumSignBits(
llvm::SDValue Op,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1578
Parameters
- llvm::SDValue Op
- const llvm::APInt& DemandedElts
- unsigned int Depth = 0
¶llvm::SDValue CreateStackTemporary(
llvm::EVT VT,
unsigned int minAlign = 1)
llvm::SDValue CreateStackTemporary(
llvm::EVT VT,
unsigned int minAlign = 1)
Description
Create a stack temporary, suitable for holding the specified value type. If minAlign is specified, the slot size will have at least that alignment.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1459
Parameters
- llvm::EVT VT
- unsigned int minAlign = 1
¶llvm::SDValue CreateStackTemporary(llvm::EVT VT1,
llvm::EVT VT2)
llvm::SDValue CreateStackTemporary(llvm::EVT VT1,
llvm::EVT VT2)
Description
Create a stack temporary suitable for holding either of the specified value types.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1463
Parameters
¶int DbgBegin() const
int DbgBegin() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1434
¶int DbgEnd() const
int DbgEnd() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1435
¶int DbgLabelBegin() const
int DbgLabelBegin() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1444
¶int DbgLabelEnd() const
int DbgLabelEnd() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1447
¶void DeleteNode(llvm::SDNode* N)
void DeleteNode(llvm::SDNode* N)
Description
Remove the specified node from the system. This node must have no referrers.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:568
Parameters
- llvm::SDNode* N
¶static const llvm::fltSemantics&
EVTToAPFloatSemantics(llvm::EVT VT)
static const llvm::fltSemantics&
EVTToAPFloatSemantics(llvm::EVT VT)
Description
Returns an APFloat semantics tag appropriate for the given type. If VT is a vector type, the element semantics are returned.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1405
Parameters
- llvm::EVT VT
¶void ExtractVectorElements(
llvm::SDValue Op,
SmallVectorImpl<llvm::SDValue>& Args,
unsigned int Start = 0,
unsigned int Count = 0)
void ExtractVectorElements(
llvm::SDValue Op,
SmallVectorImpl<llvm::SDValue>& Args,
unsigned int Start = 0,
unsigned int Count = 0)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1697
Parameters
- llvm::SDValue Op
- SmallVectorImpl<llvm::SDValue>& Args
- unsigned int Start = 0
- unsigned int Count = 0
¶llvm::SDValue FoldConstantArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDNode* N1,
llvm::SDNode* N2)
llvm::SDValue FoldConstantArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDNode* N1,
llvm::SDNode* N2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1469
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDNode* N1
- llvm::SDNode* N2
¶llvm::SDValue FoldConstantArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
const llvm::ConstantSDNode* C1,
const llvm::ConstantSDNode* C2)
llvm::SDValue FoldConstantArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
const llvm::ConstantSDNode* C1,
const llvm::ConstantSDNode* C2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1472
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- const llvm::ConstantSDNode* C1
- const llvm::ConstantSDNode* C2
¶llvm::SDValue FoldConstantVectorArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue FoldConstantVectorArithmetic(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1476
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- ArrayRef<llvm::SDValue> Ops
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue FoldSetCC(llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
ISD::CondCode Cond,
const llvm::SDLoc& dl)
llvm::SDValue FoldSetCC(llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
ISD::CondCode Cond,
const llvm::SDLoc& dl)
Description
Constant fold a setcc to true or false.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1486
Parameters
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
- ISD::CondCode Cond
- const llvm::SDLoc& dl
¶llvm::SDValue FoldSymbolOffset(
unsigned int Opcode,
llvm::EVT VT,
const llvm::GlobalAddressSDNode* GA,
const llvm::SDNode* N2)
llvm::SDValue FoldSymbolOffset(
unsigned int Opcode,
llvm::EVT VT,
const llvm::GlobalAddressSDNode* GA,
const llvm::SDNode* N2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1465
Parameters
- unsigned int Opcode
- llvm::EVT VT
- const llvm::GlobalAddressSDNode* GA
- const llvm::SDNode* N2
¶ArrayRef<llvm::SDDbgValue*> GetDbgValues(
const llvm::SDNode* SD) const
ArrayRef<llvm::SDDbgValue*> GetDbgValues(
const llvm::SDNode* SD) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1425
Parameters
- const llvm::SDNode* SD
¶llvm::SDValue GetDemandedBits(
llvm::SDValue V,
const llvm::APInt& DemandedBits)
llvm::SDValue GetDemandedBits(
llvm::SDValue V,
const llvm::APInt& DemandedBits)
Description
See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used. If so, return the simpler operand, otherwise return a null SDValue. (This exists alongside SimplifyDemandedBits because GetDemandedBits can simplify nodes with multiple uses more aggressively.)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1495
Parameters
- llvm::SDValue V
- const llvm::APInt& DemandedBits
¶llvm::SDValue GetDemandedBits(
llvm::SDValue V,
const llvm::APInt& DemandedBits,
const llvm::APInt& DemandedElts)
llvm::SDValue GetDemandedBits(
llvm::SDValue V,
const llvm::APInt& DemandedBits,
const llvm::APInt& DemandedElts)
Description
See if the specified operand can be simplified with the knowledge that only the bits specified by DemandedBits are used in the elements specified by DemandedElts. If so, return the simpler operand, otherwise return a null SDValue. (This exists alongside SimplifyDemandedBits because GetDemandedBits can simplify nodes with multiple uses more aggressively.)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1504
Parameters
- llvm::SDValue V
- const llvm::APInt& DemandedBits
- const llvm::APInt& DemandedElts
¶std::pair<EVT, EVT> GetSplitDestVTs(
const llvm::EVT& VT) const
std::pair<EVT, EVT> GetSplitDestVTs(
const llvm::EVT& VT) const
Description
Compute the VTs needed for the low/hi parts of a type which is split (or expanded) into two not necessarily identical pieces.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1671
Parameters
- const llvm::EVT& VT
¶unsigned int InferPtrAlignment(
llvm::SDValue Ptr) const
unsigned int InferPtrAlignment(
llvm::SDValue Ptr) const
Description
Infer alignment of a load / store address. Return 0 if it cannot be inferred.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1667
Parameters
- llvm::SDValue Ptr
¶void Legalize()
void Legalize()
Description
This transforms the SelectionDAG into a SelectionDAG that is compatible with the target instruction selector, as indicated by the TargetLowering object. Note that this is an involved process that may invalidate pointers into the graph.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:527
¶bool LegalizeOp(llvm::SDNode* N,
SmallSetVector<llvm::SDNode*, 16>&
UpdatedNodes)
bool LegalizeOp(llvm::SDNode* N,
SmallSetVector<llvm::SDNode*, 16>&
UpdatedNodes)
Description
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. This essentially runs a single recursive walk of the \c 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 \c 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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:548
Parameters
- llvm::SDNode* N
- SmallSetVector<llvm::SDNode*, 16>& UpdatedNodes
Returns
true if \c N is a valid, legal node after calling this.
¶bool LegalizeTypes()
bool LegalizeTypes()
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:519
¶bool LegalizeVectors()
bool LegalizeVectors()
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:561
¶bool MaskedValueIsAllOnes(
llvm::SDValue Op,
const llvm::APInt& Mask,
unsigned int Depth = 0) const
bool MaskedValueIsAllOnes(
llvm::SDValue Op,
const llvm::APInt& Mask,
unsigned int Depth = 0) const
Description
Return true if '(Op & Mask) == Mask'. Op and Mask are known to be the same type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1525
Parameters
- llvm::SDValue Op
- const llvm::APInt& Mask
- unsigned int Depth = 0
¶bool MaskedValueIsZero(
llvm::SDValue Op,
const llvm::APInt& Mask,
unsigned int Depth = 0) const
bool MaskedValueIsZero(
llvm::SDValue Op,
const llvm::APInt& Mask,
unsigned int Depth = 0) const
Description
Return true if 'Op & Mask' is known to be zero. We use this predicate to simplify operations downstream. Op and Mask are known to be the same type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1514
Parameters
- llvm::SDValue Op
- const llvm::APInt& Mask
- unsigned int Depth = 0
¶bool MaskedValueIsZero(
llvm::SDValue Op,
const llvm::APInt& Mask,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
bool MaskedValueIsZero(
llvm::SDValue Op,
const llvm::APInt& Mask,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
Description
Return true if 'Op & Mask' is known to be zero in DemandedElts. We use this predicate to simplify operations downstream. Op and Mask are known to be the same type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1520
Parameters
- llvm::SDValue Op
- const llvm::APInt& Mask
- const llvm::APInt& DemandedElts
- unsigned int Depth = 0
¶llvm::SDNode* MorphNodeTo(
llvm::SDNode* N,
unsigned int Opc,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* MorphNodeTo(
llvm::SDNode* N,
unsigned int Opc,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
Description
This *mutates* the specified node to have the specified return type, opcode, and operands.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1264
Parameters
- llvm::SDNode* N
- unsigned int Opc
- llvm::SDVTList VTs
- ArrayRef<llvm::SDValue> Ops
¶void RemoveDeadNode(llvm::SDNode* N)
void RemoveDeadNode(llvm::SDNode* N)
Description
Remove the specified node from the system. If any of its operands then becomes dead, remove them as well. Inform UpdateListener for each node deleted.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1349
Parameters
- llvm::SDNode* N
¶void RemoveDeadNodes()
void RemoveDeadNodes()
Description
This method deletes all unreachable nodes in the SelectionDAG.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:564
¶void RemoveDeadNodes(
SmallVectorImpl<llvm::SDNode*>& DeadNodes)
void RemoveDeadNodes(
SmallVectorImpl<llvm::SDNode*>& DeadNodes)
Description
This method deletes the unreachable nodes in the given list, and any nodes that become unreachable as a result.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1353
Parameters
- SmallVectorImpl<llvm::SDNode*>& DeadNodes
¶void ReplaceAllUsesOfValueWith(llvm::SDValue From,
llvm::SDValue To)
void ReplaceAllUsesOfValueWith(llvm::SDValue From,
llvm::SDValue To)
Description
Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1376
Parameters
- llvm::SDValue From
- llvm::SDValue To
¶void ReplaceAllUsesOfValuesWith(
const llvm::SDValue* From,
const llvm::SDValue* To,
unsigned int Num)
void ReplaceAllUsesOfValuesWith(
const llvm::SDValue* From,
const llvm::SDValue* To,
unsigned int Num)
Description
Like ReplaceAllUsesOfValueWith, but for multiple values at once. This correctly handles the case where there is an overlap between the From values and the To values.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1381
Parameters
- const llvm::SDValue* From
- const llvm::SDValue* To
- unsigned int Num
¶void ReplaceAllUsesWith(llvm::SDNode* From,
const llvm::SDValue* To)
void ReplaceAllUsesWith(llvm::SDNode* From,
const llvm::SDValue* To)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1372
Parameters
- llvm::SDNode* From
- const llvm::SDValue* To
¶void ReplaceAllUsesWith(llvm::SDNode* From,
llvm::SDNode* To)
void ReplaceAllUsesWith(llvm::SDNode* From,
llvm::SDNode* To)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1371
Parameters
- llvm::SDNode* From
- llvm::SDNode* To
¶void ReplaceAllUsesWith(llvm::SDValue From,
llvm::SDValue To)
void ReplaceAllUsesWith(llvm::SDValue From,
llvm::SDValue To)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1370
Parameters
- llvm::SDValue From
- llvm::SDValue To
¶void RepositionNode(int Position, llvm::SDNode* N)
void RepositionNode(int Position, llvm::SDNode* N)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1399
Parameters
- int Position
- llvm::SDNode* N
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1253
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::EVT VT3
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT)
Description
These are used for target selectors to *mutate* the specified node to have the specified return type, Target opcode, and operands. Note that target opcodes are stored as ~TargetOpcode in the node opcode field. The resultant node is returned.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1242
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1243
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT
- llvm::SDValue Op1
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1244
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT
- llvm::SDValue Op1
- llvm::SDValue Op2
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1246
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1248
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1250
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT1
- llvm::EVT VT2
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1251
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT1
- llvm::EVT VT2
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDNode* SelectNodeTo(llvm::SDNode* N,
unsigned int TargetOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1)
llvm::SDNode* SelectNodeTo(llvm::SDNode* N,
unsigned int TargetOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1255
Parameters
- llvm::SDNode* N
- unsigned int TargetOpc
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::SDValue Op1
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1257
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::SDValue Op1
- llvm::SDValue Op2
¶llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* SelectNodeTo(
llvm::SDNode* N,
unsigned int MachineOpc,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1259
Parameters
- llvm::SDNode* N
- unsigned int MachineOpc
- llvm::SDVTList VTs
- ArrayRef<llvm::SDValue> Ops
¶SelectionDAG(const llvm::SelectionDAG&)
SelectionDAG(const llvm::SelectionDAG&)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:402
Parameters
- const llvm::SelectionDAG&
¶SelectionDAG(const llvm::TargetMachine& TM,
CodeGenOpt::Level)
SelectionDAG(const llvm::TargetMachine& TM,
CodeGenOpt::Level)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:401
Parameters
- const llvm::TargetMachine& TM
- CodeGenOpt::Level
¶bool SignBitIsZero(llvm::SDValue Op,
unsigned int Depth = 0) const
bool SignBitIsZero(llvm::SDValue Op,
unsigned int Depth = 0) const
Description
Return true if the sign bit of Op is known to be zero. We use this predicate to simplify operations downstream.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1509
Parameters
- llvm::SDValue Op
- unsigned int Depth = 0
¶std::pair<SDValue, SDValue> SplitVector(
const llvm::SDValue& N,
const llvm::SDLoc& DL)
std::pair<SDValue, SDValue> SplitVector(
const llvm::SDValue& N,
const llvm::SDLoc& DL)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1679
Parameters
- const llvm::SDValue& N
- const llvm::SDLoc& DL
¶std::pair<SDValue, SDValue> SplitVector(
const llvm::SDValue& N,
const llvm::SDLoc& DL,
const llvm::EVT& LoVT,
const llvm::EVT& HiVT)
std::pair<SDValue, SDValue> SplitVector(
const llvm::SDValue& N,
const llvm::SDLoc& DL,
const llvm::EVT& LoVT,
const llvm::EVT& HiVT)
Description
Split the vector with EXTRACT_SUBVECTOR using the provides VTs and return the low/high part.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1675
Parameters
- const llvm::SDValue& N
- const llvm::SDLoc& DL
- const llvm::EVT& LoVT
- const llvm::EVT& HiVT
¶std::pair<SDValue, SDValue> SplitVectorOperand(
const llvm::SDNode* N,
unsigned int OpNo)
std::pair<SDValue, SDValue> SplitVectorOperand(
const llvm::SDNode* N,
unsigned int OpNo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1687
Parameters
- const llvm::SDNode* N
- unsigned int OpNo
¶llvm::SDValue UnrollVectorOp(
llvm::SDNode* N,
unsigned int ResNE = 0)
llvm::SDValue UnrollVectorOp(
llvm::SDNode* N,
unsigned int ResNE = 0)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1651
Parameters
- llvm::SDNode* N
- unsigned int ResNE = 0
¶std::pair<SDValue, SDValue>
UnrollVectorOverflowOp(llvm::SDNode* N,
unsigned int ResNE = 0)
std::pair<SDValue, SDValue>
UnrollVectorOverflowOp(llvm::SDNode* N,
unsigned int ResNE = 0)
Description
Like UnrollVectorOp(), but for the [US](ADD|SUB|MUL)O family of opcodes. This is a separate function because those opcodes have two results.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1655
Parameters
- llvm::SDNode* N
- unsigned int ResNE = 0
¶llvm::SDNode* UpdateNodeOperands(llvm::SDNode* N,
llvm::SDValue Op)
llvm::SDNode* UpdateNodeOperands(llvm::SDNode* N,
llvm::SDValue Op)
Description
*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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1215
Parameters
¶llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1217
Parameters
- llvm::SDNode* N
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
¶llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::SDValue Op4)
llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::SDValue Op4)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1219
Parameters
- llvm::SDNode* N
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::SDValue Op4
¶llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::SDValue Op4,
llvm::SDValue Op5)
llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3,
llvm::SDValue Op4,
llvm::SDValue Op5)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1221
Parameters
- llvm::SDNode* N
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
- llvm::SDValue Op4
- llvm::SDValue Op5
¶llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
ArrayRef<llvm::SDValue> Ops)
llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1223
Parameters
- llvm::SDNode* N
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::SDNode* UpdateNodeOperands(
llvm::SDNode* N,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1216
Parameters
- llvm::SDNode* N
- llvm::SDValue Op1
- llvm::SDValue Op2
¶void VerifyDAGDiverence()
void VerifyDAGDiverence()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:503
¶llvm::SDValue WidenVector(const llvm::SDValue& N,
const llvm::SDLoc& DL)
llvm::SDValue WidenVector(const llvm::SDValue& N,
const llvm::SDLoc& DL)
Description
Widen the vector up to the next power of two using INSERT_SUBVECTOR.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1693
Parameters
- const llvm::SDValue& N
- const llvm::SDLoc& DL
¶void addCallSiteInfo(
const llvm::SDNode* CallNode,
llvm::SelectionDAG::CallSiteInfoImpl&&
CallInfo)
void addCallSiteInfo(
const llvm::SDNode* CallNode,
llvm::SelectionDAG::CallSiteInfoImpl&&
CallInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1716
Parameters
- const llvm::SDNode* CallNode
- llvm::SelectionDAG::CallSiteInfoImpl&& CallInfo
¶void addHeapAllocSite(const llvm::SDNode* Node,
llvm::MDNode* MD)
void addHeapAllocSite(const llvm::SDNode* Node,
llvm::MDNode* MD)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1727
Parameters
- const llvm::SDNode* Node
- llvm::MDNode* MD
¶int allnodes() const
int allnodes() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:477
¶int allnodes()
int allnodes()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:474
¶int allnodes_begin() const
int allnodes_begin() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:462
¶int allnodes_begin()
int allnodes_begin()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:467
¶int allnodes_end() const
int allnodes_end() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:463
¶int allnodes_end()
int allnodes_end()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:468
¶int allnodes_size() const
int allnodes_size() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:470
¶bool areNonVolatileConsecutiveLoads(
llvm::LoadSDNode* LD,
llvm::LoadSDNode* Base,
unsigned int Bytes,
int Dist) const
bool areNonVolatileConsecutiveLoads(
llvm::LoadSDNode* LD,
llvm::LoadSDNode* Base,
unsigned int Bytes,
int Dist) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1662
Parameters
- llvm::LoadSDNode* LD
- llvm::LoadSDNode* Base
- unsigned int Bytes
- int Dist
¶void clear()
void clear()
Description
Clear state and free memory necessary to make this SelectionDAG ready to process a new block.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:418
¶void clearGraphAttrs()
void clearGraphAttrs()
Description
Clear all previously defined node graph attributes. Intended to be used from a debugging tool (eg. gdb).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:445
¶llvm::KnownBits computeKnownBits(
llvm::SDValue Op,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
llvm::KnownBits computeKnownBits(
llvm::SDValue Op,
const llvm::APInt& DemandedElts,
unsigned int Depth = 0) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1540
Parameters
- llvm::SDValue Op
- const llvm::APInt& DemandedElts
- unsigned int Depth = 0
¶llvm::KnownBits computeKnownBits(
llvm::SDValue Op,
unsigned int Depth = 0) const
llvm::KnownBits computeKnownBits(
llvm::SDValue Op,
unsigned int Depth = 0) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1533
Parameters
- llvm::SDValue Op
- unsigned int Depth = 0
¶llvm::SelectionDAG::OverflowKind
computeOverflowKind(llvm::SDValue N0,
llvm::SDValue N1) const
llvm::SelectionDAG::OverflowKind
computeOverflowKind(llvm::SDValue N0,
llvm::SDValue N1) const
Description
Determine if the result of the addition of 2 node can overflow.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1554
Parameters
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1455
¶llvm::SDValue expandVAArg(llvm::SDNode* Node)
llvm::SDValue expandVAArg(llvm::SDNode* Node)
Description
Expand the specified \c ISD::VAARG node as the Legalize pass would.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1197
Parameters
- llvm::SDNode* Node
¶llvm::SDValue expandVACopy(llvm::SDNode* Node)
llvm::SDValue expandVACopy(llvm::SDNode* Node)
Description
Expand the specified \c ISD::VACOPY node as the Legalize pass would.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1200
Parameters
- llvm::SDNode* Node
¶llvm::SDValue foldConstantFPMath(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2)
llvm::SDValue foldConstantFPMath(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2)
Description
Fold floating-point operations with 2 operands when both operands are constants and/or undefined.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1482
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
¶llvm::SDValue getAddrSpaceCast(
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Ptr,
unsigned int SrcAS,
unsigned int DestAS)
llvm::SDValue getAddrSpaceCast(
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Ptr,
unsigned int SrcAS,
unsigned int DestAS)
Description
Return an AddrSpaceCastSDNode.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1189
Parameters
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Ptr
- unsigned int SrcAS
- unsigned int DestAS
¶llvm::SDValue getAllOnesConstant(
const llvm::SDLoc& DL,
llvm::EVT VT,
bool IsTarget = false,
bool IsOpaque = false)
llvm::SDValue getAllOnesConstant(
const llvm::SDLoc& DL,
llvm::EVT VT,
bool IsTarget = false,
bool IsOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:591
Parameters
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool IsTarget = false
- bool IsOpaque = false
¶llvm::SDValue getAnyExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getAnyExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be of integer type, to the integer type VT, by either any-extending or truncating it.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:821
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO)
llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO)
Description
Gets a node for an atomic op, produces result and chain and takes N operands.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1066
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT MemVT
- llvm::SDVTList VTList
- ArrayRef<llvm::SDValue> Ops
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
Description
Gets a node for an atomic op, produces result and chain and takes 1 operand.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1061
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT MemVT
- llvm::EVT VT
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Val,
llvm::MachineMemOperand* MMO)
llvm::SDValue getAtomic(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Val,
llvm::MachineMemOperand* MMO)
Description
Gets a node for an atomic op, produces result (if relevant) and chain and takes 2 operands.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1056
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT MemVT
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::SDValue Val
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getAtomicCmpSwap(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDVTList VTs,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Cmp,
llvm::SDValue Swp,
llvm::MachineMemOperand* MMO)
llvm::SDValue getAtomicCmpSwap(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::SDVTList VTs,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Cmp,
llvm::SDValue Swp,
llvm::MachineMemOperand* MMO)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1050
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT MemVT
- llvm::SDVTList VTs
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::SDValue Cmp
- llvm::SDValue Swp
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getAtomicMemcpy(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Src,
unsigned int SrcAlign,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
llvm::SDValue getAtomicMemcpy(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Src,
unsigned int SrcAlign,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:977
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- unsigned int DstAlign
- llvm::SDValue Src
- unsigned int SrcAlign
- llvm::SDValue Size
- llvm::Type* SizeTy
- unsigned int ElemSz
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶llvm::SDValue getAtomicMemmove(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Src,
unsigned int SrcAlign,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
llvm::SDValue getAtomicMemmove(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Src,
unsigned int SrcAlign,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:983
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- unsigned int DstAlign
- llvm::SDValue Src
- unsigned int SrcAlign
- llvm::SDValue Size
- llvm::Type* SizeTy
- unsigned int ElemSz
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶llvm::SDValue getAtomicMemset(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Value,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo)
llvm::SDValue getAtomicMemset(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
unsigned int DstAlign,
llvm::SDValue Value,
llvm::SDValue Size,
llvm::Type* SizeTy,
unsigned int ElemSz,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:989
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- unsigned int DstAlign
- llvm::SDValue Value
- llvm::SDValue Size
- llvm::Type* SizeTy
- unsigned int ElemSz
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
¶llvm::BlockFrequencyInfo* getBFI() const
llvm::BlockFrequencyInfo* getBFI() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:433
¶llvm::SDValue getBasicBlock(
llvm::MachineBasicBlock* MBB)
llvm::SDValue getBasicBlock(
llvm::MachineBasicBlock* MBB)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:682
Parameters
¶llvm::SDValue getBasicBlock(
llvm::MachineBasicBlock* MBB,
llvm::SDLoc dl)
llvm::SDValue getBasicBlock(
llvm::MachineBasicBlock* MBB,
llvm::SDLoc dl)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:683
Parameters
¶llvm::SDValue getBitcast(llvm::EVT VT,
llvm::SDValue V)
llvm::SDValue getBitcast(llvm::EVT VT,
llvm::SDValue V)
Description
Return a bitcast using the SDLoc of the value operand, and casting to the provided type. Use getNode to set a custom SDLoc.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1186
Parameters
¶llvm::SDValue getBlockAddress(
const llvm::BlockAddress* BA,
llvm::EVT VT,
int64_t Offset = 0,
bool isTarget = false,
unsigned int TargetFlags = 0)
llvm::SDValue getBlockAddress(
const llvm::BlockAddress* BA,
llvm::EVT VT,
int64_t Offset = 0,
bool isTarget = false,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:696
Parameters
- const llvm::BlockAddress* BA
- llvm::EVT VT
- int64_t Offset = 0
- bool isTarget = false
- unsigned int TargetFlags = 0
¶llvm::SDValue getBoolConstant(
bool V,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::EVT OpVT)
llvm::SDValue getBoolConstant(
bool V,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::EVT OpVT)
Description
Create a true or false constant of type \p VT using the target's BooleanContent for type \p OpVT.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:619
Parameters
- bool V
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::EVT OpVT
¶llvm::SDValue getBoolExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& SL,
llvm::EVT VT,
llvm::EVT OpVT)
llvm::SDValue getBoolExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& SL,
llvm::EVT VT,
llvm::EVT OpVT)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:848
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& SL
- llvm::EVT VT
- llvm::EVT OpVT
¶llvm::SDValue getBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
ArrayRef<llvm::SDUse> Ops)
llvm::SDValue getBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
ArrayRef<llvm::SDUse> Ops)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:767
Parameters
- llvm::EVT VT
- const llvm::SDLoc& DL
- ArrayRef<llvm::SDUse> Ops
¶llvm::SDValue getBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
ArrayRef<llvm::SDValue> Ops)
llvm::SDValue getBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
ArrayRef<llvm::SDValue> Ops)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:758
Parameters
- llvm::EVT VT
- const llvm::SDLoc& DL
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDValue getCALLSEQ_END(
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue InGlue,
const llvm::SDLoc& DL)
llvm::SDValue getCALLSEQ_END(
llvm::SDValue Chain,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue InGlue,
const llvm::SDLoc& DL)
Description
Return a new CALLSEQ_END node, which always must have a glue result (to ensure it's not CSE'd). CALLSEQ_END does not have a useful SDLoc.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:895
Parameters
- llvm::SDValue Chain
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue InGlue
- const llvm::SDLoc& DL
¶llvm::SDValue getCALLSEQ_START(
llvm::SDValue Chain,
uint64_t InSize,
uint64_t OutSize,
const llvm::SDLoc& DL)
llvm::SDValue getCALLSEQ_START(
llvm::SDValue Chain,
uint64_t InSize,
uint64_t OutSize,
const llvm::SDLoc& DL)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:883
Parameters
- llvm::SDValue Chain
- uint64_t InSize
- uint64_t OutSize
- const llvm::SDLoc& DL
¶llvm::SDValue getCommutedVectorShuffle(
const llvm::ShuffleVectorSDNode& SV)
llvm::SDValue getCommutedVectorShuffle(
const llvm::ShuffleVectorSDNode& SV)
Description
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>
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:808
Parameters
- const llvm::ShuffleVectorSDNode& SV
¶llvm::SDValue getCondCode(ISD::CondCode Cond)
llvm::SDValue getCondCode(ISD::CondCode Cond)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:746
Parameters
- ISD::CondCode Cond
¶llvm::SDValue getConstant(const llvm::APInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
llvm::SDValue getConstant(const llvm::APInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:588
Parameters
- const llvm::APInt& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
- bool isOpaque = false
¶llvm::SDValue getConstant(
const llvm::ConstantInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
llvm::SDValue getConstant(
const llvm::ConstantInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:597
Parameters
- const llvm::ConstantInt& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
- bool isOpaque = false
¶llvm::SDValue getConstant(uint64_t Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
llvm::SDValue getConstant(uint64_t Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false,
bool isOpaque = false)
Description
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). @ {
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:586
Parameters
- uint64_t Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
- bool isOpaque = false
¶llvm::SDDbgValue* getConstantDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
const llvm::Value* C,
const llvm::DebugLoc& DL,
unsigned int O)
llvm::SDDbgValue* getConstantDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
const llvm::Value* C,
const llvm::DebugLoc& DL,
unsigned int O)
Description
Creates a constant SDDbgValue node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1323
Parameters
- llvm::DIVariable* Var
- llvm::DIExpression* Expr
- const llvm::Value* C
- const llvm::DebugLoc& DL
- unsigned int O
¶llvm::SDValue getConstantFP(double Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
llvm::SDValue getConstantFP(double Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
Description
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. @ {
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:630
Parameters
- double Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
¶llvm::SDValue getConstantFP(
const llvm::ConstantFP& V,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
llvm::SDValue getConstantFP(
const llvm::ConstantFP& V,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:634
Parameters
- const llvm::ConstantFP& V
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
¶llvm::SDValue getConstantFP(
const llvm::APFloat& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
llvm::SDValue getConstantFP(
const llvm::APFloat& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isTarget = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:632
Parameters
- const llvm::APFloat& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isTarget = false
¶llvm::SDValue getConstantPool(
llvm::MachineConstantPoolValue* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offs = 0,
bool isT = false,
unsigned int TargetFlags = 0)
llvm::SDValue getConstantPool(
llvm::MachineConstantPoolValue* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offs = 0,
bool isT = false,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:670
Parameters
- llvm::MachineConstantPoolValue* C
- llvm::EVT VT
- unsigned int Align = 0
- int Offs = 0
- bool isT = false
- unsigned int TargetFlags = 0
¶llvm::SDValue getConstantPool(
const llvm::Constant* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offs = 0,
bool isT = false,
unsigned int TargetFlags = 0)
llvm::SDValue getConstantPool(
const llvm::Constant* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offs = 0,
bool isT = false,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:663
Parameters
- const llvm::Constant* C
- llvm::EVT VT
- unsigned int Align = 0
- int Offs = 0
- bool isT = false
- unsigned int TargetFlags = 0
¶llvm::LLVMContext* getContext() const
llvm::LLVMContext* getContext() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:430
¶llvm::SDValue getCopyFromReg(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::EVT VT)
llvm::SDValue getCopyFromReg(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:729
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- unsigned int Reg
- llvm::EVT VT
¶llvm::SDValue getCopyFromReg(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::EVT VT,
llvm::SDValue Glue)
llvm::SDValue getCopyFromReg(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::EVT VT,
llvm::SDValue Glue)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:738
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- unsigned int Reg
- llvm::EVT VT
- llvm::SDValue Glue
¶llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::SDValue N)
llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::SDValue N)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:703
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- unsigned int Reg
- llvm::SDValue N
¶llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::SDValue N,
llvm::SDValue Glue)
llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
unsigned int Reg,
llvm::SDValue N,
llvm::SDValue Glue)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:712
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- unsigned int Reg
- llvm::SDValue N
- llvm::SDValue Glue
¶llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Reg,
llvm::SDValue N,
llvm::SDValue Glue)
llvm::SDValue getCopyToReg(llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Reg,
llvm::SDValue N,
llvm::SDValue Glue)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:721
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Reg
- llvm::SDValue N
- llvm::SDValue Glue
¶const llvm::DataLayout& getDataLayout() const
const llvm::DataLayout& getDataLayout() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:423
¶llvm::SDDbgLabel* getDbgLabel(
llvm::DILabel* Label,
const llvm::DebugLoc& DL,
unsigned int O)
llvm::SDDbgLabel* getDbgLabel(
llvm::DILabel* Label,
const llvm::DebugLoc& DL,
unsigned int O)
Description
Creates a SDDbgLabel node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1338
Parameters
- llvm::DILabel* Label
- const llvm::DebugLoc& DL
- unsigned int O
¶llvm::SDDbgValue* getDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
llvm::SDNode* N,
unsigned int R,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
llvm::SDDbgValue* getDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
llvm::SDNode* N,
unsigned int R,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
Description
Creates a SDDbgValue node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1318
Parameters
- llvm::DIVariable* Var
- llvm::DIExpression* Expr
- llvm::SDNode* N
- unsigned int R
- bool IsIndirect
- const llvm::DebugLoc& DL
- unsigned int O
¶llvm::DenormalMode getDenormalMode(
llvm::EVT VT) const
llvm::DenormalMode getDenormalMode(
llvm::EVT VT) const
Description
Return the current function's default denormal handling kind for the given floating point type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1741
Parameters
- llvm::EVT VT
¶const llvm::LegacyDivergenceAnalysis*
getDivergenceAnalysis() const
const llvm::LegacyDivergenceAnalysis*
getDivergenceAnalysis() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:429
¶llvm::SDValue getEHLabel(const llvm::SDLoc& dl,
llvm::SDValue Root,
llvm::MCSymbol* Label)
llvm::SDValue getEHLabel(const llvm::SDLoc& dl,
llvm::SDValue Root,
llvm::MCSymbol* Label)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:693
Parameters
- const llvm::SDLoc& dl
- llvm::SDValue Root
- llvm::MCSymbol* Label
¶unsigned int getEVTAlignment(
llvm::EVT MemoryVT) const
unsigned int getEVTAlignment(
llvm::EVT MemoryVT) const
Description
Compute the default alignment value for the given type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1701
Parameters
- llvm::EVT MemoryVT
¶llvm::SDValue getEntryNode() const
llvm::SDValue getEntryNode() const
Description
Return the token chain corresponding to the entry of the function.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:485
¶llvm::SDValue getExtLoad(
ISD::LoadExtType ExtType,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT MemVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
llvm::SDValue getExtLoad(
ISD::LoadExtType ExtType,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT MemVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1110
Parameters
- ISD::LoadExtType ExtType
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::MachinePointerInfo PtrInfo
- llvm::EVT MemVT
- unsigned int Alignment = 0
- MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
¶llvm::SDValue getExtLoad(
ISD::LoadExtType ExtType,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
llvm::SDValue getExtLoad(
ISD::LoadExtType ExtType,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1115
Parameters
- ISD::LoadExtType ExtType
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getExternalSymbol(const char* Sym,
llvm::EVT VT)
llvm::SDValue getExternalSymbol(const char* Sym,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:684
Parameters
- const char* Sym
- llvm::EVT VT
¶llvm::SDValue getExternalSymbol(
const char* Sym,
const llvm::SDLoc& dl,
llvm::EVT VT)
llvm::SDValue getExternalSymbol(
const char* Sym,
const llvm::SDLoc& dl,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:685
Parameters
- const char* Sym
- const llvm::SDLoc& dl
- llvm::EVT VT
¶llvm::SDValue getFPExtendOrRound(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getFPExtendOrRound(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be of float type, to the float type VT, by either extending or rounding (by truncation).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:812
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getFrameIndex(int FI,
llvm::EVT VT,
bool isTarget = false)
llvm::SDValue getFrameIndex(int FI,
llvm::EVT VT,
bool isTarget = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:654
Parameters
- int FI
- llvm::EVT VT
- bool isTarget = false
¶llvm::SDDbgValue* getFrameIndexDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
unsigned int FI,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
llvm::SDDbgValue* getFrameIndexDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
unsigned int FI,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
Description
Creates a FrameIndex SDDbgValue node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1328
Parameters
- llvm::DIVariable* Var
- llvm::DIExpression* Expr
- unsigned int FI
- bool IsIndirect
- const llvm::DebugLoc& DL
- unsigned int O
¶llvm::SDValue getGLOBAL_OFFSET_TABLE(llvm::EVT VT)
llvm::SDValue getGLOBAL_OFFSET_TABLE(llvm::EVT VT)
Description
Return a GLOBAL_OFFSET_TABLE node. This does not have a useful SDLoc.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:916
Parameters
- llvm::EVT VT
¶llvm::SDValue getGlobalAddress(
const llvm::GlobalValue* GV,
const llvm::SDLoc& DL,
llvm::EVT VT,
int64_t offset = 0,
bool isTargetGA = false,
unsigned int TargetFlags = 0)
llvm::SDValue getGlobalAddress(
const llvm::GlobalValue* GV,
const llvm::SDLoc& DL,
llvm::EVT VT,
int64_t offset = 0,
bool isTargetGA = false,
unsigned int TargetFlags = 0)
Description
@ }
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:647
Parameters
- const llvm::GlobalValue* GV
- const llvm::SDLoc& DL
- llvm::EVT VT
- int64_t offset = 0
- bool isTargetGA = false
- unsigned int TargetFlags = 0
¶const std::string getGraphAttrs(
const llvm::SDNode* N) const
const std::string getGraphAttrs(
const llvm::SDNode* N) const
Description
Get graph attributes for a node. (eg. "color=red".) Used from getNodeAttributes.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:452
Parameters
- const llvm::SDNode* N
¶llvm::MDNode* getHeapAllocSite(
const llvm::SDNode* Node)
llvm::MDNode* getHeapAllocSite(
const llvm::SDNode* Node)
Description
Return the HeapAllocSite type associated with the SDNode, if it exists.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1732
Parameters
- const llvm::SDNode* Node
¶llvm::SDValue getIndexedLoad(
llvm::SDValue OrigLoad,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
llvm::SDValue getIndexedLoad(
llvm::SDValue OrigLoad,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1118
Parameters
- llvm::SDValue OrigLoad
- const llvm::SDLoc& dl
- llvm::SDValue Base
- llvm::SDValue Offset
- ISD::MemIndexedMode AM
¶llvm::SDValue getIndexedMaskedLoad(
llvm::SDValue OrigLoad,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
llvm::SDValue getIndexedMaskedLoad(
llvm::SDValue OrigLoad,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1155
Parameters
- llvm::SDValue OrigLoad
- const llvm::SDLoc& dl
- llvm::SDValue Base
- llvm::SDValue Offset
- ISD::MemIndexedMode AM
¶llvm::SDValue getIndexedMaskedStore(
llvm::SDValue OrigStore,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
llvm::SDValue getIndexedMaskedStore(
llvm::SDValue OrigStore,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1161
Parameters
- llvm::SDValue OrigStore
- const llvm::SDLoc& dl
- llvm::SDValue Base
- llvm::SDValue Offset
- ISD::MemIndexedMode AM
¶llvm::SDValue getIndexedStore(
llvm::SDValue OrigStore,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
llvm::SDValue getIndexedStore(
llvm::SDValue OrigStore,
const llvm::SDLoc& dl,
llvm::SDValue Base,
llvm::SDValue Offset,
ISD::MemIndexedMode AM)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1148
Parameters
- llvm::SDValue OrigStore
- const llvm::SDLoc& dl
- llvm::SDValue Base
- llvm::SDValue Offset
- ISD::MemIndexedMode AM
¶llvm::SDValue getIntPtrConstant(
uint64_t Val,
const llvm::SDLoc& DL,
bool isTarget = false)
llvm::SDValue getIntPtrConstant(
uint64_t Val,
const llvm::SDLoc& DL,
bool isTarget = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:599
Parameters
- uint64_t Val
- const llvm::SDLoc& DL
- bool isTarget = false
¶llvm::SDValue getJumpTable(
int JTI,
llvm::EVT VT,
bool isTarget = false,
unsigned int TargetFlags = 0)
llvm::SDValue getJumpTable(
int JTI,
llvm::EVT VT,
bool isTarget = false,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:658
Parameters
- int JTI
- llvm::EVT VT
- bool isTarget = false
- unsigned int TargetFlags = 0
¶llvm::SDValue getLabelNode(unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDValue Root,
llvm::MCSymbol* Label)
llvm::SDValue getLabelNode(unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDValue Root,
llvm::MCSymbol* Label)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:694
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::SDValue Root
- llvm::MCSymbol* Label
¶const llvm::TargetLibraryInfo& getLibInfo() const
const llvm::TargetLibraryInfo& getLibInfo() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:427
¶llvm::SDValue getLifetimeNode(
bool IsStart,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
int FrameIndex,
int64_t Size,
int64_t Offset = -1)
llvm::SDValue getLifetimeNode(
bool IsStart,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
int FrameIndex,
int64_t Size,
int64_t Offset = -1)
Description
Creates a LifetimeSDNode that starts (`IsStart==true`) or ends (`IsStart==false`) the lifetime of the portion of `FrameIndex` between offsets `Offset` and `Offset + Size`.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1091
Parameters
- bool IsStart
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- int FrameIndex
- int64_t Size
- int64_t Offset = -1
¶llvm::SDValue getLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
llvm::SDValue getLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1107
Parameters
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getLoad(
ISD::MemIndexedMode AM,
ISD::LoadExtType ExtType,
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Offset,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT MemVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr)
llvm::SDValue getLoad(
ISD::MemIndexedMode AM,
ISD::LoadExtType ExtType,
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Offset,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT MemVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1120
Parameters
- ISD::MemIndexedMode AM
- ISD::LoadExtType ExtType
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::SDValue Offset
- llvm::MachinePointerInfo PtrInfo
- llvm::EVT MemVT
- unsigned int Alignment = 0
- MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
- const llvm::MDNode* Ranges = nullptr
¶llvm::SDValue getLoad(
ISD::MemIndexedMode AM,
ISD::LoadExtType ExtType,
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Offset,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
llvm::SDValue getLoad(
ISD::MemIndexedMode AM,
ISD::LoadExtType ExtType,
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue Offset,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1126
Parameters
- ISD::MemIndexedMode AM
- ISD::LoadExtType ExtType
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::SDValue Offset
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr)
llvm::SDValue getLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes(),
const llvm::MDNode* Ranges = nullptr)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1102
Parameters
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::MachinePointerInfo PtrInfo
- unsigned int Alignment = 0
- MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
- const llvm::MDNode* Ranges = nullptr
¶llvm::SDValue getLogicalNOT(const llvm::SDLoc& DL,
llvm::SDValue Val,
llvm::EVT VT)
llvm::SDValue getLogicalNOT(const llvm::SDLoc& DL,
llvm::SDValue Val,
llvm::EVT VT)
Description
Create a logical NOT operation as (XOR Val, BooleanOne).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:854
Parameters
- const llvm::SDLoc& DL
- llvm::SDValue Val
- llvm::EVT VT
¶llvm::SDValue getMCSymbol(llvm::MCSymbol* Sym,
llvm::EVT VT)
llvm::SDValue getMCSymbol(llvm::MCSymbol* Sym,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:688
Parameters
- llvm::MCSymbol* Sym
- llvm::EVT VT
¶llvm::SDValue getMDNode(const llvm::MDNode* MD)
llvm::SDValue getMDNode(const llvm::MDNode* MD)
Description
Return an MDNodeSDNode which holds an MDNode.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1182
Parameters
- const llvm::MDNode* MD
¶llvm::MachineFunction& getMachineFunction() const
llvm::MachineFunction& getMachineFunction() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:420
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1287
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::SDValue Op1
- llvm::SDValue Op2
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1302
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::SDVTList VTs
- ArrayRef<llvm::SDValue> Ops
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
ArrayRef<llvm::EVT> ResultTys,
ArrayRef<llvm::SDValue> Ops)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
ArrayRef<llvm::EVT> ResultTys,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1300
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- ArrayRef<llvm::EVT> ResultTys
- ArrayRef<llvm::SDValue> Ops
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
ArrayRef<llvm::SDValue> Ops)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1298
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::EVT VT3
- ArrayRef<llvm::SDValue> Ops
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1295
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::EVT VT3
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1293
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::EVT VT3
- llvm::SDValue Op1
- llvm::SDValue Op2
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
ArrayRef<llvm::SDValue> Ops)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1291
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- ArrayRef<llvm::SDValue> Ops
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT1,
llvm::EVT VT2,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1289
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT1
- llvm::EVT VT2
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1278
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1279
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Op1
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1285
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT
- ArrayRef<llvm::SDValue> Ops
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2,
llvm::SDValue Op3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1283
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Op1
- llvm::SDValue Op2
- llvm::SDValue Op3
¶llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2)
llvm::MachineSDNode* getMachineNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::EVT VT,
llvm::SDValue Op1,
llvm::SDValue Op2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1281
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::EVT VT
- llvm::SDValue Op1
- llvm::SDValue Op2
¶llvm::SDValue getMaskedGather(
llvm::SDVTList VTs,
llvm::EVT VT,
const llvm::SDLoc& dl,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO,
ISD::MemIndexType IndexType)
llvm::SDValue getMaskedGather(
llvm::SDVTList VTs,
llvm::EVT VT,
const llvm::SDLoc& dl,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO,
ISD::MemIndexType IndexType)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1164
Parameters
- llvm::SDVTList VTs
- llvm::EVT VT
- const llvm::SDLoc& dl
- ArrayRef<llvm::SDValue> Ops
- llvm::MachineMemOperand* MMO
- ISD::MemIndexType IndexType
¶llvm::SDValue getMaskedLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Base,
llvm::SDValue Offset,
llvm::SDValue Mask,
llvm::SDValue Src0,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO,
ISD::MemIndexedMode AM,
ISD::LoadExtType,
bool IsExpanding = false)
llvm::SDValue getMaskedLoad(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Base,
llvm::SDValue Offset,
llvm::SDValue Mask,
llvm::SDValue Src0,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO,
ISD::MemIndexedMode AM,
ISD::LoadExtType,
bool IsExpanding = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1151
Parameters
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Base
- llvm::SDValue Offset
- llvm::SDValue Mask
- llvm::SDValue Src0
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
- ISD::MemIndexedMode AM
- ISD::LoadExtType
- bool IsExpanding = false
¶llvm::SDValue getMaskedScatter(
llvm::SDVTList VTs,
llvm::EVT VT,
const llvm::SDLoc& dl,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO,
ISD::MemIndexType IndexType)
llvm::SDValue getMaskedScatter(
llvm::SDVTList VTs,
llvm::EVT VT,
const llvm::SDLoc& dl,
ArrayRef<llvm::SDValue> Ops,
llvm::MachineMemOperand* MMO,
ISD::MemIndexType IndexType)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1167
Parameters
- llvm::SDVTList VTs
- llvm::EVT VT
- const llvm::SDLoc& dl
- ArrayRef<llvm::SDValue> Ops
- llvm::MachineMemOperand* MMO
- ISD::MemIndexType IndexType
¶llvm::SDValue getMaskedStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Base,
llvm::SDValue Offset,
llvm::SDValue Mask,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO,
ISD::MemIndexedMode AM,
bool IsTruncating = false,
bool IsCompressing = false)
llvm::SDValue getMaskedStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Base,
llvm::SDValue Offset,
llvm::SDValue Mask,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO,
ISD::MemIndexedMode AM,
bool IsTruncating = false,
bool IsCompressing = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1157
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Val
- llvm::SDValue Base
- llvm::SDValue Offset
- llvm::SDValue Mask
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
- ISD::MemIndexedMode AM
- bool IsTruncating = false
- bool IsCompressing = false
¶llvm::SDValue getMemBasePlusOffset(
llvm::SDValue Base,
int64_t Offset,
const llvm::SDLoc& DL,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getMemBasePlusOffset(
llvm::SDValue Base,
int64_t Offset,
const llvm::SDLoc& DL,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Description
Returns sum of the base pointer and offset. Unlike getObjectPtrOffset this does not set NoUnsignedWrap by default.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:858
Parameters
- llvm::SDValue Base
- int64_t Offset
- const llvm::SDLoc& DL
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getMemBasePlusOffset(
llvm::SDValue Base,
llvm::SDValue Offset,
const llvm::SDLoc& DL,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getMemBasePlusOffset(
llvm::SDValue Base,
llvm::SDValue Offset,
const llvm::SDLoc& DL,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:860
Parameters
- llvm::SDValue Base
- llvm::SDValue Offset
- const llvm::SDLoc& DL
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getMemIntrinsicNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::EVT MemVT,
llvm::MachinePointerInfo PtrInfo,
unsigned int Align = 0,
MachineMemOperand::Flags Flags = <null expr>,
uint64_t Size = 0,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
llvm::SDValue getMemIntrinsicNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::EVT MemVT,
llvm::MachinePointerInfo PtrInfo,
unsigned int Align = 0,
MachineMemOperand::Flags Flags = <null expr>,
uint64_t Size = 0,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
Description
Creates a MemIntrinsicNode that may produce a result and takes a list of operands. Opcode may be INTRINSIC_VOID, INTRINSIC_W_CHAIN, or a target-specific opcode with a value not less than FIRST_TARGET_MEMORY_OPCODE.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1074
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::SDVTList VTList
- ArrayRef<llvm::SDValue> Ops
- llvm::EVT MemVT
- llvm::MachinePointerInfo PtrInfo
- unsigned int Align = 0
- MachineMemOperand::Flags Flags = <null expr>
- uint64_t Size = 0
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
¶llvm::SDValue getMemIntrinsicNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
llvm::SDValue getMemIntrinsicNode(
unsigned int Opcode,
const llvm::SDLoc& dl,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1084
Parameters
- unsigned int Opcode
- const llvm::SDLoc& dl
- llvm::SDVTList VTList
- ArrayRef<llvm::SDValue> Ops
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getMemcpy(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool AlwaysInline,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
llvm::SDValue getMemcpy(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool AlwaysInline,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:963
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- llvm::SDValue Src
- llvm::SDValue Size
- unsigned int Align
- bool isVol
- bool AlwaysInline
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶llvm::SDValue getMemmove(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
llvm::SDValue getMemmove(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo,
llvm::MachinePointerInfo SrcPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:968
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- llvm::SDValue Src
- llvm::SDValue Size
- unsigned int Align
- bool isVol
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
- llvm::MachinePointerInfo SrcPtrInfo
¶llvm::SDValue getMemset(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo)
llvm::SDValue getMemset(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Dst,
llvm::SDValue Src,
llvm::SDValue Size,
unsigned int Align,
bool isVol,
bool isTailCall,
llvm::MachinePointerInfo DstPtrInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:973
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Dst
- llvm::SDValue Src
- llvm::SDValue Size
- unsigned int Align
- bool isVol
- bool isTailCall
- llvm::MachinePointerInfo DstPtrInfo
¶llvm::SDValue getMergeValues(
ArrayRef<llvm::SDValue> Ops,
const llvm::SDLoc& dl)
llvm::SDValue getMergeValues(
ArrayRef<llvm::SDValue> Ops,
const llvm::SDLoc& dl)
Description
Create a MERGE_VALUES node from the given operands.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1095
Parameters
- ArrayRef<llvm::SDValue> Ops
- const llvm::SDLoc& dl
¶llvm::SDValue getNOT(const llvm::SDLoc& DL,
llvm::SDValue Val,
llvm::EVT VT)
llvm::SDValue getNOT(const llvm::SDLoc& DL,
llvm::SDValue Val,
llvm::EVT VT)
Description
Create a bitwise NOT operation as (XOR Val, -1).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:851
Parameters
- const llvm::SDLoc& DL
- llvm::SDValue Val
- llvm::EVT VT
¶llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:933
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue Operand
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDUse> Ops)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDUse> Ops)
Description
Gets or creates the specified node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:922
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- ArrayRef<llvm::SDUse> Ops
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4,
llvm::SDValue N5)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4,
llvm::SDValue N5)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:955
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
- llvm::SDValue N4
- llvm::SDValue N5
¶llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:924
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- ArrayRef<llvm::SDValue> Ops
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
ArrayRef<llvm::EVT> ResultTys,
ArrayRef<llvm::SDValue> Ops)
llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
ArrayRef<llvm::EVT> ResultTys,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:926
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- ArrayRef<llvm::EVT> ResultTys
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:928
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:953
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
- llvm::SDValue N4
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:932
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:935
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDValue getNode(
unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:937
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:940
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
- llvm::SDValue N4
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4,
llvm::SDValue N5)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3,
llvm::SDValue N4,
llvm::SDValue N5)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:942
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
- llvm::SDValue N4
- llvm::SDValue N5
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:947
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:948
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- llvm::SDValue N
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2,
llvm::SDValue N3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:951
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- llvm::SDValue N1
- llvm::SDValue N2
- llvm::SDValue N3
¶llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2)
llvm::SDValue getNode(unsigned int Opcode,
const llvm::SDLoc& DL,
llvm::SDVTList VTList,
llvm::SDValue N1,
llvm::SDValue N2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:949
Parameters
- unsigned int Opcode
- const llvm::SDLoc& DL
- llvm::SDVTList VTList
- llvm::SDValue N1
- llvm::SDValue N2
¶llvm::SDNode* getNodeIfExists(
unsigned int Opcode,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
llvm::SDNode* getNodeIfExists(
unsigned int Opcode,
llvm::SDVTList VTList,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDNodeFlags Flags =
llvm::SDNodeFlags())
Description
Get the specified node if it's already available, or else return NULL.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1314
Parameters
- unsigned int Opcode
- llvm::SDVTList VTList
- ArrayRef<llvm::SDValue> Ops
- const llvm::SDNodeFlags Flags = llvm::SDNodeFlags()
¶llvm::OptimizationRemarkEmitter& getORE() const
llvm::OptimizationRemarkEmitter& getORE() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:431
¶llvm::SDValue getObjectPtrOffset(
const llvm::SDLoc& SL,
llvm::SDValue Ptr,
int64_t Offset)
llvm::SDValue getObjectPtrOffset(
const llvm::SDLoc& SL,
llvm::SDValue Ptr,
int64_t Offset)
Description
Create an add instruction with appropriate flags when used for addressing some offset of an object. i.e. if a load is split into multiple components, create an add nuw from the base pointer to the offset.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:866
Parameters
- const llvm::SDLoc& SL
- llvm::SDValue Ptr
- int64_t Offset
¶llvm::SDValue getObjectPtrOffset(
const llvm::SDLoc& SL,
llvm::SDValue Ptr,
llvm::SDValue Offset)
llvm::SDValue getObjectPtrOffset(
const llvm::SDLoc& SL,
llvm::SDValue Ptr,
llvm::SDValue Offset)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:872
Parameters
- const llvm::SDLoc& SL
- llvm::SDValue Ptr
- llvm::SDValue Offset
¶llvm::ProfileSummaryInfo* getPSI() const
llvm::ProfileSummaryInfo* getPSI() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:432
¶const llvm::Pass* getPass() const
const llvm::Pass* getPass() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:421
¶llvm::SDValue getPtrExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getPtrExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be of integer type, to the integer type VT, by either truncating it or performing either zero or sign extension as appropriate extension for the pointer's semantics.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:838
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getPtrExtendInReg(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getPtrExtendInReg(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Return the expression required to extend the Op as a pointer value assuming it was the smaller SrcTy value. This may be either a zero extend or a sign extend.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:843
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getRegister(unsigned int Reg,
llvm::EVT VT)
llvm::SDValue getRegister(unsigned int Reg,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:691
Parameters
- unsigned int Reg
- llvm::EVT VT
¶llvm::SDValue getRegisterMask(
const uint32_t* RegMask)
llvm::SDValue getRegisterMask(
const uint32_t* RegMask)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:692
Parameters
- const uint32_t* RegMask
¶const llvm::SDValue& getRoot() const
const llvm::SDValue& getRoot() const
Description
Return the root tag of the SelectionDAG.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:482
¶llvm::SelectionDAG::CallSiteInfo
getSDCallSiteInfo(const llvm::SDNode* CallNode)
llvm::SelectionDAG::CallSiteInfo
getSDCallSiteInfo(const llvm::SDNode* CallNode)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1720
Parameters
- const llvm::SDNode* CallNode
¶llvm::SDValue getSExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getSExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be of integer type, to the integer type VT, by either sign-extending or truncating it.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:825
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getSelect(const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Cond,
llvm::SDValue LHS,
llvm::SDValue RHS)
llvm::SDValue getSelect(const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Cond,
llvm::SDValue LHS,
llvm::SDValue RHS)
Description
Helper function to make it easier to build Select's if you just have operands and don't want to check for vector.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1013
Parameters
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue Cond
- llvm::SDValue LHS
- llvm::SDValue RHS
¶llvm::SDValue getSelectCC(const llvm::SDLoc& DL,
llvm::SDValue LHS,
llvm::SDValue RHS,
llvm::SDValue True,
llvm::SDValue False,
ISD::CondCode Cond)
llvm::SDValue getSelectCC(const llvm::SDLoc& DL,
llvm::SDValue LHS,
llvm::SDValue RHS,
llvm::SDValue True,
llvm::SDValue False,
ISD::CondCode Cond)
Description
Helper function to make it easier to build SelectCC's if you just have an ISD::CondCode instead of an SDValue.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1025
Parameters
- const llvm::SDLoc& DL
- llvm::SDValue LHS
- llvm::SDValue RHS
- llvm::SDValue True
- llvm::SDValue False
- ISD::CondCode Cond
¶const llvm::SelectionDAGTargetInfo&
getSelectionDAGInfo() const
const llvm::SelectionDAGTargetInfo&
getSelectionDAGInfo() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:428
¶llvm::SDValue getSetCC(
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue LHS,
llvm::SDValue RHS,
ISD::CondCode Cond,
llvm::SDValue Chain = llvm::SDValue(),
bool IsSignaling = false)
llvm::SDValue getSetCC(
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue LHS,
llvm::SDValue RHS,
ISD::CondCode Cond,
llvm::SDValue Chain = llvm::SDValue(),
bool IsSignaling = false)
Description
Helper function to make it easier to build SetCC's if you just have an ISD::CondCode instead of an SDValue.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:996
Parameters
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue LHS
- llvm::SDValue RHS
- ISD::CondCode Cond
- llvm::SDValue Chain = llvm::SDValue()
- bool IsSignaling = false
¶llvm::SDValue getShiftAmountConstant(
uint64_t Val,
llvm::EVT VT,
const llvm::SDLoc& DL,
bool LegalTypes = true)
llvm::SDValue getShiftAmountConstant(
uint64_t Val,
llvm::EVT VT,
const llvm::SDLoc& DL,
bool LegalTypes = true)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:601
Parameters
- uint64_t Val
- llvm::EVT VT
- const llvm::SDLoc& DL
- bool LegalTypes = true
¶llvm::SDValue getShiftAmountOperand(
llvm::EVT LHSTy,
llvm::SDValue Op)
llvm::SDValue getShiftAmountOperand(
llvm::EVT LHSTy,
llvm::SDValue Op)
Description
Return the specified value casted to the target's desired shift amount type.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1194
Parameters
- llvm::EVT LHSTy
- llvm::SDValue Op
¶llvm::SDValue getSplatBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
llvm::SDValue Op)
llvm::SDValue getSplatBuildVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
llvm::SDValue Op)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:775
Parameters
- llvm::EVT VT
- const llvm::SDLoc& DL
- llvm::SDValue Op
¶llvm::SDValue getSplatSourceVector(
llvm::SDValue V,
int& SplatIndex)
llvm::SDValue getSplatSourceVector(
llvm::SDValue V,
int& SplatIndex)
Description
If V is a splatted value, return the source vector and its splat index.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1627
Parameters
- llvm::SDValue V
- int& SplatIndex
¶llvm::SDValue getSplatValue(llvm::SDValue V)
llvm::SDValue getSplatValue(llvm::SDValue V)
Description
If V is a splat vector, return its scalar source operand by extracting that element from the source vector.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1631
Parameters
¶llvm::SDValue getSplatVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
llvm::SDValue Op)
llvm::SDValue getSplatVector(
llvm::EVT VT,
const llvm::SDLoc& DL,
llvm::SDValue Op)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:792
Parameters
- llvm::EVT VT
- const llvm::SDLoc& DL
- llvm::SDValue Op
¶llvm::SDValue getSrcValue(const llvm::Value* v)
llvm::SDValue getSrcValue(const llvm::Value* v)
Description
Construct a node to track a Value* through the backend.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1179
Parameters
- const llvm::Value* v
¶llvm::SDValue getStackArgumentTokenFactor(
llvm::SDValue Chain)
llvm::SDValue getStackArgumentTokenFactor(
llvm::SDValue Chain)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:961
Parameters
- llvm::SDValue Chain
¶llvm::SDValue getStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
llvm::SDValue getStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1135
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Val
- llvm::SDValue Ptr
- llvm::MachinePointerInfo PtrInfo
- unsigned int Alignment = 0
- MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
¶llvm::SDValue getStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
llvm::SDValue getStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1139
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Val
- llvm::SDValue Ptr
- llvm::MachineMemOperand* MMO
¶std::pair<SDValue, SDValue>
getStrictFPExtendOrRound(llvm::SDValue Op,
llvm::SDValue Chain,
const llvm::SDLoc& DL,
llvm::EVT VT)
std::pair<SDValue, SDValue>
getStrictFPExtendOrRound(llvm::SDValue Op,
llvm::SDValue Chain,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be a STRICT operation of float type, to the float type VT, by either extending or rounding (by truncation).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:817
Parameters
- llvm::SDValue Op
- llvm::SDValue Chain
- const llvm::SDLoc& DL
- llvm::EVT VT
¶const llvm::TargetSubtargetInfo& getSubtarget()
const
const llvm::TargetSubtargetInfo& getSubtarget()
const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:425
¶llvm::SDValue getSymbolFunctionGlobalAddress(
llvm::SDValue Op,
llvm::Function** TargetFunction = nullptr)
llvm::SDValue getSymbolFunctionGlobalAddress(
llvm::SDValue Op,
llvm::Function** TargetFunction = nullptr)
Description
Returs an GlobalAddress of the function from the current module with name matching the given ExternalSymbol. Additionally can provide the matched function. Panics the function doesn't exists.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1206
Parameters
- llvm::SDValue Op
- llvm::Function** TargetFunction = nullptr
¶const llvm::TargetMachine& getTarget() const
const llvm::TargetMachine& getTarget() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:424
¶llvm::SDValue getTargetBlockAddress(
const llvm::BlockAddress* BA,
llvm::EVT VT,
int64_t Offset = 0,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetBlockAddress(
const llvm::BlockAddress* BA,
llvm::EVT VT,
int64_t Offset = 0,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:698
Parameters
- const llvm::BlockAddress* BA
- llvm::EVT VT
- int64_t Offset = 0
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetConstant(
const llvm::APInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
llvm::SDValue getTargetConstant(
const llvm::APInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:608
Parameters
- const llvm::APInt& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isOpaque = false
¶llvm::SDValue getTargetConstant(
uint64_t Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
llvm::SDValue getTargetConstant(
uint64_t Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:604
Parameters
- uint64_t Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isOpaque = false
¶llvm::SDValue getTargetConstant(
const llvm::ConstantInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
llvm::SDValue getTargetConstant(
const llvm::ConstantInt& Val,
const llvm::SDLoc& DL,
llvm::EVT VT,
bool isOpaque = false)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:612
Parameters
- const llvm::ConstantInt& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
- bool isOpaque = false
¶llvm::SDValue getTargetConstantFP(
const llvm::ConstantFP& Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getTargetConstantFP(
const llvm::ConstantFP& Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:642
Parameters
- const llvm::ConstantFP& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getTargetConstantFP(
const llvm::APFloat& Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getTargetConstantFP(
const llvm::APFloat& Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:639
Parameters
- const llvm::APFloat& Val
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getTargetConstantFP(
double Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getTargetConstantFP(
double Val,
const llvm::SDLoc& DL,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:636
Parameters
- double Val
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getTargetConstantPool(
const llvm::Constant* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offset = 0,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetConstantPool(
const llvm::Constant* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offset = 0,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:666
Parameters
- const llvm::Constant* C
- llvm::EVT VT
- unsigned int Align = 0
- int Offset = 0
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetConstantPool(
llvm::MachineConstantPoolValue* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offset = 0,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetConstantPool(
llvm::MachineConstantPoolValue* C,
llvm::EVT VT,
unsigned int Align = 0,
int Offset = 0,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:673
Parameters
- llvm::MachineConstantPoolValue* C
- llvm::EVT VT
- unsigned int Align = 0
- int Offset = 0
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetExternalSymbol(
const char* Sym,
llvm::EVT VT,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetExternalSymbol(
const char* Sym,
llvm::EVT VT,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:686
Parameters
- const char* Sym
- llvm::EVT VT
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetExtractSubreg(
int SRIdx,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand)
llvm::SDValue getTargetExtractSubreg(
int SRIdx,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand)
Description
A convenience function for creating TargetInstrInfo::EXTRACT_SUBREG nodes.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1306
Parameters
- int SRIdx
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue Operand
¶llvm::SDValue getTargetFrameIndex(int FI,
llvm::EVT VT)
llvm::SDValue getTargetFrameIndex(int FI,
llvm::EVT VT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:655
Parameters
- int FI
- llvm::EVT VT
¶llvm::SDValue getTargetGlobalAddress(
const llvm::GlobalValue* GV,
const llvm::SDLoc& DL,
llvm::EVT VT,
int64_t offset = 0,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetGlobalAddress(
const llvm::GlobalValue* GV,
const llvm::SDLoc& DL,
llvm::EVT VT,
int64_t offset = 0,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:650
Parameters
- const llvm::GlobalValue* GV
- const llvm::SDLoc& DL
- llvm::EVT VT
- int64_t offset = 0
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetIndex(
int Index,
llvm::EVT VT,
int64_t Offset = 0,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetIndex(
int Index,
llvm::EVT VT,
int64_t Offset = 0,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:678
Parameters
- int Index
- llvm::EVT VT
- int64_t Offset = 0
- unsigned int TargetFlags = 0
¶llvm::SDValue getTargetInsertSubreg(
int SRIdx,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand,
llvm::SDValue Subreg)
llvm::SDValue getTargetInsertSubreg(
int SRIdx,
const llvm::SDLoc& DL,
llvm::EVT VT,
llvm::SDValue Operand,
llvm::SDValue Subreg)
Description
A convenience function for creating TargetInstrInfo::INSERT_SUBREG nodes.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1310
Parameters
- int SRIdx
- const llvm::SDLoc& DL
- llvm::EVT VT
- llvm::SDValue Operand
- llvm::SDValue Subreg
¶llvm::SDValue getTargetJumpTable(
int JTI,
llvm::EVT VT,
unsigned int TargetFlags = 0)
llvm::SDValue getTargetJumpTable(
int JTI,
llvm::EVT VT,
unsigned int TargetFlags = 0)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:660
Parameters
- int JTI
- llvm::EVT VT
- unsigned int TargetFlags = 0
¶const llvm::TargetLowering&
getTargetLoweringInfo() const
const llvm::TargetLowering&
getTargetLoweringInfo() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:426
¶template <class TargetMemSDNode>
llvm::SDValue getTargetMemSDNode(
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
template <class TargetMemSDNode>
llvm::SDValue getTargetMemSDNode(
llvm::SDVTList VTs,
ArrayRef<llvm::SDValue> Ops,
const llvm::SDLoc& dl,
llvm::EVT MemVT,
llvm::MachineMemOperand* MMO)
Description
Return (create a new or find existing) a target-specific node. TargetMemSDNode should be derived class from MemSDNode.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1174
Templates
- TargetMemSDNode
Parameters
- llvm::SDVTList VTs
- ArrayRef<llvm::SDValue> Ops
- const llvm::SDLoc& dl
- llvm::EVT MemVT
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getTokenFactor(
const llvm::SDLoc& DL,
SmallVectorImpl<llvm::SDValue>& Vals)
llvm::SDValue getTokenFactor(
const llvm::SDLoc& DL,
SmallVectorImpl<llvm::SDValue>& Vals)
Description
Creates a new TokenFactor containing \p Vals. If \p Vals contains 64k values or more, move values into new TokenFactors in 64k-1 blocks, until the final TokenFactor has less than 64k operands.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1228
Parameters
- const llvm::SDLoc& DL
- SmallVectorImpl<llvm::SDValue>& Vals
¶llvm::SDValue getTruncStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::EVT SVT,
llvm::MachineMemOperand* MMO)
llvm::SDValue getTruncStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::EVT SVT,
llvm::MachineMemOperand* MMO)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1146
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Val
- llvm::SDValue Ptr
- llvm::EVT SVT
- llvm::MachineMemOperand* MMO
¶llvm::SDValue getTruncStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT SVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
llvm::SDValue getTruncStore(
llvm::SDValue Chain,
const llvm::SDLoc& dl,
llvm::SDValue Val,
llvm::SDValue Ptr,
llvm::MachinePointerInfo PtrInfo,
llvm::EVT SVT,
unsigned int Alignment = 0,
MachineMemOperand::Flags MMOFlags =
MachineMemOperand::MONone,
const llvm::AAMDNodes& AAInfo =
llvm::AAMDNodes())
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1142
Parameters
- llvm::SDValue Chain
- const llvm::SDLoc& dl
- llvm::SDValue Val
- llvm::SDValue Ptr
- llvm::MachinePointerInfo PtrInfo
- llvm::EVT SVT
- unsigned int Alignment = 0
- MachineMemOperand::Flags MMOFlags = MachineMemOperand::MONone
- const llvm::AAMDNodes& AAInfo = llvm::AAMDNodes()
¶llvm::SDValue getUNDEF(llvm::EVT VT)
llvm::SDValue getUNDEF(llvm::EVT VT)
Description
Return an UNDEF node. UNDEF does not have a useful SDLoc.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:911
Parameters
- llvm::EVT VT
¶llvm::SDValue getVAArg(llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue SV,
unsigned int Align)
llvm::SDValue getVAArg(llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue Chain,
llvm::SDValue Ptr,
llvm::SDValue SV,
unsigned int Align)
Description
VAArg produces a result and token chain, and takes a pointer and a source value as input.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1043
Parameters
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue Chain
- llvm::SDValue Ptr
- llvm::SDValue SV
- unsigned int Align
¶llvm::SDDbgValue* getVRegDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
unsigned int VReg,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
llvm::SDDbgValue* getVRegDbgValue(
llvm::DIVariable* Var,
llvm::DIExpression* Expr,
unsigned int VReg,
bool IsIndirect,
const llvm::DebugLoc& DL,
unsigned int O)
Description
Creates a VReg SDDbgValue node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1333
Parameters
- llvm::DIVariable* Var
- llvm::DIExpression* Expr
- unsigned int VReg
- bool IsIndirect
- const llvm::DebugLoc& DL
- unsigned int O
¶llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2)
llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:572
Parameters
¶llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3)
llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:573
Parameters
¶llvm::SDVTList getVTList(llvm::EVT VT)
llvm::SDVTList getVTList(llvm::EVT VT)
Description
Return an SDVTList that represents the list of values specified.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:571
Parameters
- llvm::EVT VT
¶llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::EVT VT4)
llvm::SDVTList getVTList(llvm::EVT VT1,
llvm::EVT VT2,
llvm::EVT VT3,
llvm::EVT VT4)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:574
Parameters
¶llvm::SDVTList getVTList(ArrayRef<llvm::EVT> VTs)
llvm::SDVTList getVTList(ArrayRef<llvm::EVT> VTs)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:575
Parameters
- ArrayRef<llvm::EVT> VTs
¶llvm::SDValue getValueType(llvm::EVT)
llvm::SDValue getValueType(llvm::EVT)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:690
Parameters
¶llvm::SDValue getVectorShuffle(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue N1,
llvm::SDValue N2,
ArrayRef<int> Mask)
llvm::SDValue getVectorShuffle(
llvm::EVT VT,
const llvm::SDLoc& dl,
llvm::SDValue N1,
llvm::SDValue N2,
ArrayRef<int> Mask)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:751
Parameters
- llvm::EVT VT
- const llvm::SDLoc& dl
- llvm::SDValue N1
- llvm::SDValue N2
- ArrayRef<int> Mask
¶llvm::SDValue getZExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getZExtOrTrunc(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Convert Op, which must be of integer type, to the integer type VT, by either zero-extending or truncating it.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:829
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶llvm::SDValue getZeroExtendInReg(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
llvm::SDValue getZeroExtendInReg(
llvm::SDValue Op,
const llvm::SDLoc& DL,
llvm::EVT VT)
Description
Return the expression required to zero extend the Op value assuming it was the smaller SrcTy value.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:833
Parameters
- llvm::SDValue Op
- const llvm::SDLoc& DL
- llvm::EVT VT
¶bool hasDebugValues() const
bool hasDebugValues() const
Description
Return true if there are any SDDbgValue nodes associated with this SelectionDAG.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1432
¶bool haveNoCommonBitsSet(llvm::SDValue A,
llvm::SDValue B) const
bool haveNoCommonBitsSet(llvm::SDValue A,
llvm::SDValue B) const
Description
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'.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1612
Parameters
¶void init(
llvm::MachineFunction& NewMF,
llvm::OptimizationRemarkEmitter& NewORE,
llvm::Pass* PassPtr,
const llvm::TargetLibraryInfo* LibraryInfo,
llvm::LegacyDivergenceAnalysis* Divergence,
llvm::ProfileSummaryInfo* PSIin,
llvm::BlockFrequencyInfo* BFIin)
void init(
llvm::MachineFunction& NewMF,
llvm::OptimizationRemarkEmitter& NewORE,
llvm::Pass* PassPtr,
const llvm::TargetLibraryInfo* LibraryInfo,
llvm::LegacyDivergenceAnalysis* Divergence,
llvm::ProfileSummaryInfo* PSIin,
llvm::BlockFrequencyInfo* BFIin)
Description
Prepare this SelectionDAG to process code in the given MachineFunction.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:407
Parameters
- llvm::MachineFunction& NewMF
- llvm::OptimizationRemarkEmitter& NewORE
- llvm::Pass* PassPtr
- const llvm::TargetLibraryInfo* LibraryInfo
- llvm::LegacyDivergenceAnalysis* Divergence
- llvm::ProfileSummaryInfo* PSIin
- llvm::BlockFrequencyInfo* BFIin
¶bool isBaseWithConstantOffset(
llvm::SDValue Op) const
bool isBaseWithConstantOffset(
llvm::SDValue Op) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1586
Parameters
¶llvm::SDNode* isConstantFPBuildVectorOrConstantFP(
llvm::SDValue N)
llvm::SDNode* isConstantFPBuildVectorOrConstantFP(
llvm::SDValue N)
Description
Test whether the given value is a constant FP or similar node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1707
Parameters
¶llvm::SDNode*
isConstantIntBuildVectorOrConstantInt(
llvm::SDValue N)
llvm::SDNode*
isConstantIntBuildVectorOrConstantInt(
llvm::SDValue N)
Description
Test whether the given value is a constant int or similar node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1704
Parameters
¶inline bool isConstantValueOfAnyType(
llvm::SDValue N)
inline bool isConstantValueOfAnyType(
llvm::SDValue N)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1711
Parameters
Returns
true if \p N is any kind of constant or build_vector of constants, int or float. If a vector, it may not necessarily be a splat.
¶bool isEqualTo(llvm::SDValue A,
llvm::SDValue B) const
bool isEqualTo(llvm::SDValue A,
llvm::SDValue B) const
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1608
Parameters
¶bool isKnownNeverNaN(llvm::SDValue Op,
bool SNaN = false,
unsigned int Depth = 0) const
bool isKnownNeverNaN(llvm::SDValue Op,
bool SNaN = false,
unsigned int Depth = 0) const
Description
Test whether the given SDValue is known to never be NaN. If \p SNaN is true, returns if \p Op is known to never be a signaling NaN (it may still be a qNaN).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1591
Parameters
- llvm::SDValue Op
- bool SNaN = false
- unsigned int Depth = 0
¶bool isKnownNeverSNaN(
llvm::SDValue Op,
unsigned int Depth = 0) const
bool isKnownNeverSNaN(
llvm::SDValue Op,
unsigned int Depth = 0) const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1594
Parameters
- llvm::SDValue Op
- unsigned int Depth = 0
Returns
true if \p Op is known to never be a signaling NaN.
¶bool isKnownNeverZero(llvm::SDValue Op) const
bool isKnownNeverZero(llvm::SDValue Op) const
Description
Test whether the given SDValue is known to contain non-zero value(s).
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1603
Parameters
¶bool isKnownNeverZeroFloat(llvm::SDValue Op) const
bool isKnownNeverZeroFloat(llvm::SDValue Op) const
Description
Test whether the given floating point SDValue is known to never be positive or negative zero.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1600
Parameters
¶bool isKnownToBeAPowerOfTwo(
llvm::SDValue Val) const
bool isKnownToBeAPowerOfTwo(
llvm::SDValue Val) const
Description
Test if the given value is known to have exactly one bit set. This differs from computeKnownBits in that it doesn't necessarily determine which bit is set.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1559
Parameters
- llvm::SDValue Val
¶bool isSplatValue(llvm::SDValue V,
bool AllowUndefs = false)
bool isSplatValue(llvm::SDValue V,
bool AllowUndefs = false)
Description
Test whether \p V has a splatted value.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1624
Parameters
- llvm::SDValue V
- bool AllowUndefs = false
¶bool isSplatValue(llvm::SDValue V,
const llvm::APInt& DemandedElts,
llvm::APInt& UndefElts)
bool isSplatValue(llvm::SDValue V,
const llvm::APInt& DemandedElts,
llvm::APInt& UndefElts)
Description
Test whether \p V has a splatted value for all the demanded elements. On success \p UndefElts will indicate the elements that have UNDEF values instead of the splat value, this is only guaranteed to be correct for \p DemandedElts. NOTE: The function will return true for a demanded splat of UNDEF values.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1621
Parameters
- llvm::SDValue V
- const llvm::APInt& DemandedElts
- llvm::APInt& UndefElts
¶bool isUndef(unsigned int Opcode,
ArrayRef<llvm::SDValue> Ops)
bool isUndef(unsigned int Opcode,
ArrayRef<llvm::SDValue> Ops)
Description
Return true if the result of this operation is always undefined.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:908
Parameters
- unsigned int Opcode
- ArrayRef<llvm::SDValue> Ops
¶llvm::SDValue makeEquivalentMemoryOrdering(
llvm::LoadSDNode* Old,
llvm::SDValue New)
llvm::SDValue makeEquivalentMemoryOrdering(
llvm::LoadSDNode* Old,
llvm::SDValue New)
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1389
Parameters
- llvm::LoadSDNode* Old
- llvm::SDValue New
¶llvm::SDValue matchBinOpReduction(
llvm::SDNode* Extract,
ISD::NodeType& BinOp,
ArrayRef<ISD::NodeType> CandidateBinOps,
bool AllowPartials = false)
llvm::SDValue matchBinOpReduction(
llvm::SDNode* Extract,
ISD::NodeType& BinOp,
ArrayRef<ISD::NodeType> CandidateBinOps,
bool AllowPartials = false)
Description
Match a binop + shuffle pyramid that represents a horizontal reduction over the elements of a vector starting from the EXTRACT_VECTOR_ELT node /p Extract. The reduction must use one of the opcodes listed in /p CandidateBinOps and on success /p BinOp will contain the matching opcode. Returns the vector that is being reduced on, or SDValue() if a reduction was not matched. If \p AllowPartials is set then in the case of a reduction pattern that only matches the first few stages, the extracted subvector of the start of the reduction is returned.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1641
Parameters
- llvm::SDNode* Extract
- ISD::NodeType& BinOp
- ArrayRef<ISD::NodeType> CandidateBinOps
- bool AllowPartials = false
¶llvm::SDNode* mutateStrictFPToFP(
llvm::SDNode* Node)
llvm::SDNode* mutateStrictFPToFP(
llvm::SDNode* Node)
Description
Mutate the specified strict FP node to its non-strict equivalent, unlinking the node from its chain and dropping the metadata arguments. The node must be a strict FP node.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1270
Parameters
- llvm::SDNode* Node
¶void salvageDebugInfo(llvm::SDNode& N)
void salvageDebugInfo(llvm::SDNode& N)
Description
To be invoked on an SDNode that is slated to be erased. This function mirrors \c llvm::salvageDebugInfo.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1453
Parameters
- llvm::SDNode& N
¶void setFunctionLoweringInfo(
llvm::FunctionLoweringInfo* FuncInfo)
void setFunctionLoweringInfo(
llvm::FunctionLoweringInfo* FuncInfo)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:412
Parameters
- llvm::FunctionLoweringInfo* FuncInfo
¶void setGraphAttrs(const llvm::SDNode* N,
const char* Attrs)
void setGraphAttrs(const llvm::SDNode* N,
const char* Attrs)
Description
Set graph attributes for a node. (eg. "color=red".)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:448
Parameters
- const llvm::SDNode* N
- const char* Attrs
¶void setGraphColor(const llvm::SDNode* N,
const char* Color)
void setGraphColor(const llvm::SDNode* N,
const char* Color)
Description
Convenience for setting node color attribute.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:455
Parameters
- const llvm::SDNode* N
- const char* Color
¶void setNodeMemRefs(
llvm::MachineSDNode* N,
ArrayRef<llvm::MachineMemOperand*> NewMemRefs)
void setNodeMemRefs(
llvm::MachineSDNode* N,
ArrayRef<llvm::MachineMemOperand*> NewMemRefs)
Description
*Mutate* the specified machine node's memory references to the provided list.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1232
Parameters
- llvm::MachineSDNode* N
- ArrayRef<llvm::MachineMemOperand*> NewMemRefs
¶const llvm::SDValue& setRoot(llvm::SDValue N)
const llvm::SDValue& setRoot(llvm::SDValue N)
Description
Set the current root tag of the SelectionDAG.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:491
Parameters
¶void setSubgraphColor(llvm::SDNode* N,
const char* Color)
void setSubgraphColor(llvm::SDNode* N,
const char* Color)
Description
Convenience for setting subgraph color attribute.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:458
Parameters
- llvm::SDNode* N
- const char* Color
¶bool shouldOptForSize() const
bool shouldOptForSize() const
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1745
¶llvm::SDValue simplifyFPBinop(unsigned int Opcode,
llvm::SDValue X,
llvm::SDValue Y)
llvm::SDValue simplifyFPBinop(unsigned int Opcode,
llvm::SDValue X,
llvm::SDValue Y)
Description
Try to simplify a floating-point binary operation into 1 of its operands or a constant.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1039
Parameters
- unsigned int Opcode
- llvm::SDValue X
- llvm::SDValue Y
¶llvm::SDValue simplifySelect(llvm::SDValue Cond,
llvm::SDValue TVal,
llvm::SDValue FVal)
llvm::SDValue simplifySelect(llvm::SDValue Cond,
llvm::SDValue TVal,
llvm::SDValue FVal)
Description
Try to simplify a select/vselect into 1 of its operands or a constant.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1032
Parameters
- llvm::SDValue Cond
- llvm::SDValue TVal
- llvm::SDValue FVal
¶llvm::SDValue simplifyShift(llvm::SDValue X,
llvm::SDValue Y)
llvm::SDValue simplifyShift(llvm::SDValue X,
llvm::SDValue Y)
Description
Try to simplify a shift into 1 of its operands or a constant.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1035
Parameters
¶void transferDbgValues(
llvm::SDValue From,
llvm::SDValue To,
unsigned int OffsetInBits = 0,
unsigned int SizeInBits = 0,
bool InvalidateDbg = true)
void transferDbgValues(
llvm::SDValue From,
llvm::SDValue To,
unsigned int OffsetInBits = 0,
unsigned int SizeInBits = 0,
bool InvalidateDbg = true)
Description
Transfer debug values from one node to another, while optionally generating fragment expressions for split-up values. If \p InvalidateDbg is set, debug values are invalidated after they are transferred.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1343
Parameters
- llvm::SDValue From
- llvm::SDValue To
- unsigned int OffsetInBits = 0
- unsigned int SizeInBits = 0
- bool InvalidateDbg = true
¶void updateDivergence(llvm::SDNode* N)
void updateDivergence(llvm::SDNode* N)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:1236
Parameters
- llvm::SDNode* N
¶void viewGraph(const std::string& Title)
void viewGraph(const std::string& Title)
Description
Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:436
Parameters
- const std::string& Title
¶void viewGraph()
void viewGraph()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:437
¶~SelectionDAG()
~SelectionDAG()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:404