LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
llvm::SelectionDAG Class Reference

#include <SelectionDAG.h>

Collaboration diagram for llvm::SelectionDAG:
Collaboration graph
[legend]

Classes

struct  DAGUpdateListener
 

Public Types

typedef ilist< SDNode >
::const_iterator 
allnodes_const_iterator
 
typedef ilist< SDNode >::iterator allnodes_iterator
 

Public Member Functions

 SelectionDAG (const TargetMachine &TM, llvm::CodeGenOpt::Level)
 
 ~SelectionDAG ()
 
void init (MachineFunction &mf, const TargetTransformInfo *TTI, const TargetLowering *TLI)
 
void clear ()
 
MachineFunctiongetMachineFunction () const
 
const TargetMachinegetTarget () const
 
const TargetLoweringgetTargetLoweringInfo () const
 
const TargetSelectionDAGInfogetSelectionDAGInfo () const
 
const TargetTransformInfogetTargetTransformInfo () const
 
LLVMContextgetContext () const
 
void viewGraph (const std::string &Title)
 
void viewGraph ()
 
void clearGraphAttrs ()
 
void setGraphAttrs (const SDNode *N, const char *Attrs)
 
const std::string getGraphAttrs (const SDNode *N) const
 
void setGraphColor (const SDNode *N, const char *Color)
 
void setSubgraphColor (SDNode *N, const char *Color)
 
allnodes_const_iterator allnodes_begin () const
 
allnodes_const_iterator allnodes_end () const
 
allnodes_iterator allnodes_begin ()
 
allnodes_iterator allnodes_end ()
 
ilist< SDNode >::size_type allnodes_size () const
 
const SDValuegetRoot () const
 
SDValue getEntryNode () const
 
const SDValuesetRoot (SDValue N)
 
void Combine (CombineLevel Level, AliasAnalysis &AA, CodeGenOpt::Level OptLevel)
 
bool LegalizeTypes ()
 
void Legalize ()
 
bool LegalizeVectors ()
 
void RemoveDeadNodes ()
 
void DeleteNode (SDNode *N)
 
SDVTList getVTList (EVT VT)
 
SDVTList getVTList (EVT VT1, EVT VT2)
 
SDVTList getVTList (EVT VT1, EVT VT2, EVT VT3)
 
SDVTList getVTList (EVT VT1, EVT VT2, EVT VT3, EVT VT4)
 
SDVTList getVTList (const EVT *VTs, unsigned NumVTs)
 
SDValue getConstant (uint64_t Val, EVT VT, bool isTarget=false)
 
SDValue getConstant (const APInt &Val, EVT VT, bool isTarget=false)
 
SDValue getConstant (const ConstantInt &Val, EVT VT, bool isTarget=false)
 
SDValue getIntPtrConstant (uint64_t Val, bool isTarget=false)
 
SDValue getTargetConstant (uint64_t Val, EVT VT)
 
SDValue getTargetConstant (const APInt &Val, EVT VT)
 
SDValue getTargetConstant (const ConstantInt &Val, EVT VT)
 
SDValue getConstantFP (double Val, EVT VT, bool isTarget=false)
 
SDValue getConstantFP (const APFloat &Val, EVT VT, bool isTarget=false)
 
SDValue getConstantFP (const ConstantFP &CF, EVT VT, bool isTarget=false)
 
SDValue getTargetConstantFP (double Val, EVT VT)
 
SDValue getTargetConstantFP (const APFloat &Val, EVT VT)
 
SDValue getTargetConstantFP (const ConstantFP &Val, EVT VT)
 
SDValue getGlobalAddress (const GlobalValue *GV, SDLoc DL, EVT VT, int64_t offset=0, bool isTargetGA=false, unsigned char TargetFlags=0)
 
SDValue getTargetGlobalAddress (const GlobalValue *GV, SDLoc DL, EVT VT, int64_t offset=0, unsigned char TargetFlags=0)
 
SDValue getFrameIndex (int FI, EVT VT, bool isTarget=false)
 
SDValue getTargetFrameIndex (int FI, EVT VT)
 
SDValue getJumpTable (int JTI, EVT VT, bool isTarget=false, unsigned char TargetFlags=0)
 
SDValue getTargetJumpTable (int JTI, EVT VT, unsigned char TargetFlags=0)
 
SDValue getConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned char TargetFlags=0)
 
SDValue getTargetConstantPool (const Constant *C, EVT VT, unsigned Align=0, int Offset=0, unsigned char TargetFlags=0)
 
SDValue getConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offs=0, bool isT=false, unsigned char TargetFlags=0)
 
SDValue getTargetConstantPool (MachineConstantPoolValue *C, EVT VT, unsigned Align=0, int Offset=0, unsigned char TargetFlags=0)
 
SDValue getTargetIndex (int Index, EVT VT, int64_t Offset=0, unsigned char TargetFlags=0)
 
SDValue getBasicBlock (MachineBasicBlock *MBB)
 
SDValue getBasicBlock (MachineBasicBlock *MBB, SDLoc dl)
 
SDValue getExternalSymbol (const char *Sym, EVT VT)
 
SDValue getExternalSymbol (const char *Sym, SDLoc dl, EVT VT)
 
SDValue getTargetExternalSymbol (const char *Sym, EVT VT, unsigned char TargetFlags=0)
 
SDValue getValueType (EVT)
 
SDValue getRegister (unsigned Reg, EVT VT)
 
SDValue getRegisterMask (const uint32_t *RegMask)
 
SDValue getEHLabel (SDLoc dl, SDValue Root, MCSymbol *Label)
 
SDValue getBlockAddress (const BlockAddress *BA, EVT VT, int64_t Offset=0, bool isTarget=false, unsigned char TargetFlags=0)
 
SDValue getTargetBlockAddress (const BlockAddress *BA, EVT VT, int64_t Offset=0, unsigned char TargetFlags=0)
 
SDValue getCopyToReg (SDValue Chain, SDLoc dl, unsigned Reg, SDValue N)
 
SDValue getCopyToReg (SDValue Chain, SDLoc dl, unsigned Reg, SDValue N, SDValue Glue)
 
SDValue getCopyToReg (SDValue Chain, SDLoc dl, SDValue Reg, SDValue N, SDValue Glue)
 
SDValue getCopyFromReg (SDValue Chain, SDLoc dl, unsigned Reg, EVT VT)
 
SDValue getCopyFromReg (SDValue Chain, SDLoc dl, unsigned Reg, EVT VT, SDValue Glue)
 
SDValue getCondCode (ISD::CondCode Cond)
 
SDValue getConvertRndSat (EVT VT, SDLoc dl, SDValue Val, SDValue DTy, SDValue STy, SDValue Rnd, SDValue Sat, ISD::CvtCode Code)
 
SDValue getVectorShuffle (EVT VT, SDLoc dl, SDValue N1, SDValue N2, const int *MaskElts)
 
SDValue getAnyExtOrTrunc (SDValue Op, SDLoc DL, EVT VT)
 
SDValue getSExtOrTrunc (SDValue Op, SDLoc DL, EVT VT)
 
SDValue getZExtOrTrunc (SDValue Op, SDLoc DL, EVT VT)
 
SDValue getZeroExtendInReg (SDValue Op, SDLoc DL, EVT SrcTy)
 
SDValue getNOT (SDLoc DL, SDValue Val, EVT VT)
 getNOT - Create a bitwise NOT operation as (XOR Val, -1). More...
 
SDValue getCALLSEQ_START (SDValue Chain, SDValue Op, SDLoc DL)
 
SDValue getCALLSEQ_END (SDValue Chain, SDValue Op1, SDValue Op2, SDValue InGlue, SDLoc DL)
 
SDValue getUNDEF (EVT VT)
 getUNDEF - Return an UNDEF node. UNDEF does not have a useful SDLoc. More...
 
SDValue getGLOBAL_OFFSET_TABLE (EVT VT)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, SDValue N)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2, SDValue N3)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDValue N4)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDValue N4, SDValue N5)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, const SDUse *Ops, unsigned NumOps)
 
SDValue getNode (unsigned Opcode, SDLoc DL, EVT VT, const SDValue *Ops, unsigned NumOps)
 
SDValue getNode (unsigned Opcode, SDLoc DL, ArrayRef< EVT > ResultTys, const SDValue *Ops, unsigned NumOps)
 
SDValue getNode (unsigned Opcode, SDLoc DL, const EVT *VTs, unsigned NumVTs, const SDValue *Ops, unsigned NumOps)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, const SDValue *Ops, unsigned NumOps)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, SDValue N2)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, SDValue N2, SDValue N3)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, SDValue N2, SDValue N3, SDValue N4)
 
SDValue getNode (unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, SDValue N2, SDValue N3, SDValue N4, SDValue N5)
 
SDValue getStackArgumentTokenFactor (SDValue Chain)
 
SDValue getMemcpy (SDValue Chain, SDLoc dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo)
 
SDValue getMemmove (SDValue Chain, SDLoc dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo)
 
SDValue getMemset (SDValue Chain, SDLoc dl, SDValue Dst, SDValue Src, SDValue Size, unsigned Align, bool isVol, MachinePointerInfo DstPtrInfo)
 
SDValue getSetCC (SDLoc DL, EVT VT, SDValue LHS, SDValue RHS, ISD::CondCode Cond)
 
SDValue getSelect (SDLoc DL, EVT VT, SDValue Cond, SDValue LHS, SDValue RHS)
 
SDValue getSelectCC (SDLoc DL, SDValue LHS, SDValue RHS, SDValue True, SDValue False, ISD::CondCode Cond)
 
SDValue getVAArg (EVT VT, SDLoc dl, SDValue Chain, SDValue Ptr, SDValue SV, unsigned Align)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Cmp, SDValue Swp, MachinePointerInfo PtrInfo, unsigned Alignment, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Cmp, SDValue Swp, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, const Value *PtrVal, unsigned Alignment, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, SDValue Chain, SDValue Ptr, SDValue Val, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, EVT VT, SDValue Chain, SDValue Ptr, const Value *PtrVal, unsigned Alignment, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, EVT VT, SDValue Chain, SDValue Ptr, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getAtomic (unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTList, SDValue *Ops, unsigned NumOps, MachineMemOperand *MMO, AtomicOrdering Ordering, SynchronizationScope SynchScope)
 
SDValue getMemIntrinsicNode (unsigned Opcode, SDLoc dl, const EVT *VTs, unsigned NumVTs, const SDValue *Ops, unsigned NumOps, EVT MemVT, MachinePointerInfo PtrInfo, unsigned Align=0, bool Vol=false, bool ReadMem=true, bool WriteMem=true)
 
SDValue getMemIntrinsicNode (unsigned Opcode, SDLoc dl, SDVTList VTList, const SDValue *Ops, unsigned NumOps, EVT MemVT, MachinePointerInfo PtrInfo, unsigned Align=0, bool Vol=false, bool ReadMem=true, bool WriteMem=true)
 
SDValue getMemIntrinsicNode (unsigned Opcode, SDLoc dl, SDVTList VTList, const SDValue *Ops, unsigned NumOps, EVT MemVT, MachineMemOperand *MMO)
 
SDValue getMergeValues (const SDValue *Ops, unsigned NumOps, SDLoc dl)
 getMergeValues - Create a MERGE_VALUES node from the given operands. More...
 
SDValue getLoad (EVT VT, SDLoc dl, SDValue Chain, SDValue Ptr, MachinePointerInfo PtrInfo, bool isVolatile, bool isNonTemporal, bool isInvariant, unsigned Alignment, const MDNode *TBAAInfo=0, const MDNode *Ranges=0)
 
SDValue getLoad (EVT VT, SDLoc dl, SDValue Chain, SDValue Ptr, MachineMemOperand *MMO)
 
SDValue getExtLoad (ISD::LoadExtType ExtType, SDLoc dl, EVT VT, SDValue Chain, SDValue Ptr, MachinePointerInfo PtrInfo, EVT MemVT, bool isVolatile, bool isNonTemporal, unsigned Alignment, const MDNode *TBAAInfo=0)
 
SDValue getExtLoad (ISD::LoadExtType ExtType, SDLoc dl, EVT VT, SDValue Chain, SDValue Ptr, EVT MemVT, MachineMemOperand *MMO)
 
SDValue getIndexedLoad (SDValue OrigLoad, SDLoc dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM)
 
SDValue getLoad (ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, EVT VT, SDLoc dl, SDValue Chain, SDValue Ptr, SDValue Offset, MachinePointerInfo PtrInfo, EVT MemVT, bool isVolatile, bool isNonTemporal, bool isInvariant, unsigned Alignment, const MDNode *TBAAInfo=0, const MDNode *Ranges=0)
 
SDValue getLoad (ISD::MemIndexedMode AM, ISD::LoadExtType ExtType, EVT VT, SDLoc dl, SDValue Chain, SDValue Ptr, SDValue Offset, EVT MemVT, MachineMemOperand *MMO)
 
SDValue getStore (SDValue Chain, SDLoc dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, bool isVolatile, bool isNonTemporal, unsigned Alignment, const MDNode *TBAAInfo=0)
 
SDValue getStore (SDValue Chain, SDLoc dl, SDValue Val, SDValue Ptr, MachineMemOperand *MMO)
 
SDValue getTruncStore (SDValue Chain, SDLoc dl, SDValue Val, SDValue Ptr, MachinePointerInfo PtrInfo, EVT TVT, bool isNonTemporal, bool isVolatile, unsigned Alignment, const MDNode *TBAAInfo=0)
 
SDValue getTruncStore (SDValue Chain, SDLoc dl, SDValue Val, SDValue Ptr, EVT TVT, MachineMemOperand *MMO)
 
SDValue getIndexedStore (SDValue OrigStoe, SDLoc dl, SDValue Base, SDValue Offset, ISD::MemIndexedMode AM)
 
SDValue getSrcValue (const Value *v)
 getSrcValue - Construct a node to track a Value* through the backend. More...
 
SDValue getMDNode (const MDNode *MD)
 getMDNode - Return an MDNodeSDNode which holds an MDNode. More...
 
SDValue getAddrSpaceCast (SDLoc dl, EVT VT, SDValue Ptr, unsigned SrcAS, unsigned DestAS)
 getAddrSpaceCast - Return an AddrSpaceCastSDNode. More...
 
SDValue getShiftAmountOperand (EVT LHSTy, SDValue Op)
 
SDNodeUpdateNodeOperands (SDNode *N, SDValue Op)
 
SDNodeUpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2)
 
SDNodeUpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3)
 
SDNodeUpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3, SDValue Op4)
 
SDNodeUpdateNodeOperands (SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3, SDValue Op4, SDValue Op5)
 
SDNodeUpdateNodeOperands (SDNode *N, const SDValue *Ops, unsigned NumOps)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT, SDValue Op1)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT, SDValue Op1, SDValue Op2)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT, SDValue Op1, SDValue Op2, SDValue Op3)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT, const SDValue *Ops, unsigned NumOps)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, const SDValue *Ops, unsigned NumOps)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, EVT VT3, const SDValue *Ops, unsigned NumOps)
 
SDNodeSelectNodeTo (SDNode *N, unsigned MachineOpc, EVT VT1, EVT VT2, EVT VT3, EVT VT4, const SDValue *Ops, unsigned NumOps)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, SDValue Op1)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2, SDValue Op3)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, EVT VT1, EVT VT2, EVT VT3, SDValue Op1, SDValue Op2, SDValue Op3)
 
SDNodeSelectNodeTo (SDNode *N, unsigned TargetOpc, SDVTList VTs, const SDValue *Ops, unsigned NumOps)
 
SDNodeMorphNodeTo (SDNode *N, unsigned Opc, SDVTList VTs, const SDValue *Ops, unsigned NumOps)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT, SDValue Op1)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT, SDValue Op1, SDValue Op2)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT, SDValue Op1, SDValue Op2, SDValue Op3)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT, ArrayRef< SDValue > Ops)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, SDValue Op1)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, SDValue Op1, SDValue Op2, SDValue Op3)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, ArrayRef< SDValue > Ops)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, EVT VT3, SDValue Op1, SDValue Op2)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, EVT VT3, SDValue Op1, SDValue Op2, SDValue Op3)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, EVT VT3, ArrayRef< SDValue > Ops)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, EVT VT1, EVT VT2, EVT VT3, EVT VT4, ArrayRef< SDValue > Ops)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, ArrayRef< EVT > ResultTys, ArrayRef< SDValue > Ops)
 
MachineSDNodegetMachineNode (unsigned Opcode, SDLoc dl, SDVTList VTs, ArrayRef< SDValue > Ops)
 
SDValue getTargetExtractSubreg (int SRIdx, SDLoc DL, EVT VT, SDValue Operand)
 
SDValue getTargetInsertSubreg (int SRIdx, SDLoc DL, EVT VT, SDValue Operand, SDValue Subreg)
 
SDNodegetNodeIfExists (unsigned Opcode, SDVTList VTs, const SDValue *Ops, unsigned NumOps)
 
SDDbgValuegetDbgValue (MDNode *MDPtr, SDNode *N, unsigned R, uint64_t Off, DebugLoc DL, unsigned O)
 
SDDbgValuegetDbgValue (MDNode *MDPtr, const Value *C, uint64_t Off, DebugLoc DL, unsigned O)
 
SDDbgValuegetDbgValue (MDNode *MDPtr, unsigned FI, uint64_t Off, DebugLoc DL, unsigned O)
 
void RemoveDeadNode (SDNode *N)
 
void RemoveDeadNodes (SmallVectorImpl< SDNode * > &DeadNodes)
 
void ReplaceAllUsesWith (SDValue From, SDValue Op)
 
void ReplaceAllUsesWith (SDNode *From, SDNode *To)
 
void ReplaceAllUsesWith (SDNode *From, const SDValue *To)
 
void ReplaceAllUsesOfValueWith (SDValue From, SDValue To)
 
void ReplaceAllUsesOfValuesWith (const SDValue *From, const SDValue *To, unsigned Num)
 
unsigned AssignTopologicalOrder ()
 
void RepositionNode (allnodes_iterator Position, SDNode *N)
 
void AddDbgValue (SDDbgValue *DB, SDNode *SD, bool isParameter)
 
ArrayRef< SDDbgValue * > GetDbgValues (const SDNode *SD)
 GetDbgValues - Get the debug values which reference the given SDNode. More...
 
void TransferDbgValues (SDValue From, SDValue To)
 TransferDbgValues - Transfer SDDbgValues. More...
 
bool hasDebugValues () const
 
SDDbgInfo::DbgIterator DbgBegin ()
 
SDDbgInfo::DbgIterator DbgEnd ()
 
SDDbgInfo::DbgIterator ByvalParmDbgBegin ()
 
SDDbgInfo::DbgIterator ByvalParmDbgEnd ()
 
void dump () const
 
SDValue CreateStackTemporary (EVT VT, unsigned minAlign=1)
 
SDValue CreateStackTemporary (EVT VT1, EVT VT2)
 
SDValue FoldConstantArithmetic (unsigned Opcode, EVT VT, SDNode *Cst1, SDNode *Cst2)
 FoldConstantArithmetic -. More...
 
SDValue FoldSetCC (EVT VT, SDValue N1, SDValue N2, ISD::CondCode Cond, SDLoc dl)
 FoldSetCC - Constant fold a setcc to true or false. More...
 
bool SignBitIsZero (SDValue Op, unsigned Depth=0) const
 
bool MaskedValueIsZero (SDValue Op, const APInt &Mask, unsigned Depth=0) const
 
void ComputeMaskedBits (SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth=0) const
 
unsigned ComputeNumSignBits (SDValue Op, unsigned Depth=0) const
 
bool isBaseWithConstantOffset (SDValue Op) const
 
bool isKnownNeverNaN (SDValue Op) const
 isKnownNeverNan - Test whether the given SDValue is known to never be NaN. More...
 
bool isKnownNeverZero (SDValue Op) const
 
bool isEqualTo (SDValue A, SDValue B) const
 
SDValue UnrollVectorOp (SDNode *N, unsigned ResNE=0)
 
bool isConsecutiveLoad (LoadSDNode *LD, LoadSDNode *Base, unsigned Bytes, int Dist) const
 
unsigned InferPtrAlignment (SDValue Ptr) const
 
std::pair< EVT, EVTGetSplitDestVTs (const EVT &VT) const
 
std::pair< SDValue, SDValueSplitVector (const SDValue &N, const SDLoc &DL, const EVT &LoVT, const EVT &HiVT)
 
std::pair< SDValue, SDValueSplitVector (const SDValue &N, const SDLoc &DL)
 
std::pair< SDValue, SDValueSplitVectorOperand (const SDNode *N, unsigned OpNo)
 

Static Public Member Functions

static bool isCommutativeBinOp (unsigned Opcode)
 
static const fltSemanticsEVTToAPFloatSemantics (EVT VT)
 

Public Attributes

bool NewNodesMustHaveLegalTypes
 
std::map< const SDNode
*, std::string > 
NodeGraphAttrs
 

Friends

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

Detailed Description

SelectionDAG class - This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representation suitable for instruction selection. This DAG is constructed as the first step of instruction selection in order to allow implementation of machine specific optimizations and code simplifications.

The representation used by the SelectionDAG is a target-independent representation, which has some similarities to the GCC RTL representation, but is significantly more simple, powerful, and is a graph form instead of a linear form.

Definition at line 169 of file SelectionDAG.h.

Member Typedef Documentation

Definition at line 316 of file SelectionDAG.h.

Definition at line 319 of file SelectionDAG.h.

Constructor & Destructor Documentation

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

Definition at line 871 of file SelectionDAG.cpp.

SelectionDAG::~SelectionDAG ( )

Definition at line 888 of file SelectionDAG.cpp.

Member Function Documentation

void SelectionDAG::AddDbgValue ( SDDbgValue DB,
SDNode SD,
bool  isParameter 
)

AddDbgValue - Add a dbg_value SDNode. If SD is non-null that means the value is produced by SD.

Definition at line 6009 of file SelectionDAG.cpp.

References llvm::SDDbgInfo::add(), and llvm::SDNode::setHasDebugValue().

Referenced by llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), and TransferDbgValues().

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

Definition at line 320 of file SelectionDAG.h.

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

Definition at line 321 of file SelectionDAG.h.

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

Definition at line 322 of file SelectionDAG.h.

Referenced by AssignTopologicalOrder().

unsigned SelectionDAG::AssignTopologicalOrder ( )

AssignTopologicalOrder - 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.

AssignTopologicalOrder - Assign a unique node id for each node in the DAG based on their topological order. It returns the maximum id and a vector of the SDNodes* in assigned order by reference.

Definition at line 5922 of file SelectionDAG.cpp.

References allnodes_begin(), allnodes_end(), allnodes_size(), llvm::checkForCycles(), llvm::dbgs(), llvm::SDNode::dumprFull(), llvm::ISD::EntryToken, llvm::SDNode::getNodeId(), llvm::SDNode::getNumOperands(), I, llvm_unreachable, N, P, llvm::SDNode::setNodeId(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

SDDbgInfo::DbgIterator llvm::SelectionDAG::ByvalParmDbgBegin ( )
inline
SDDbgInfo::DbgIterator llvm::SelectionDAG::ByvalParmDbgEnd ( )
inline
void SelectionDAG::clear ( )

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

Definition at line 901 of file SelectionDAG.cpp.

References llvm::SDDbgInfo::clear(), getEntryNode(), and llvm::BumpPtrAllocator::Reset().

void SelectionDAG::clearGraphAttrs ( )

clearGraphAttrs - Clear all previously defined node graph attributes. Intended to be used from a debugging tool (eg. gdb).

Definition at line 164 of file SelectionDAGPrinter.cpp.

References llvm::errs(), and NodeGraphAttrs.

void SelectionDAG::Combine ( CombineLevel  Level,
AliasAnalysis AA,
CodeGenOpt::Level  OptLevel 
)

Combine - 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.

run - This is the main entry point to this class.

Definition at line 11091 of file DAGCombiner.cpp.

void SelectionDAG::ComputeMaskedBits ( SDValue  Op,
APInt KnownZero,
APInt KnownOne,
unsigned  Depth = 0 
) const

ComputeMaskedBits - Determine which of the bits specified in Mask are known to be either zero or one and return them in the KnownZero/KnownOne bitsets. This code only analyzes bits in Mask, in order to short-circuit processing. Targets can implement the computeMaskedBitsForTargetNode method in the TargetLowering class to allow target nodes to be understood.

ComputeMaskedBits - Determine which of the bits specified in Mask are known to be either zero or one and return them in the KnownZero/KnownOne bitsets. This code only analyzes bits in Mask, in order to short-circuit processing.

Definition at line 1759 of file SelectionDAG.cpp.

References llvm::APInt::abs(), llvm::ISD::ADD, llvm::ISD::ADDE, Align(), llvm::ISD::AND, llvm::ISD::ANY_EXTEND, llvm::ISD::AssertZext, llvm::ISD::BUILTIN_OP_END, llvm::APInt::clearAllBits(), llvm::TargetLowering::computeMaskedBitsForTargetNode(), llvm::computeMaskedBitsLoad(), llvm::ISD::Constant, llvm::APInt::countLeadingOnes(), llvm::countLeadingZeros(), llvm::APInt::countTrailingOnes(), llvm::ISD::CTLZ, llvm::ISD::CTLZ_ZERO_UNDEF, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::ISD::CTTZ_ZERO_UNDEF, llvm::ISD::FGETSIGN, llvm::ISD::FrameIndex, llvm::APInt::getBitsSet(), llvm::TargetLoweringBase::getBooleanContents(), llvm::APInt::getBoolValue(), llvm::APInt::getHighBitsSet(), llvm::APInt::getLowBitsSet(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::MemSDNode::getRanges(), llvm::SDValue::getResNo(), llvm::EVT::getScalarType(), llvm::APInt::getSignBit(), llvm::EVT::getSizeInBits(), llvm::TargetMachine::getTargetLowering(), llvm::SDValue::getValueType(), InferPtrAlignment(), llvm::APInt::intersects(), llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::APInt::isNegative(), llvm::APInt::isPowerOf2(), llvm::EVT::isVector(), llvm::ISD::isZEXTLoad(), llvm::A64DB::LD, llvm::ISD::LOAD, llvm::Log2_32(), llvm::APInt::lshr(), llvm::ISD::MUL, llvm::ISD::OR, llvm::ISD::SADDO, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::ISD::SETCC, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMULO, llvm::ISD::SRA, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SSUBO, llvm::ISD::SUB, llvm::ISD::TargetFrameIndex, llvm::APInt::trunc(), llvm::ISD::TRUNCATE, llvm::ISD::UADDO, llvm::ISD::UDIV, llvm::ISD::UMULO, llvm::ISD::UREM, llvm::ISD::USUBO, llvm::ISD::XOR, llvm::ISD::ZERO_EXTEND, llvm::TargetLoweringBase::ZeroOrOneBooleanContent, and llvm::APInt::zext().

Referenced by llvm::SelectionDAGISel::CheckOrMask(), llvm::SparcTargetLowering::computeMaskedBitsForTargetNode(), llvm::AMDGPUTargetLowering::computeMaskedBitsForTargetNode(), llvm::ARMTargetLowering::computeMaskedBitsForTargetNode(), ComputeNumSignBits(), FoldMaskAndShiftToScale(), isTruncateOf(), isWordAligned(), MaskedValueIsZero(), llvm::ARMTargetLowering::PerformCMOVCombine(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::PPCTargetLowering::SelectAddressRegReg(), llvm::TargetLowering::SimplifyDemandedBits(), and ValueHasExactlyOneBitSet().

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

ComputeNumSignBits - 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.

ComputeNumSignBits - 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.

Definition at line 2204 of file SelectionDAG.cpp.

References llvm::ISD::ADD, llvm::ISD::AND, llvm::ISD::AssertSext, llvm::ISD::AssertZext, llvm::ISD::BUILTIN_OP_END, llvm::CallingConv::C, ComputeMaskedBits(), llvm::TargetLowering::ComputeNumSignBitsForTargetNode(), llvm::ISD::Constant, llvm::APInt::countLeadingZeros(), llvm::APInt::getBitWidth(), llvm::TargetLoweringBase::getBooleanContents(), llvm::APInt::getNumSignBits(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getResNo(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), llvm::TargetMachine::getTargetLowering(), llvm::SDValue::getValueType(), llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::EVT::isInteger(), llvm::APInt::isNegative(), llvm::EVT::isVector(), llvm::A64DB::LD, llvm::ISD::OR, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SADDO, llvm::ISD::SELECT, llvm::ISD::SETCC, llvm::ISD::SEXTLOAD, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMULO, llvm::ISD::SRA, llvm::ISD::SSUBO, llvm::ISD::SUB, llvm::ISD::TRUNCATE, llvm::ISD::UADDO, llvm::ISD::UMULO, llvm::ISD::USUBO, llvm::ISD::XOR, llvm::TargetLoweringBase::ZeroOrNegativeOneBooleanContent, and llvm::ISD::ZEXTLOAD.

SDValue SelectionDAG::CreateStackTemporary ( EVT  VT,
unsigned  minAlign = 1 
)
SDValue SelectionDAG::CreateStackTemporary ( EVT  VT1,
EVT  VT2 
)
SDDbgInfo::DbgIterator llvm::SelectionDAG::DbgBegin ( )
inline

Definition at line 1041 of file SelectionDAG.h.

References llvm::SDDbgInfo::DbgBegin().

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

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

Definition at line 1042 of file SelectionDAG.h.

References llvm::SDDbgInfo::DbgEnd().

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

void SelectionDAG::DeleteNode ( SDNode N)

DeleteNode - Remove the specified node from the system. This node must have no referrers.

Definition at line 609 of file SelectionDAG.cpp.

void SelectionDAG::dump ( ) const
static const fltSemantics& llvm::SelectionDAG::EVTToAPFloatSemantics ( EVT  VT)
inlinestatic
SDValue SelectionDAG::FoldConstantArithmetic ( unsigned  Opcode,
EVT  VT,
SDNode Cst1,
SDNode Cst2 
)
SDValue SelectionDAG::FoldSetCC ( EVT  VT,
SDValue  N1,
SDValue  N2,
ISD::CondCode  Cond,
SDLoc  dl 
)
SDValue SelectionDAG::getAddrSpaceCast ( SDLoc  dl,
EVT  VT,
SDValue  Ptr,
unsigned  SrcAS,
unsigned  DestAS 
)
SDValue SelectionDAG::getAnyExtOrTrunc ( SDValue  Op,
SDLoc  DL,
EVT  VT 
)

getAnyExtOrTrunc - Convert Op, which must be of integer type, to the integer type VT, by either any-extending or truncating it.

Definition at line 920 of file SelectionDAG.cpp.

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

Referenced by getNode().

SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Cmp,
SDValue  Swp,
MachinePointerInfo  PtrInfo,
unsigned  Alignment,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Cmp,
SDValue  Swp,
MachineMemOperand MMO,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Val,
const Value PtrVal,
unsigned  Alignment,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
SDValue  Chain,
SDValue  Ptr,
SDValue  Val,
MachineMemOperand MMO,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
EVT  VT,
SDValue  Chain,
SDValue  Ptr,
const Value PtrVal,
unsigned  Alignment,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
EVT  VT,
SDValue  Chain,
SDValue  Ptr,
MachineMemOperand MMO,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)

Definition at line 4349 of file SelectionDAG.cpp.

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

SDValue SelectionDAG::getAtomic ( unsigned  Opcode,
SDLoc  dl,
EVT  MemVT,
SDVTList  VTList,
SDValue Ops,
unsigned  NumOps,
MachineMemOperand MMO,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope 
)
SDValue SelectionDAG::getBasicBlock ( MachineBasicBlock MBB)
SDValue llvm::SelectionDAG::getBasicBlock ( MachineBasicBlock MBB,
SDLoc  dl 
)
SDValue SelectionDAG::getBlockAddress ( const BlockAddress BA,
EVT  VT,
int64_t  Offset = 0,
bool  isTarget = false,
unsigned char  TargetFlags = 0 
)
SDValue llvm::SelectionDAG::getCALLSEQ_END ( SDValue  Chain,
SDValue  Op1,
SDValue  Op2,
SDValue  InGlue,
SDLoc  DL 
)
inline
SDValue llvm::SelectionDAG::getCALLSEQ_START ( SDValue  Chain,
SDValue  Op,
SDLoc  DL 
)
inline
SDValue SelectionDAG::getCondCode ( ISD::CondCode  Cond)
SDValue SelectionDAG::getConstant ( uint64_t  Val,
EVT  VT,
bool  isTarget = false 
)

Definition at line 959 of file SelectionDAG.cpp.

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

Referenced by AddCombineToVPADDL(), addIPMSequence(), adjustForTestUnderMask(), adjustSubwordCmp(), adjustZeroCmp(), bitcastf32Toi32(), llvm::TargetLowering::BuildExactSDIV(), llvm::X86TargetLowering::BuildFILD(), BuildIntrinsicOp(), llvm::TargetLowering::BuildSDIV(), BuildSplatI(), llvm::TargetLowering::BuildUDIV(), BuildVectorFromScalar(), CMPEQCombine(), CreateCopyOfByValArgument(), createFPCmp(), createLoadLR(), createStoreLR(), emitCLC(), EmitCMP(), emitCmp(), emitMemMem(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrlen(), Expand64BitShift(), ExpandBITCAST(), expandExp(), expandExp2(), expandf64Toi32(), expandPow(), ExpandUnalignedLoad(), ExpandUnalignedStore(), ExtractBitFromMaskVector(), FoldConstantArithmetic(), FoldMaskAndShiftToExtract(), FoldMaskAndShiftToScale(), FoldMaskedShiftToScaledMask(), FoldSetCC(), genConstMult(), GeneratePerfectShuffle(), getARMIndexedAddressParts(), getBoundedStrlen(), getBuildVectorSplat(), getConstant(), getCopyFromParts(), getCopyFromPartsVector(), getCopyToPartsVector(), GetExponent(), getIntPtrConstant(), getLSBForBFI(), getMemBasePlusOffset(), getMemsetStringVal(), getMemsetValue(), getNode(), getNOT(), getScatterNode(), llvm::AArch64TargetLowering::getSelectableIntSetCC(), GetSignificand(), getT2IndexedAddressParts(), getTargetConstant(), getTargetShuffleNode(), getTargetVShiftByConstNode(), getTargetVShiftNode(), llvm::SelectionDAGBuilder::getValueImpl(), getVShift(), getZeroExtendInReg(), initAccumulator(), InsertFenceForAtomic(), isBLACompatibleAddress(), isConditionalZeroOrAllOnes(), llvm::AArch64TargetLowering::isKnownShuffleVector(), IsSingleInstrConstant(), LowerADDC_ADDE_SUBC_SUBE(), LowerAsSplatVectorLoad(), LowerATOMIC_FENCE(), llvm::AArch64TargetLowering::LowerBlockAddress(), llvm::AArch64TargetLowering::LowerBR_CC(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBR_JT(), llvm::AArch64TargetLowering::LowerBRCOND(), llvm::AArch64TargetLowering::LowerBUILD_VECTOR(), LowerBuildVectorv16i8(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SelectionDAGBuilder::LowerCallTo(), LowerCTLZ(), LowerCTLZ_ZERO_UNDEF(), LowerCTTZ(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), LowerF128Load(), LowerF128Store(), lowerFABS32(), lowerFABS64(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), LowerFGETSIGN(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUTargetLowering::LowerGlobalAddress(), llvm::AArch64TargetLowering::LowerGlobalAddressELFLarge(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), llvm::AArch64TargetLowering::LowerGlobalTLSAddress(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), LowerINTRINSIC_WO_CHAIN(), llvm::AMDGPUTargetLowering::LowerIntrinsicIABS(), LowerIntVSETCC_AVX512(), llvm::AArch64TargetLowering::LowerJumpTable(), LowerLabelRef(), llvm::MipsTargetLowering::lowerLOAD(), LowerLOAD_SUB(), LowerMemOpCallTo(), lowerMSABinaryBitImmIntr(), lowerMSABitClear(), lowerMSABitClearImm(), lowerMSASplatImm(), lowerMSASplatZExt(), lowerMUL_LOHI32(), llvm::R600TargetLowering::LowerOperation(), LowerPREFETCH(), LowerREADCYCLECOUNTER(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerReverse_VECTOR_SHUFFLEv16i8_v8i16(), LowerScalarImmediateShift(), LowerSDIV(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AArch64TargetLowering::LowerSELECT(), llvm::AArch64TargetLowering::LowerSELECT_CC(), LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), llvm::AArch64TargetLowering::LowerSETCC(), LowerShift(), LowerUDIV(), llvm::AArch64TargetLowering::LowerVACOPY(), llvm::AArch64TargetLowering::LowerVASTART(), llvm::AArch64TargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLE_SHF(), LowerVECTOR_SHUFFLEtoBlend(), LowerVECTOR_SHUFFLEv16i8(), LowerVECTOR_SHUFFLEv32i8(), LowerVECTOR_SHUFFLEv8i16(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorSETCC(), LowerVSETCC(), LowerXALUO(), llvm::SparcTargetLowering::makeAddress(), MaterializeSETB(), memsetStore(), OptimizeConditionalInDecrement(), PerformADCCombine(), performANDCombine(), PerformANDCombine(), PerformAndCombine(), PerformARMBUILD_VECTORCombine(), PerformBrCondCombine(), PerformCMOVCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::SITargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performDSPShiftCombine(), PerformEXTRACT_VECTOR_ELTCombine(), performIntegerAbsCombine(), PerformIntrinsicCombine(), PerformISDSETCCCombine(), PerformLOADCombine(), PerformMULCombine(), PerformMulCombine(), performORCombine(), PerformORCombine(), PerformSELECTCombine(), PerformSETCCCombine(), PerformShiftCombine(), PerformSHLCombine(), PerformSRACombine(), PerformSTORECombine(), PerformSubCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformZExtCombine(), PrepareCall(), ReplaceATOMIC_LOAD(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), llvm::AArch64TargetLowering::SaveVarArgRegisters(), llvm::SelectionDAGISel::SelectCodeCommon(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifyDemandedBits(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), SplitVector(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), TranslateX86CC(), tryCombineToBFI(), tryCombineToEXTR(), tryCombineToLargerBFI(), tryFoldToZero(), UnrollVectorOp(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), and WidenMaskArithmetic().

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

Definition at line 967 of file SelectionDAG.cpp.

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

SDValue SelectionDAG::getConstant ( const ConstantInt Val,
EVT  VT,
bool  isTarget = false 
)
SDValue SelectionDAG::getConstantFP ( double  Val,
EVT  VT,
bool  isTarget = false 
)
SDValue SelectionDAG::getConstantFP ( const APFloat Val,
EVT  VT,
bool  isTarget = false 
)

Definition at line 1070 of file SelectionDAG.cpp.

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

SDValue SelectionDAG::getConstantFP ( const ConstantFP CF,
EVT  VT,
bool  isTarget = false 
)
SDValue SelectionDAG::getConstantPool ( const Constant C,
EVT  VT,
unsigned  Align = 0,
int  Offs = 0,
bool  isT = false,
unsigned char  TargetFlags = 0 
)
SDValue SelectionDAG::getConstantPool ( MachineConstantPoolValue C,
EVT  VT,
unsigned  Align = 0,
int  Offs = 0,
bool  isT = false,
unsigned char  TargetFlags = 0 
)
LLVMContext* llvm::SelectionDAG::getContext ( ) const
inline

Definition at line 285 of file SelectionDAG.h.

Referenced by llvm::X86TargetLowering::BuildFILD(), BuildVectorFromScalar(), canFoldInAddressingMode(), CreateStackTemporary(), llvm::SelectionDAGBuilder::EmitBranchForMergedCondition(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), ExpandUnalignedLoad(), ExpandUnalignedStore(), ExtractSubVector(), getConstant(), getConstantFP(), getCopyFromParts(), getCopyFromPartsVector(), getCopyToParts(), getCopyToPartsVector(), getMemcpy(), getMemcpyLoadsAndStores(), getMemmove(), getMemmoveLoadsAndStores(), getMemset(), getMemsetStores(), getMemsetStringVal(), GetRegistersForValue(), GetSplitDestVTs(), llvm::SelectionDAGBuilder::getValue(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::SelectionDAGBuilder::init(), llvm::AArch64TargetLowering::IsEligibleForTailCallOptimization(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SelectionDAGBuilder::LowerCallOperands(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::AArch64TargetLowering::LowerCallResult(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), llvm::AArch64TargetLowering::LowerF128ToCall(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerFSINCOS(), llvm::HexagonTargetLowering::LowerReturn(), llvm::AArch64TargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), LowerSIGN_EXTEND_AVX512(), LowerToTLSExecModel(), LowerVECTOR_SHUFFLE(), llvm::TargetLowering::makeLibCall(), PerformARMBUILD_VECTORCombine(), PerformBUILD_VECTORCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformInsertEltCombine(), PerformLOADCombine(), PerformSELECTCombine(), PerformSTORECombine(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::TargetLowering::SimplifySetCC(), llvm::TargetLowering::softenSetCCOperands(), UnrollVectorOp(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), and XFormVExtractWithShuffleIntoLoad().

SDValue SelectionDAG::getConvertRndSat ( EVT  VT,
SDLoc  dl,
SDValue  Val,
SDValue  DTy,
SDValue  STy,
SDValue  Rnd,
SDValue  Sat,
ISD::CvtCode  Code 
)

Returns the ConvertRndSat Note: Avoid using this node because it may disappear in the future and most targets don't support it.

Definition at line 1436 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::tgtok::Code, llvm::ISD::CONVERT_RNDSAT, llvm::ISD::CVT_FF, llvm::ISD::CVT_SS, llvm::ISD::CVT_UU, llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), and getVTList().

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

Definition at line 510 of file SelectionDAG.h.

References llvm::ISD::CopyFromReg, getNode(), getRegister(), getVTList(), and llvm::MVT::Other.

Referenced by llvm::X86TargetLowering::BuildFILD(), llvm::SITargetLowering::CreateLiveInRegister(), GetTLSADDR(), llvm::HexagonTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::AArch64TargetLowering::LowerCallResult(), LowerCMP_SWAP(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AArch64TargetLowering::LowerFRAMEADDR(), LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), LowerREADCYCLECOUNTER(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerSETCC(), llvm::AArch64TargetLowering::LowerTLSDescCall(), performDivRemCombine(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::AArch64TargetLowering::SaveVarArgRegisters(), llvm::SelectionDAGBuilder::visitBitTestCase(), and llvm::SelectionDAGBuilder::visitJumpTable().

SDValue llvm::SelectionDAG::getCopyFromReg ( SDValue  Chain,
SDLoc  dl,
unsigned  Reg,
EVT  VT,
SDValue  Glue 
)
inline
SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
SDLoc  dl,
unsigned  Reg,
SDValue  N 
)
inline
SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
SDLoc  dl,
unsigned  Reg,
SDValue  N,
SDValue  Glue 
)
inline
SDValue llvm::SelectionDAG::getCopyToReg ( SDValue  Chain,
SDLoc  dl,
SDValue  Reg,
SDValue  N,
SDValue  Glue 
)
inline
SDDbgValue * SelectionDAG::getDbgValue ( MDNode MDPtr,
SDNode N,
unsigned  R,
uint64_t  Off,
DebugLoc  DL,
unsigned  O 
)

getDbgValue - Creates a SDDbgValue node.

Definition at line 5609 of file SelectionDAG.cpp.

Referenced by llvm::SelectionDAGBuilder::resolveDanglingDebugInfo(), and TransferDbgValues().

SDDbgValue * SelectionDAG::getDbgValue ( MDNode MDPtr,
const Value C,
uint64_t  Off,
DebugLoc  DL,
unsigned  O 
)

Definition at line 5615 of file SelectionDAG.cpp.

SDDbgValue * SelectionDAG::getDbgValue ( MDNode MDPtr,
unsigned  FI,
uint64_t  Off,
DebugLoc  DL,
unsigned  O 
)

Definition at line 5621 of file SelectionDAG.cpp.

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

GetDbgValues - Get the debug values which reference the given SDNode.

Definition at line 1030 of file SelectionDAG.h.

References llvm::SDDbgInfo::getSDDbgValues().

Referenced by ProcessSDDbgValues(), and TransferDbgValues().

SDValue SelectionDAG::getEHLabel ( SDLoc  dl,
SDValue  Root,
MCSymbol Label 
)
SDValue llvm::SelectionDAG::getEntryNode ( ) const
inline

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

Definition at line 332 of file SelectionDAG.h.

Referenced by llvm::AArch64TargetLowering::addTokenForArgument(), llvm::X86TargetLowering::BuildFILD(), clear(), llvm::SelectionDAGBuilder::CopyValueToVirtualRegister(), llvm::SITargetLowering::CreateLiveInRegister(), llvm::MipsTargetLowering::getAddrLocal(), getFLUSHW(), getMemCmpLoad(), getStackArgumentTokenFactor(), llvm::SelectionDAGBuilder::getValue(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), llvm::AArch64TargetLowering::LowerF128ToCall(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AArch64TargetLowering::LowerFRAMEADDR(), LowerFRAMEADDR(), LowerFSINCOS(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::AArch64TargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), llvm::MSP430TargetLowering::LowerSETCC(), LowerSIGN_EXTEND_AVX512(), llvm::AArch64TargetLowering::LowerTLSDescCall(), LowerToTLSExecModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSGeneralDynamicModel64(), LowerToTLSLocalDynamicModel(), LowerVectorBroadcast(), LowerZERO_EXTEND_AVX512(), llvm::SparcTargetLowering::makeAddress(), llvm::TargetLowering::makeLibCall(), performDivRemCombine(), PerformEXTRACT_VECTOR_ELTCombine(), ReplaceREADCYCLECOUNTER(), llvm::SelectionDAGISel::SelectCodeCommon(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().

SDValue SelectionDAG::getExternalSymbol ( const char *  Sym,
EVT  VT 
)
SDValue llvm::SelectionDAG::getExternalSymbol ( const char *  Sym,
SDLoc  dl,
EVT  VT 
)
SDValue SelectionDAG::getExtLoad ( ISD::LoadExtType  ExtType,
SDLoc  dl,
EVT  VT,
SDValue  Chain,
SDValue  Ptr,
MachinePointerInfo  PtrInfo,
EVT  MemVT,
bool  isVolatile,
bool  isNonTemporal,
unsigned  Alignment,
const MDNode TBAAInfo = 0 
)
SDValue SelectionDAG::getExtLoad ( ISD::LoadExtType  ExtType,
SDLoc  dl,
EVT  VT,
SDValue  Chain,
SDValue  Ptr,
EVT  MemVT,
MachineMemOperand MMO 
)
SDValue SelectionDAG::getFrameIndex ( int  FI,
EVT  VT,
bool  isTarget = false 
)
SDValue llvm::SelectionDAG::getGLOBAL_OFFSET_TABLE ( EVT  VT)
inline

getGLOBAL_OFFSET_TABLE - Return a GLOBAL_OFFSET_TABLE node. This does not have a useful SDLoc.

Definition at line 591 of file SelectionDAG.h.

References getNode(), and llvm::ISD::GLOBAL_OFFSET_TABLE.

Referenced by llvm::TargetLowering::getPICJumpTableRelocBase().

SDValue SelectionDAG::getGlobalAddress ( const GlobalValue GV,
SDLoc  DL,
EVT  VT,
int64_t  offset = 0,
bool  isTargetGA = false,
unsigned char  TargetFlags = 0 
)
const std::string SelectionDAG::getGraphAttrs ( const SDNode N) const

getGraphAttrs - Get graph attributes for a node. (eg. "color=red".) Used from getNodeAttributes.

Definition at line 188 of file SelectionDAGPrinter.cpp.

References llvm::errs(), I, and NodeGraphAttrs.

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

SDValue SelectionDAG::getIndexedLoad ( SDValue  OrigLoad,
SDLoc  dl,
SDValue  Base,
SDValue  Offset,
ISD::MemIndexedMode  AM 
)
SDValue SelectionDAG::getIndexedStore ( SDValue  OrigStoe,
SDLoc  dl,
SDValue  Base,
SDValue  Offset,
ISD::MemIndexedMode  AM 
)
SDValue SelectionDAG::getIntPtrConstant ( uint64_t  Val,
bool  isTarget = false 
)

Definition at line 1065 of file SelectionDAG.cpp.

References getConstant(), llvm::TargetLoweringBase::getPointerTy(), and llvm::TargetMachine::getTargetLowering().

Referenced by llvm::X86TargetLowering::BuildFILD(), buildFromShuffleMostly(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), ExtractSubVector(), getCopyToParts(), InsertSubVector(), LowerBuildVectorv16i8(), LowerBuildVectorv8i16(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCONCAT_VECTORS(), lowerCTPOP16BitElements(), lowerCTPOP32BitElements(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINSERT_VECTOR_ELT_SSE4(), LowerINTRINSIC_W_CHAIN(), llvm::NVPTXTargetLowering::LowerReturn(), LowerRETURNADDR(), LowerScalarVariableShift(), LowerSDIV(), LowerToTLSExecModel(), LowerUDIV(), LowerVAARG(), LowerVACOPY(), LowerVASTART(), LowerVECTOR_SHUFFLE_256(), LowerVECTOR_SHUFFLEv16i8(), LowerVECTOR_SHUFFLEv8i16(), LowerVectorIntExtend(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformLOADCombine(), PerformSTORECombine(), PrepareCall(), PrepareTailCall(), ReplaceATOMIC_BINARY_64(), ReplaceATOMIC_OP_64(), ReplaceLoadVector(), and llvm::PPCTargetLowering::ReplaceNodeResults().

SDValue SelectionDAG::getJumpTable ( int  JTI,
EVT  VT,
bool  isTarget = false,
unsigned char  TargetFlags = 0 
)
SDValue SelectionDAG::getLoad ( EVT  VT,
SDLoc  dl,
SDValue  Chain,
SDValue  Ptr,
MachinePointerInfo  PtrInfo,
bool  isVolatile,
bool  isNonTemporal,
bool  isInvariant,
unsigned  Alignment,
const MDNode TBAAInfo = 0,
const MDNode Ranges = 0 
)

getLoad - Loads are not normal binary operators: their result type is not determined by their operands, and they produce a value AND a token chain.

Definition at line 4565 of file SelectionDAG.cpp.

References getUNDEF(), llvm::SDValue::getValueType(), llvm::ISD::NON_EXTLOAD, llvm::RegState::Undef, and llvm::ISD::UNINDEXED.

Referenced by bitcastf32Toi32(), llvm::X86TargetLowering::BuildFILD(), convertLocVTToValVT(), EltsFromConsecutiveLoads(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), expandf64Toi32(), ExpandUnalignedLoad(), ExpandUnalignedStore(), llvm::MipsTargetLowering::getAddrGlobal(), llvm::MipsTargetLowering::getAddrGlobalLargeGOT(), llvm::MipsTargetLowering::getAddrLocal(), getExtLoad(), getIndexedLoad(), getLoad(), getMemCmpLoad(), getMemmoveLoadsAndStores(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerBR_JT(), llvm::NVPTXTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SelectionDAGBuilder::LowerCallTo(), LowerF128Load(), llvm::SparcTargetLowering::LowerF128Op(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AArch64TargetLowering::LowerFRAMEADDR(), LowerFRAMEADDR(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), LowerINTRINSIC_W_CHAIN(), lowerMSALoadIntr(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerSIGN_EXTEND_AVX512(), LowerToTLSExecModel(), LowerVAARG(), LowerVectorBroadcast(), LowerZERO_EXTEND_AVX512(), llvm::SparcTargetLowering::makeAddress(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformEXTRACT_VECTOR_ELTCombine(), PerformLOADCombine(), PerformSTORECombine(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::TargetLowering::SimplifySetCC(), SkipLoadExtensionForVMULL(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().

SDValue SelectionDAG::getLoad ( EVT  VT,
SDLoc  dl,
SDValue  Chain,
SDValue  Ptr,
MachineMemOperand MMO 
)
SDValue SelectionDAG::getLoad ( ISD::MemIndexedMode  AM,
ISD::LoadExtType  ExtType,
EVT  VT,
SDLoc  dl,
SDValue  Chain,
SDValue  Ptr,
SDValue  Offset,
MachinePointerInfo  PtrInfo,
EVT  MemVT,
bool  isVolatile,
bool  isNonTemporal,
bool  isInvariant,
unsigned  Alignment,
const MDNode TBAAInfo = 0,
const MDNode Ranges = 0 
)
SDValue SelectionDAG::getLoad ( ISD::MemIndexedMode  AM,
ISD::LoadExtType  ExtType,
EVT  VT,
SDLoc  dl,
SDValue  Chain,
SDValue  Ptr,
SDValue  Offset,
EVT  MemVT,
MachineMemOperand MMO 
)
MachineFunction& llvm::SelectionDAG::getMachineFunction ( ) const
inline

Definition at line 280 of file SelectionDAG.h.

Referenced by llvm::X86TargetLowering::BuildFILD(), CalculateParameterAndLinkageAreaSize(), CalculateTailCallSPDiff(), llvm::AMDGPUTargetLowering::CreateLiveInRegister(), CreateStackTemporary(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), ExpandPowI(), llvm::SelectionDAGBuilder::FindMergedConditions(), FindOptimalMemOpLowering(), fixupFuncForFI(), getAtomic(), llvm::MipsTargetLowering::getGlobalReg(), llvm::DOTGraphTraits< SelectionDAG * >::getGraphName(), getLoad(), getMemcpyLoadsAndStores(), getMemIntrinsicNode(), getMemmoveLoadsAndStores(), getMemsetStores(), GetRegistersForValue(), llvm::MSP430TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::SparcTargetLowering::getSRetArgSize(), getStore(), GetTLSADDR(), getTruncStore(), hasReturnsTwiceAttr(), InferPtrAlignment(), isConsecutiveLoad(), isConsecutiveLS(), llvm::HexagonTargetLowering::IsEligibleForTailCallOptimization(), llvm::AArch64TargetLowering::IsEligibleForTailCallOptimization(), llvm::TargetLowering::isInTailCallPosition(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerBR_JT(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::HexagonTargetLowering::LowerCallResult(), llvm::AArch64TargetLowering::LowerCallResult(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::MSP430TargetLowering::LowerFRAMEADDR(), llvm::HexagonTargetLowering::LowerFRAMEADDR(), llvm::AArch64TargetLowering::LowerFRAMEADDR(), LowerFRAMEADDR(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::AArch64TargetLowering::LowerGlobalTLSAddress(), llvm::HexagonTargetLowering::LowerINLINEASM(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::AArch64TargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerToTLSLocalDynamicModel(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), llvm::AArch64TargetLowering::LowerVASTART(), LowerVASTART(), llvm::SparcTargetLowering::makeAddress(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformSTORECombine(), PrepareTailCall(), llvm::AArch64TargetLowering::SaveVarArgRegisters(), llvm::X86InstrInfo::unfoldMemoryOperand(), and viewGraph().

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
SDLoc  dl,
EVT  VT 
)

getMachineNode - These are used for target selectors to create a new node with specified return type(s), MachineInstr opcode, and operands.

Note that getMachineNode returns the resultant node. If there is already a node of the specified opcode and operands, it returns that node instead of the current one.

Definition at line 5411 of file SelectionDAG.cpp.

References getVTList(), and llvm::None.

Referenced by getMachineNode(), getMScatterNode(), getScatterNode(), getTargetExtractSubreg(), getTargetInsertSubreg(), LowerATOMIC_FENCE(), llvm::AArch64TargetLowering::LowerCall(), LowerF128Load(), LowerF128Store(), LowerF64Op(), LowerFABS(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerGlobalTLSAddress(), lowerGR128Binary(), llvm::R600TargetLowering::LowerOperation(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::SelectionDAGISel::SelectCodeCommon(), and llvm::X86InstrInfo::unfoldMemoryOperand().

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

Definition at line 5417 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5424 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5432 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5440 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
SDLoc  dl,
EVT  VT1,
EVT  VT2 
)

Definition at line 5447 of file SelectionDAG.cpp.

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

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

Definition at line 5453 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5461 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5469 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5478 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5486 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5495 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5504 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5512 of file SelectionDAG.cpp.

References getMachineNode(), and getVTList().

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

Definition at line 5520 of file SelectionDAG.cpp.

References getMachineNode(), getVTList(), and llvm::ArrayRef< T >::size().

MachineSDNode * SelectionDAG::getMachineNode ( unsigned  Opcode,
SDLoc  dl,
SDVTList  VTs,
ArrayRef< SDValue Ops 
)
SDValue SelectionDAG::getMDNode ( const MDNode MD)

getMDNode - Return an MDNodeSDNode which holds an MDNode.

Definition at line 1547 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), getVTList(), llvm::ISD::MDNODE_SDNODE, and llvm::MVT::Other.

SDValue SelectionDAG::getMemcpy ( SDValue  Chain,
SDLoc  dl,
SDValue  Dst,
SDValue  Src,
SDValue  Size,
unsigned  Align,
bool  isVol,
bool  AlwaysInline,
MachinePointerInfo  DstPtrInfo,
MachinePointerInfo  SrcPtrInfo 
)
SDValue SelectionDAG::getMemIntrinsicNode ( unsigned  Opcode,
SDLoc  dl,
const EVT VTs,
unsigned  NumVTs,
const SDValue Ops,
unsigned  NumOps,
EVT  MemVT,
MachinePointerInfo  PtrInfo,
unsigned  Align = 0,
bool  Vol = false,
bool  ReadMem = true,
bool  WriteMem = true 
)

getMemIntrinsicNode - Creates a MemIntrinsicNode that may produce a result and takes a list of operands. Opcode may be INTRINSIC_VOID, INTRINSIC_W_CHAIN, or a target-specific opcode with a value not less than FIRST_TARGET_MEMORY_OPCODE.

Definition at line 4377 of file SelectionDAG.cpp.

References makeVTList().

Referenced by llvm::X86TargetLowering::BuildFILD(), CombineBaseUpdate(), CombineVLDDUP(), createLoadLR(), createStoreLR(), EltsFromConsecutiveLoads(), getMemIntrinsicNode(), llvm::NVPTXTargetLowering::LowerCall(), LowerCMP_SWAP(), llvm::SITargetLowering::LowerOperation(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformShuffleCombine256(), ReplaceATOMIC_BINARY_64(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), and llvm::X86TargetLowering::ReplaceNodeResults().

SDValue SelectionDAG::getMemIntrinsicNode ( unsigned  Opcode,
SDLoc  dl,
SDVTList  VTList,
const SDValue Ops,
unsigned  NumOps,
EVT  MemVT,
MachinePointerInfo  PtrInfo,
unsigned  Align = 0,
bool  Vol = false,
bool  ReadMem = true,
bool  WriteMem = true 
)
SDValue SelectionDAG::getMemIntrinsicNode ( unsigned  Opcode,
SDLoc  dl,
SDVTList  VTList,
const SDValue Ops,
unsigned  NumOps,
EVT  MemVT,
MachineMemOperand MMO 
)
SDValue SelectionDAG::getMemmove ( SDValue  Chain,
SDLoc  dl,
SDValue  Dst,
SDValue  Src,
SDValue  Size,
unsigned  Align,
bool  isVol,
MachinePointerInfo  DstPtrInfo,
MachinePointerInfo  SrcPtrInfo 
)
SDValue SelectionDAG::getMemset ( SDValue  Chain,
SDLoc  dl,
SDValue  Dst,
SDValue  Src,
SDValue  Size,
unsigned  Align,
bool  isVol,
MachinePointerInfo  DstPtrInfo 
)
SDValue SelectionDAG::getMergeValues ( const SDValue Ops,
unsigned  NumOps,
SDLoc  dl 
)
SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
EVT  VT 
)

getNode - Gets or creates the specified node.

Definition at line 2485 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), getVTList(), and VerifySDNode().

Referenced by AddCombineTo64bitMLAL(), AddCombineToVPADDL(), addIPMSequence(), AddRequiredExtensionForVMULL(), llvm::AArch64TargetLowering::addTokenForArgument(), llvm::TargetLowering::BuildExactSDIV(), llvm::X86TargetLowering::BuildFILD(), buildFromShuffleMostly(), BuildIntrinsicOp(), llvm::TargetLowering::BuildSDIV(), BuildSplatI(), llvm::TargetLowering::BuildUDIV(), BuildVectorFromScalar(), BuildVSLDOI(), CMPEQCombine(), combineSelectAndUse(), combineShlAddConstant(), Compact8x32ShuffleNode(), CompactSwizzlableVector(), convertLocVTToValVT(), convertValVTToLocVT(), createCMovFP(), createFPCmp(), createLoadLR(), createStoreLR(), EltsFromConsecutiveLoads(), emitCLC(), EmitCMP(), emitCmp(), emitMemMem(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrnlen(), Expand64BitShift(), ExpandBITCAST(), expandExp(), expandExp2(), expandf64Toi32(), expandLog(), expandLog10(), expandLog2(), expandPow(), ExpandPowI(), ExpandUnalignedLoad(), ExpandUnalignedStore(), ExtractBitFromMaskVector(), extractLOHI(), ExtractSubVector(), FoldConstantArithmetic(), FoldMaskAndShiftToExtract(), FoldMaskAndShiftToScale(), FoldMaskedShiftToScaledMask(), genConstMult(), GeneratePerfectShuffle(), llvm::MipsTargetLowering::getAddrGlobal(), llvm::MipsTargetLowering::getAddrGlobalLargeGOT(), llvm::MipsTargetLowering::getAddrLocal(), llvm::MipsTargetLowering::getAddrNonPIC(), getAnyExtOrTrunc(), getBoundedStrlen(), getBuildVectorSplat(), getCALLSEQ_END(), getCALLSEQ_START(), getConstant(), getConstantFP(), llvm::SelectionDAGBuilder::getControlRoot(), getCopyFromParts(), getCopyFromPartsVector(), getCopyFromReg(), getCopyToParts(), getCopyToPartsVector(), getCopyToReg(), getCTPOP16BitCounts(), GetExponent(), getFLUSHW(), getGLOBAL_OFFSET_TABLE(), getLegalSplat(), getLSBForBFI(), getMemBasePlusOffset(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemset(), getMemsetStores(), getMemsetStringVal(), getMemsetValue(), getMergeValues(), getMGatherNode(), getMOVDDup(), getMOVLowToHigh(), getMScatterNode(), GetNegatedExpression(), getNode(), getNOT(), getOnesVector(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), GetRegistersForValue(), llvm::SelectionDAGBuilder::getRoot(), getSelect(), llvm::AArch64TargetLowering::getSelectableIntSetCC(), getSelectCC(), getSetCC(), getSExtOrTrunc(), getShiftAmountOperand(), GetSignificand(), getStackArgumentTokenFactor(), getTargetShuffleNode(), getTargetVShiftByConstNode(), getTargetVShiftNode(), GetTLSADDR(), getUNDEF(), getVAArg(), llvm::SelectionDAGBuilder::getValueImpl(), getVShift(), getVZextMovL(), getZeroExtendInReg(), getZeroVector(), getZExtOrTrunc(), HandleMergeInputChains(), initAccumulator(), InsertFenceForAtomic(), InsertSubVector(), llvm::AArch64TargetLowering::isKnownShuffleVector(), isLoadIncOrDecStore(), Lower256IntArith(), Lower256IntVSETCC(), LowerADDC_ADDE_SUBC_SUBE(), LowerAsSplatVectorLoad(), llvm::HexagonTargetLowering::LowerATOMIC_FENCE(), LowerATOMIC_FENCE(), LowerAVXExtend(), llvm::MSP430TargetLowering::LowerBlockAddress(), llvm::HexagonTargetLowering::LowerBlockAddress(), llvm::AArch64TargetLowering::LowerBlockAddress(), llvm::MSP430TargetLowering::LowerBR_CC(), llvm::AArch64TargetLowering::LowerBR_CC(), LowerBR_CC(), llvm::HexagonTargetLowering::LowerBR_JT(), llvm::AArch64TargetLowering::LowerBRCOND(), llvm::AArch64TargetLowering::LowerBUILD_VECTOR(), LowerBuildVectorv16i8(), LowerBuildVectorv8i16(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::AArch64TargetLowering::LowerCallResult(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), LowerCONCAT_VECTORS(), llvm::HexagonTargetLowering::LowerConstantPool(), LowerConstantPool(), LowerCTLZ(), LowerCTLZ_ZERO_UNDEF(), lowerCTPOP16BitElements(), lowerCTPOP32BitElements(), LowerCTTZ(), lowerDSPIntr(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), LowerDYNAMIC_STACKALLOC(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::MSP430TargetLowering::LowerExternalSymbol(), LowerEXTRACT_VECTOR_ELT(), LowerEXTRACT_VECTOR_ELT_SSE4(), llvm::SparcTargetLowering::LowerF128Compare(), LowerF128Load(), LowerF128Store(), LowerF64Op(), LowerFABS(), lowerFABS32(), lowerFABS64(), lowerFCOPYSIGN32(), lowerFCOPYSIGN64(), LowerFGETSIGN(), llvm::SITargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerFP_EXTEND(), LowerFP_TO_INT(), LowerFP_TO_SINT(), lowerFP_TO_SINT_STORE(), LowerFRAMEADDR(), llvm::NVPTXTargetLowering::LowerGlobalAddress(), llvm::MSP430TargetLowering::LowerGlobalAddress(), llvm::HexagonTargetLowering::LowerGLOBALADDRESS(), llvm::AArch64TargetLowering::LowerGlobalAddressELFLarge(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::AArch64TargetLowering::LowerGlobalTLSAddress(), lowerGR128Binary(), LowerINSERT_VECTOR_ELT_SSE4(), LowerINT_TO_FP(), LowerInterruptReturn(), LowerINTRINSIC_W_CHAIN(), LowerINTRINSIC_WO_CHAIN(), llvm::AMDGPUTargetLowering::LowerIntrinsicIABS(), llvm::AMDGPUTargetLowering::LowerIntrinsicLRP(), LowerIntVSETCC_AVX512(), llvm::MSP430TargetLowering::LowerJumpTable(), llvm::AArch64TargetLowering::LowerJumpTable(), LowerLabelRef(), llvm::MipsTargetLowering::lowerLOAD(), LowerLOAD_SUB(), LowerMemOpCallTo(), llvm::AMDGPUTargetLowering::LowerMinMax(), lowerMSABinaryBitImmIntr(), lowerMSABitClear(), lowerMSABitClearImm(), lowerMSACopyIntr(), lowerMSALoadIntr(), lowerMSASplatZExt(), lowerMSAStoreIntr(), LowerMUL(), lowerMUL_LOHI32(), llvm::R600TargetLowering::LowerOperation(), llvm::SITargetLowering::LowerOperation(), LowerPREFETCH(), LowerREADCYCLECOUNTER(), llvm::AMDGPUTargetLowering::LowerReturn(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::AArch64TargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), llvm::MSP430TargetLowering::LowerRETURNADDR(), llvm::HexagonTargetLowering::LowerRETURNADDR(), llvm::AArch64TargetLowering::LowerRETURNADDR(), LowerRETURNADDR(), LowerReverse_VECTOR_SHUFFLEv16i8_v8i16(), LowerSCALAR_TO_VECTOR(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerSDIV(), LowerSDIV_v4i16(), LowerSDIV_v4i8(), llvm::AArch64TargetLowering::LowerSELECT(), llvm::MSP430TargetLowering::LowerSELECT_CC(), llvm::HexagonTargetLowering::LowerSELECT_CC(), llvm::AArch64TargetLowering::LowerSELECT_CC(), LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), llvm::AArch64TargetLowering::LowerSETCC(), LowerShift(), llvm::MSP430TargetLowering::LowerShifts(), llvm::MSP430TargetLowering::LowerSIGN_EXTEND(), LowerSIGN_EXTEND(), LowerSIGN_EXTEND_AVX512(), LowerSINT_TO_FP(), llvm::AArch64TargetLowering::LowerTLSDescCall(), LowerToTLSExecModel(), LowerToTLSGeneralDynamicModel32(), LowerToTLSLocalDynamicModel(), LowerUDIV(), LowerVAARG(), llvm::AArch64TargetLowering::LowerVASTART(), LowerVASTART(), llvm::AArch64TargetLowering::LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE(), LowerVECTOR_SHUFFLE_256(), lowerVECTOR_SHUFFLE_ILVEV(), lowerVECTOR_SHUFFLE_ILVL(), lowerVECTOR_SHUFFLE_ILVOD(), lowerVECTOR_SHUFFLE_ILVR(), lowerVECTOR_SHUFFLE_PCKEV(), lowerVECTOR_SHUFFLE_PCKOD(), lowerVECTOR_SHUFFLE_SHF(), lowerVECTOR_SHUFFLE_VSHF(), LowerVECTOR_SHUFFLEtoBlend(), LowerVECTOR_SHUFFLEv16i8(), LowerVECTOR_SHUFFLEv32i8(), LowerVECTOR_SHUFFLEv8i16(), LowerVECTOR_SHUFFLEv8i8(), LowerVectorAllZeroTest(), LowerVectorBroadcast(), LowerVectorFP_TO_INT(), LowerVectorINT_TO_FP(), LowerVectorIntExtend(), LowerVectorSETCC(), LowerVSETCC(), LowerXALUO(), LowerZERO_EXTEND_AVX512(), llvm::SparcTargetLowering::makeAddress(), llvm::SparcTargetLowering::makeHiLoPair(), MaterializeSETB(), MoveBelowOrigChain(), NormalizeVectorShuffle(), OptimizeConditionalInDecrement(), partitionShuffleOfConcats(), PerformADCCombine(), performADDCombine(), PerformAddCombine(), performANDCombine(), PerformANDCombine(), PerformAndCombine(), PerformARMBUILD_VECTORCombine(), PerformBFICombine(), PerformBrCondCombine(), PerformBUILD_VECTORCombine(), llvm::ARMTargetLowering::PerformCMOVCombine(), PerformCMOVCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::SITargetLowering::PerformDAGCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), performDivRemCombine(), performDSPShiftCombine(), PerformExtendCombine(), PerformEXTRACT_VECTOR_ELTCombine(), PerformFADDCombine(), PerformFMACombine(), PerformFMinFMaxCombine(), PerformFSUBCombine(), PerformInsertEltCombine(), performIntegerAbsCombine(), PerformIntrinsicCombine(), PerformISDSETCCCombine(), PerformLOADCombine(), PerformMULCombine(), PerformMulCombine(), performORCombine(), PerformORCombine(), PerformOrCombine(), PerformSELECT_CCCombine(), performSELECTCombine(), PerformSELECTCombine(), performSETCCCombine(), PerformSETCCCombine(), PerformShiftCombine(), PerformSHLCombine(), PerformShuffleCombine256(), PerformSIGN_EXTEND_INREGCombine(), PerformSINT_TO_FPCombine(), PerformSRACombine(), PerformSTORECombine(), PerformSubCombine(), PerformVCVTCombine(), PerformVDIVCombine(), PerformVDUPLANECombine(), PerformVECTOR_SHUFFLECombine(), PerformVMOVDRRCombine(), PerformVMULCombine(), performVSELECTCombine(), PerformVZEXT_MOVLCombine(), performVZEXTCombine(), performXORCombine(), PerformXorCombine(), PerformZExtCombine(), PrepareCall(), PrepareTailCall(), PromoteSplat(), ReorganizeVector(), ReplaceAllUsesWith(), ReplaceATOMIC_BINARY_64(), ReplaceATOMIC_OP_64(), replaceInChain(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), RewriteAsNarrowerShuffle(), llvm::AArch64TargetLowering::SaveVarArgRegisters(), selectMADD(), selectMSUB(), ShrinkLoadReplaceStoreWithStore(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), llvm::TargetLowering::softenSetCCOperands(), SplitVector(), llvm::AMDGPUTargetLowering::SplitVectorLoad(), llvm::AMDGPUTargetLowering::SplitVectorStore(), SplitVSETCC(), tryCombineToBFI(), tryCombineToEXTR(), tryCombineToLargerBFI(), UnrollVectorOp(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::SelectionDAGBuilder::visitBitTestHeader(), llvm::SelectionDAGBuilder::visitJumpTable(), llvm::SelectionDAGBuilder::visitJumpTableHeader(), llvm::SelectionDAGBuilder::visitSPDescriptorParent(), llvm::SelectionDAGBuilder::visitSwitchCase(), WidenMaskArithmetic(), and XFormVExtractWithShuffleIntoLoad().

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

Definition at line 2503 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::ISD::ANY_EXTEND, llvm::lltok::APFloat, llvm::ISD::BITCAST, llvm::APFloat::bitcastToAPInt(), llvm::EVT::bitsGT(), llvm::EVT::bitsLE(), llvm::EVT::bitsLT(), llvm::ISD::BSWAP, llvm::APInt::byteSwap(), llvm::CallingConv::C, llvm::APFloat::changeSign(), llvm::APFloat::clearSign(), llvm::ISD::CONCAT_VECTORS, llvm::APFloat::convert(), llvm::APFloat::convertFromAPInt(), llvm::APFloat::convertToInteger(), llvm::APInt::countLeadingZeros(), llvm::APInt::countPopulation(), llvm::APInt::countTrailingZeros(), llvm::ISD::CTLZ, llvm::ISD::CTLZ_ZERO_UNDEF, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::ISD::CTTZ_ZERO_UNDEF, EVTToAPFloatSemantics(), llvm::ISD::EXTRACT_VECTOR_ELT, llvm::MVT::f32, llvm::MVT::f64, llvm::ISD::FABS, llvm::ISD::FCEIL, llvm::ISD::FFLOOR, llvm::ISD::FNEG, llvm::ISD::FP_EXTEND, llvm::ISD::FP_ROUND, llvm::ISD::FP_TO_SINT, llvm::ISD::FP_TO_UINT, llvm::ISD::FSUB, llvm::ISD::FTRUNC, getConstant(), getConstantFP(), llvm::SDValue::getConstantOperandVal(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getNode(), getNode(), llvm::APInt::getNullValue(), llvm::SDValue::getOpcode(), llvm::SDNode::getOpcode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), getTarget(), getUNDEF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::APInt::getZExtValue(), llvm::MVT::Glue, llvm::MVT::i32, llvm::MVT::i64, llvm::APFloat::IEEEdouble, llvm::APFloat::IEEEsingle, llvm::integerPartWidth, llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::EVT::isVector(), llvm_unreachable, llvm::ISD::MERGE_VALUES, N, llvm::APFloat::opInexact, llvm::APFloat::opInvalidOp, llvm::APFloat::opOK, llvm::APFloat::rmNearestTiesToEven, llvm::APFloat::rmTowardNegative, llvm::APFloat::rmTowardPositive, llvm::APFloat::rmTowardZero, llvm::APFloat::roundToIntegral(), llvm::ISD::SCALAR_TO_VECTOR, llvm::APInt::sextOrTrunc(), llvm::ISD::SIGN_EXTEND, llvm::ISD::SINT_TO_FP, llvm::ISD::TokenFactor, llvm::ISD::TRUNCATE, llvm::ISD::UINT_TO_FP, llvm::ISD::UNDEF, VerifySDNode(), llvm::ISD::ZERO_EXTEND, and llvm::APInt::zextOrTrunc().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
EVT  VT,
SDValue  N1,
SDValue  N2 
)

Definition at line 2878 of file SelectionDAG.cpp.

References llvm::ISD::ADD, llvm::APFloat::add(), llvm::ISD::ADDC, llvm::ISD::ADDE, AddNodeIDNode(), llvm::ISD::AND, llvm::SmallVectorImpl< T >::append(), llvm::APInt::ashr(), llvm::ISD::AssertSext, llvm::ISD::AssertZext, llvm::EVT::bitsLE(), llvm::ISD::BUILD_PAIR, llvm::ISD::BUILD_VECTOR, llvm::CallingConv::C, llvm::ISD::CONCAT_VECTORS, llvm::APFloat::convert(), llvm::APFloat::copySign(), llvm::APFloat::divide(), llvm::dyn_cast(), llvm::ISD::EntryToken, EVTToAPFloatSemantics(), llvm::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FADD, llvm::ISD::FCOPYSIGN, llvm::ISD::FDIV, llvm::ISD::FMUL, FoldConstantArithmetic(), llvm::ISD::FP_ROUND, llvm::ISD::FP_ROUND_INREG, llvm::ISD::FREM, llvm::ISD::FSUB, llvm::APInt::getAllOnesValue(), getAnyExtOrTrunc(), llvm::ConstantSDNode::getAPIntValue(), llvm::APInt::getBitWidth(), getConstant(), getConstantFP(), llvm::SDLoc::getDebugLoc(), llvm::SDLoc::getIROrder(), llvm::SDValue::getNode(), getNode(), llvm::SDValue::getNumOperands(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::EVT::getScalarType(), getSExtOrTrunc(), llvm::SDValue::getSimpleValueType(), llvm::EVT::getSimpleVT(), llvm::EVT::getSizeInBits(), getTarget(), getUNDEF(), llvm::ConstantFPSDNode::getValueAPF(), llvm::SDValue::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), getVTList(), llvm::ConstantSDNode::getZExtValue(), llvm::MVT::Glue, llvm::MVT::i1, llvm::ISD::INSERT_VECTOR_ELT, isCommutativeBinOp(), llvm::ConstantFPSDNode::isExactlyValue(), llvm::EVT::isFloatingPoint(), llvm::EVT::isInteger(), llvm::EVT::isSimple(), llvm::EVT::isVector(), llvm::ConstantFPSDNode::isZero(), llvm::Log2_32_Ceil(), llvm::APFloat::mod(), llvm::ISD::MUL, llvm::ISD::MULHS, llvm::ISD::MULHU, llvm::APFloat::multiply(), N, llvm::SDNode::op_begin(), llvm::SDNode::op_end(), llvm::APFloat::opDivByZero, llvm::APFloat::opInvalidOp, llvm::TargetMachine::Options, llvm::ISD::OR, llvm::MVT::Other, llvm::APFloat::rmNearestTiesToEven, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SDIV, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SRA, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SUB, llvm::APFloat::subtract(), std::swap(), llvm::ISD::TokenFactor, llvm::APInt::trunc(), llvm::ISD::UDIV, llvm::ISD::UNDEF, llvm::TargetOptions::UnsafeFPMath, llvm::ISD::UREM, llvm::NVPTX::PTXLdStInstCode::V2, VerifySDNode(), and llvm::ISD::XOR.

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

Definition at line 3451 of file SelectionDAG.cpp.

References getNode().

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

Definition at line 3458 of file SelectionDAG.cpp.

References getNode().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
EVT  VT,
const SDUse Ops,
unsigned  NumOps 
)

Definition at line 4776 of file SelectionDAG.cpp.

References getNode().

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

Definition at line 4849 of file SelectionDAG.cpp.

References getNode(), getVTList(), and llvm::ArrayRef< T >::size().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
const EVT VTs,
unsigned  NumVTs,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 4856 of file SelectionDAG.cpp.

References getNode(), and makeVTList().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
SDVTList  VTs,
const SDValue Ops,
unsigned  NumOps 
)
SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
SDVTList  VTs 
)

Definition at line 4941 of file SelectionDAG.cpp.

References getNode().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
SDVTList  VTs,
SDValue  N 
)

Definition at line 4945 of file SelectionDAG.cpp.

References getNode().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
SDVTList  VTs,
SDValue  N1,
SDValue  N2 
)

Definition at line 4951 of file SelectionDAG.cpp.

References getNode().

SDValue SelectionDAG::getNode ( unsigned  Opcode,
SDLoc  DL,
SDVTList  VTs,
SDValue  N1,
SDValue  N2,
SDValue  N3 
)

Definition at line 4957 of file SelectionDAG.cpp.

References getNode().

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

Definition at line 4963 of file SelectionDAG.cpp.

References getNode().

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

Definition at line 4970 of file SelectionDAG.cpp.

References getNode().

SDNode * SelectionDAG::getNodeIfExists ( unsigned  Opcode,
SDVTList  VTList,
const SDValue Ops,
unsigned  NumOps 
)

getNodeIfExists - Get the specified node if it's already available, or else return NULL.

Definition at line 5594 of file SelectionDAG.cpp.

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

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

getNOT - Create a bitwise NOT operation as (XOR Val, -1).

getNOT - Create a bitwise NOT operation as (XOR Val, -1).

Definition at line 952 of file SelectionDAG.cpp.

References llvm::APInt::getAllOnesValue(), getConstant(), getNode(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), and llvm::ISD::XOR.

Referenced by lowerMSABitClear(), LowerVectorSETCC(), LowerVSETCC(), and llvm::TargetLowering::SimplifySetCC().

SDValue SelectionDAG::getRegister ( unsigned  Reg,
EVT  VT 
)
SDValue SelectionDAG::getRegisterMask ( const uint32_t *  RegMask)
const SDValue& llvm::SelectionDAG::getRoot ( ) const
inline
SDValue llvm::SelectionDAG::getSelect ( SDLoc  DL,
EVT  VT,
SDValue  Cond,
SDValue  LHS,
SDValue  RHS 
)
inline
SDValue llvm::SelectionDAG::getSelectCC ( SDLoc  DL,
SDValue  LHS,
SDValue  RHS,
SDValue  True,
SDValue  False,
ISD::CondCode  Cond 
)
inline

getSelectCC - Helper function to make it easier to build SelectCC's if you just have an ISD::CondCode instead of an SDValue.

Definition at line 679 of file SelectionDAG.h.

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

Referenced by llvm::R600TargetLowering::PerformDAGCombine().

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

Definition at line 283 of file SelectionDAG.h.

SDValue llvm::SelectionDAG::getSetCC ( SDLoc  DL,
EVT  VT,
SDValue  LHS,
SDValue  RHS,
ISD::CondCode  Cond 
)
inline
SDValue SelectionDAG::getSExtOrTrunc ( SDValue  Op,
SDLoc  DL,
EVT  VT 
)

getSExtOrTrunc - Convert Op, which must be of integer type, to the integer type VT, by either sign-extending or truncating it.

Definition at line 926 of file SelectionDAG.cpp.

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

Referenced by getNode().

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

getShiftAmountOperand - Return the specified value casted to the target's desired shift amount type.

Definition at line 1585 of file SelectionDAG.cpp.

References llvm::EVT::bitsGT(), getNode(), llvm::TargetLoweringBase::getShiftAmountTy(), llvm::TargetMachine::getTargetLowering(), llvm::SDValue::getValueType(), llvm::EVT::isVector(), llvm::ISD::TRUNCATE, and llvm::ISD::ZERO_EXTEND.

Referenced by UnrollVectorOp().

std::pair< EVT, EVT > SelectionDAG::GetSplitDestVTs ( const EVT VT) const

GetSplitDestVTs - Compute the VTs needed for the low/hi parts of a type which is split (or expanded) into two not necessarily identical pieces.

Definition at line 6413 of file SelectionDAG.cpp.

References getContext(), llvm::TargetLoweringBase::getTypeToTransformTo(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::EVT::getVectorVT(), and llvm::EVT::isVector().

Referenced by SplitVector(), and SplitVSETCC().

SDValue SelectionDAG::getSrcValue ( const Value v)

getSrcValue - Construct a node to track a Value* through the backend.

Definition at line 1528 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::FoldingSetNodeID::AddPointer(), llvm::Value::getType(), getVTList(), llvm::Type::isPointerTy(), llvm::MVT::Other, and llvm::ISD::SRCVALUE.

SDValue SelectionDAG::getStackArgumentTokenFactor ( SDValue  Chain)

getStackArgumentTokenFactor - Compute a TokenFactor to force all the incoming stack arguments to be loaded from the stack. This is used in tail call lowering to protect stack arguments from being clobbered.

getStackArgumentTokenFactor - Compute a TokenFactor to force all the incoming stack arguments to be loaded from the stack.

Definition at line 3467 of file SelectionDAG.cpp.

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

SDValue SelectionDAG::getStore ( SDValue  Chain,
SDLoc  dl,
SDValue  Val,
SDValue  Ptr,
MachinePointerInfo  PtrInfo,
bool  isVolatile,
bool  isNonTemporal,
unsigned  Alignment,
const MDNode TBAAInfo = 0 
)

getStore - Helper function to build ISD::STORE nodes.

Definition at line 4618 of file SelectionDAG.cpp.

References getMachineFunction(), llvm::MachineFunction::getMachineMemOperand(), llvm::EVT::getStoreSize(), llvm::SDValue::getValueType(), InferPointerInfo(), llvm::MachineMemOperand::MONonTemporal, llvm::MachineMemOperand::MOStore, llvm::MachineMemOperand::MOVolatile, llvm::MVT::Other, and llvm::MachinePointerInfo::V.

Referenced by llvm::X86TargetLowering::BuildFILD(), EmitTailCallStoreFPAndRetAddr(), EmitTailCallStoreRetAddr(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemset(), ExpandUnalignedLoad(), ExpandUnalignedStore(), getMemcpyLoadsAndStores(), getMemmoveLoadsAndStores(), getMemsetStores(), getTruncStore(), llvm::HexagonTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::HexagonTargetLowering::LowerEH_RETURN(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), LowerF128Store(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), lowerFP_TO_SINT_STORE(), LowerINTRINSIC_W_CHAIN(), LowerMemOpCallTo(), lowerMSAStoreIntr(), LowerVAARG(), llvm::MSP430TargetLowering::LowerVASTART(), llvm::HexagonTargetLowering::LowerVASTART(), llvm::AArch64TargetLowering::LowerVASTART(), LowerVASTART(), memsetStore(), PerformEXTRACT_VECTOR_ELTCombine(), PerformSTORECombine(), llvm::AArch64TargetLowering::SaveVarArgRegisters(), ShrinkLoadReplaceStoreWithStore(), and StoreTailCallArgumentsToStackSlot().

SDValue SelectionDAG::getStore ( SDValue  Chain,
SDLoc  dl,
SDValue  Val,
SDValue  Ptr,
MachineMemOperand MMO 
)
const TargetMachine& llvm::SelectionDAG::getTarget ( ) const
inline
SDValue llvm::SelectionDAG::getTargetBlockAddress ( const BlockAddress BA,
EVT  VT,
int64_t  Offset = 0,
unsigned char  TargetFlags = 0 
)
inline
SDValue llvm::SelectionDAG::getTargetConstant ( uint64_t  Val,
EVT  VT 
)
inline
SDValue llvm::SelectionDAG::getTargetConstant ( const APInt Val,
EVT  VT 
)
inline

Definition at line 411 of file SelectionDAG.h.

References getConstant().

SDValue llvm::SelectionDAG::getTargetConstant ( const ConstantInt Val,
EVT  VT 
)
inline

Definition at line 414 of file SelectionDAG.h.

References getConstant().

SDValue llvm::SelectionDAG::getTargetConstantFP ( double  Val,
EVT  VT 
)
inline
SDValue llvm::SelectionDAG::getTargetConstantFP ( const APFloat Val,
EVT  VT 
)
inline

Definition at line 425 of file SelectionDAG.h.

References getConstantFP().

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

Definition at line 428 of file SelectionDAG.h.

References getConstantFP().

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

Definition at line 459 of file SelectionDAG.h.

References Align(), and getConstantPool().

SDValue SelectionDAG::getTargetExternalSymbol ( const char *  Sym,
EVT  VT,
unsigned char  TargetFlags = 0 
)
SDValue SelectionDAG::getTargetExtractSubreg ( int  SRIdx,
SDLoc  DL,
EVT  VT,
SDValue  Operand 
)

getTargetExtractSubreg - A convenience function for creating TargetInstrInfo::EXTRACT_SUBREG nodes.

getTargetExtractSubreg - A convenience function for creating TargetOpcode::EXTRACT_SUBREG nodes.

Definition at line 5573 of file SelectionDAG.cpp.

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

Referenced by getAtomicLoadArithTargetConstant(), LowerF64Op(), LowerFABS(), lowerGR128Binary(), and llvm::R600TargetLowering::LowerOperation().

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

Definition at line 440 of file SelectionDAG.h.

References getFrameIndex().

Referenced by llvm::PPCTargetLowering::SelectAddressRegImm().

SDValue llvm::SelectionDAG::getTargetGlobalAddress ( const GlobalValue GV,
SDLoc  DL,
EVT  VT,
int64_t  offset = 0,
unsigned char  TargetFlags = 0 
)
inline
SDValue SelectionDAG::getTargetIndex ( int  Index,
EVT  VT,
int64_t  Offset = 0,
unsigned char  TargetFlags = 0 
)
SDValue SelectionDAG::getTargetInsertSubreg ( int  SRIdx,
SDLoc  DL,
EVT  VT,
SDValue  Operand,
SDValue  Subreg 
)

getTargetInsertSubreg - A convenience function for creating TargetInstrInfo::INSERT_SUBREG nodes.

getTargetInsertSubreg - A convenience function for creating TargetOpcode::INSERT_SUBREG nodes.

Definition at line 5584 of file SelectionDAG.cpp.

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

Referenced by LowerF64Op(), and LowerFABS().

SDValue llvm::SelectionDAG::getTargetJumpTable ( int  JTI,
EVT  VT,
unsigned char  TargetFlags = 0 
)
inline
const TargetLowering& llvm::SelectionDAG::getTargetLoweringInfo ( ) const
inline
const TargetTransformInfo* llvm::SelectionDAG::getTargetTransformInfo ( ) const
inline

Definition at line 284 of file SelectionDAG.h.

Referenced by getMemsetStringVal().

SDValue SelectionDAG::getTruncStore ( SDValue  Chain,
SDLoc  dl,
SDValue  Val,
SDValue  Ptr,
MachinePointerInfo  PtrInfo,
EVT  TVT,
bool  isNonTemporal,
bool  isVolatile,
unsigned  Alignment,
const MDNode TBAAInfo = 0 
)
SDValue SelectionDAG::getTruncStore ( SDValue  Chain,
SDLoc  dl,
SDValue  Val,
SDValue  Ptr,
EVT  TVT,
MachineMemOperand MMO 
)
SDValue llvm::SelectionDAG::getUNDEF ( EVT  VT)
inline
SDValue SelectionDAG::getVAArg ( EVT  VT,
SDLoc  dl,
SDValue  Chain,
SDValue  Ptr,
SDValue  SV,
unsigned  Align 
)

getVAArg - VAArg produces a result and token chain, and takes a pointer and a source value as input.

Definition at line 4768 of file SelectionDAG.cpp.

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

SDValue SelectionDAG::getValueType ( EVT  VT)
SDValue SelectionDAG::getVectorShuffle ( EVT  VT,
SDLoc  dl,
SDValue  N1,
SDValue  N2,
const int *  MaskElts 
)
SDVTList SelectionDAG::getVTList ( EVT  VT)

getVTList - Return an SDVTList that represents the list of values specified.

Definition at line 4977 of file SelectionDAG.cpp.

References makeVTList().

Referenced by AddCombineTo64bitMLAL(), llvm::X86TargetLowering::BuildFILD(), llvm::TargetLowering::BuildSDIV(), llvm::TargetLowering::BuildUDIV(), CloneNodeWithValues(), CombineBaseUpdate(), CombineVLDDUP(), createLoadLR(), createStoreLR(), EltsFromConsecutiveLoads(), emitCLC(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForMemchr(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcmp(), llvm::SystemZSelectionDAGInfo::EmitTargetCodeForStrcpy(), Expand64BitShift(), ExpandBITCAST(), GeneratePerfectShuffle(), getAddrSpaceCast(), getAtomic(), getBasicBlock(), getBlockAddress(), getBoundedStrlen(), getCALLSEQ_END(), getCALLSEQ_START(), getConstant(), getConstantFP(), getConstantPool(), getConvertRndSat(), getCopyFromReg(), getCopyToReg(), getEHLabel(), getFrameIndex(), getGlobalAddress(), getIndexedStore(), getJumpTable(), getLoad(), getMachineNode(), getMDNode(), getMergeValues(), getMGatherNode(), getMScatterNode(), getNode(), getRegister(), getRegisterMask(), getScatterNode(), getSrcValue(), getStore(), getTargetIndex(), GetTLSADDR(), getTruncStore(), getVAArg(), getVectorShuffle(), LowerADDC_ADDE_SUBC_SUBE(), llvm::HexagonTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::TargetLowering::LowerCallTo(), LowerCMP_SWAP(), LowerCTLZ(), LowerCTLZ_ZERO_UNDEF(), LowerCTTZ(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), LowerINTRINSIC_W_CHAIN(), LowerINTRINSIC_WO_CHAIN(), LowerREADCYCLECOUNTER(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::MSP430TargetLowering::LowerSELECT_CC(), llvm::MSP430TargetLowering::LowerSETCC(), llvm::AArch64TargetLowering::LowerTLSDescCall(), LowerVECTOR_SHUFFLE(), LowerXALUO(), llvm::PPCTargetLowering::PerformDAGCombine(), performIntegerAbsCombine(), PerformShuffleCombine256(), PrepareCall(), ReplaceATOMIC_BINARY_64(), ReplaceATOMIC_OP_64(), ReplaceINTRINSIC_W_CHAIN(), ReplaceLoadVector(), llvm::PPCTargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::ReplaceNodeResults(), ReplaceREADCYCLECOUNTER(), llvm::SelectionDAGISel::SelectCodeCommon(), and SelectNodeTo().

SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2 
)
SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2,
EVT  VT3 
)
SDVTList SelectionDAG::getVTList ( EVT  VT1,
EVT  VT2,
EVT  VT3,
EVT  VT4 
)
SDVTList SelectionDAG::getVTList ( const EVT VTs,
unsigned  NumVTs 
)
SDValue SelectionDAG::getZeroExtendInReg ( SDValue  Op,
SDLoc  DL,
EVT  SrcTy 
)

getZeroExtendInReg - Return the expression required to zero extend the Op value assuming it was the smaller SrcTy value.

Definition at line 938 of file SelectionDAG.cpp.

References llvm::ISD::AND, getConstant(), llvm::APInt::getLowBitsSet(), getNode(), llvm::EVT::getScalarType(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), and llvm::EVT::isVector().

SDValue SelectionDAG::getZExtOrTrunc ( SDValue  Op,
SDLoc  DL,
EVT  VT 
)
bool llvm::SelectionDAG::hasDebugValues ( ) const
inline

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

Definition at line 1039 of file SelectionDAG.h.

References llvm::SDDbgInfo::empty().

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

unsigned SelectionDAG::InferPtrAlignment ( SDValue  Ptr) const
void SelectionDAG::init ( MachineFunction mf,
const TargetTransformInfo TTI,
const TargetLowering TLI 
)

init - Prepare this SelectionDAG to process code in the given MachineFunction.

Definition at line 880 of file SelectionDAG.cpp.

References llvm::Function::getContext(), and llvm::MachineFunction::getFunction().

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

bool SelectionDAG::isBaseWithConstantOffset ( SDValue  Op) const

isBaseWithConstantOffset - Return true if the specified operand is an ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an ISD::OR with a ConstantSDNode that is guaranteed to have the same semantics as an ADD. This handles the equivalence: X|Cst == X+Cst iff X&Cst = 0.

Definition at line 2425 of file SelectionDAG.cpp.

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

Referenced by InferPtrAlignment(), isConsecutiveLoad(), isConsecutiveLS(), and LowerAsSplatVectorLoad().

static bool llvm::SelectionDAG::isCommutativeBinOp ( unsigned  Opcode)
inlinestatic
bool SelectionDAG::isConsecutiveLoad ( LoadSDNode LD,
LoadSDNode Base,
unsigned  Bytes,
int  Dist 
) const
bool SelectionDAG::isEqualTo ( SDValue  A,
SDValue  B 
) const

isEqualTo - Test whether two SDValues are known to compare equal. This is true if they are the same value, or if one is negative zero and the other positive zero.

Definition at line 2470 of file SelectionDAG.cpp.

Referenced by matchIntegerMINMAX(), PerformSELECT_CCCombine(), and PerformSELECTCombine().

bool SelectionDAG::isKnownNeverNaN ( SDValue  Op) const

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

Definition at line 2439 of file SelectionDAG.cpp.

References llvm::CallingConv::C, and getTarget().

Referenced by PerformSELECT_CCCombine(), and PerformSELECTCombine().

bool SelectionDAG::isKnownNeverZero ( SDValue  Op) const

isKnownNeverZero - Test whether the given SDValue is known to never be positive or negative Zero.

Definition at line 2453 of file SelectionDAG.cpp.

References llvm::CallingConv::C, llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), and llvm::ISD::OR.

Referenced by PerformCMOVCombine(), PerformSELECT_CCCombine(), and PerformSELECTCombine().

void SelectionDAG::Legalize ( )

Legalize - 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.

run - This is the main entry point to this class.

Definition at line 4058 of file LegalizeDAG.cpp.

bool SelectionDAG::LegalizeTypes ( )

LegalizeTypes - This transforms the SelectionDAG into a SelectionDAG that only uses types natively supported by the target. Returns "true" if it made any changes.

Note that this is an involved process that may invalidate pointers into the graph.

Definition at line 1106 of file LegalizeTypes.cpp.

References llvm::DAGTypeLegalizer::run().

bool SelectionDAG::LegalizeVectors ( )

LegalizeVectors - This transforms the SelectionDAG into a SelectionDAG that only uses vector math operations supported by the target. This is necessary as a separate step from Legalize because unrolling a vector operation can introduce illegal types, which requires running LegalizeTypes again.

This returns true if it made any changes; in that case, LegalizeTypes is called again before Legalize.

Note that this is an involved process that may invalidate pointers into the graph.

Definition at line 776 of file LegalizeVectorOps.cpp.

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

MaskedValueIsZero - 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.

MaskedValueIsZero - Return true if 'V & Mask' is known to be zero. We use this predicate to simplify operations downstream. Mask is known to be zero for bits that V cannot have.

Definition at line 1747 of file SelectionDAG.cpp.

References ComputeMaskedBits().

Referenced by llvm::SelectionDAGISel::CheckAndMask(), isBaseWithConstantOffset(), isTruncWithZeroHighBitsInput(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformORCombine(), PerformShiftCombine(), ShrinkLoadReplaceStoreWithStore(), SignBitIsZero(), and llvm::TargetLowering::SimplifySetCC().

SDNode * SelectionDAG::MorphNodeTo ( SDNode N,
unsigned  Opc,
SDVTList  VTs,
const SDValue Ops,
unsigned  NumOps 
)

MorphNodeTo - This mutates the specified node to have the specified return type, opcode, and operands.

MorphNodeTo - This mutates the specified node to have the specified return type, opcode, and operands.

Note that MorphNodeTo returns the resultant node. If there is already a node of the specified opcode and operands, it returns that node instead of the current one. Note that the SDLoc need not be the same.

Using MorphNodeTo is faster than creating a new node and swapping it in with ReplaceAllUsesWith both because it often avoids allocating a new node, and because it doesn't require CSE recalculation for any of the node's users.

Definition at line 5325 of file SelectionDAG.cpp.

References AddNodeIDNode(), llvm::BumpPtrAllocator::Allocate(), llvm::array_lengthof(), llvm::SmallPtrSet< PtrType, SmallSize >::begin(), llvm::SmallPtrSetImpl::empty(), llvm::SmallPtrSet< PtrType, SmallSize >::end(), llvm::SDUse::getNode(), llvm::MVT::Glue, I, llvm::SDNode::InitOperands(), llvm::SmallPtrSet< PtrType, SmallSize >::insert(), N, llvm::SDVTList::NumVTs, llvm::SDNode::op_begin(), llvm::SDNode::op_end(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), RemoveDeadNodes(), llvm::SDNode::use_empty(), and llvm::SDVTList::VTs.

Referenced by CloneNodeWithValues(), performANDCombine(), performSRACombine(), and SelectNodeTo().

void SelectionDAG::RemoveDeadNode ( SDNode N)

RemoveDeadNode - Remove the specified node from the system. If any of its operands then becomes dead, remove them as well. Inform UpdateListener for each node deleted.

Definition at line 598 of file SelectionDAG.cpp.

References llvm::NVPTXISD::Dummy, getRoot(), and RemoveDeadNodes().

void SelectionDAG::RemoveDeadNodes ( )
void SelectionDAG::RemoveDeadNodes ( SmallVectorImpl< SDNode * > &  DeadNodes)
void SelectionDAG::ReplaceAllUsesOfValuesWith ( const SDValue From,
const SDValue To,
unsigned  Num 
)

ReplaceAllUsesOfValuesWith - 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.

ReplaceAllUsesOfValuesWith - Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone. The same value may appear in both the From and To list. The Deleted vector is handled the same way as for ReplaceAllUsesWith.

Definition at line 5865 of file SelectionDAG.cpp.

References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::SDValue::getNode(), llvm::SDValue::getResNo(), llvm::SDUse::getResNo(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), ReplaceAllUsesOfValueWith(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

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

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

ReplaceAllUsesOfValueWith - Replace any uses of From with To, leaving uses of other values produced by From.Val alone.

ReplaceAllUsesOfValueWith - Replace any uses of From with To, leaving uses of other values produced by From.getNode() alone. The Deleted vector is handled the same way as for ReplaceAllUsesWith.

Definition at line 5788 of file SelectionDAG.cpp.

References llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getResNo(), llvm::SDUse::getResNo(), getRoot(), llvm::SDNode::use_iterator::getUse(), ReplaceAllUsesWith(), setRoot(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

Referenced by AddCombineTo64bitMLAL(), EltsFromConsecutiveLoads(), llvm::PPCTargetLowering::PerformDAGCombine(), performDivRemCombine(), PerformEXTRACT_VECTOR_ELTCombine(), PerformShuffleCombine256(), PerformSINT_TO_FPCombine(), ReplaceAllUsesOfValuesWith(), llvm::R600TargetLowering::ReplaceNodeResults(), llvm::SelectionDAGISel::ReplaceUses(), llvm::SelectionDAGISel::SelectCodeCommon(), selectMADD(), and selectMSUB().

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

ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. This can cause recursive merging of nodes in the DAG. Use the first version if 'From' is known to have a single result, use the second if you have two nodes with identical results (or if 'To' has a superset of the results of 'From'), use the third otherwise.

These methods all take an optional UpdateListener, which (if not null) is informed about nodes that are deleted and modified due to recursive changes in the dag.

These functions only replace all existing uses. It's possible that as these replacements are being performed, CSE may cause the From node to be given new uses. These new uses of From are left in place, and not automatically transferred to To.

ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. This can cause recursive merging of nodes in the DAG.

This version assumes From has a single result value.

Definition at line 5656 of file SelectionDAG.cpp.

References llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getResNo(), getRoot(), setRoot(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

Referenced by FoldMaskAndShiftToExtract(), FoldMaskAndShiftToScale(), FoldMaskedShiftToScaledMask(), ReplaceAllUsesOfValueWith(), ReplaceAllUsesWith(), and llvm::SelectionDAGISel::ReplaceUses().

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

ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. This can cause recursive merging of nodes in the DAG.

This version assumes that for each value of From, there is a corresponding value in To in the same position with the same type.

Definition at line 5703 of file SelectionDAG.cpp.

References getNode(), llvm::SDNode::getNumValues(), getRoot(), llvm::SDNode::use_iterator::getUse(), llvm::SDNode::getValueType(), llvm::SDNode::hasAnyUseOfValue(), setRoot(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

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

ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead. This can cause recursive merging of nodes in the DAG.

This version can replace From with any result values. To must match the number and types of values returned by From.

Definition at line 5750 of file SelectionDAG.cpp.

References getNode(), llvm::SDNode::getNumValues(), llvm::SDUse::getResNo(), getRoot(), llvm::SDNode::use_iterator::getUse(), ReplaceAllUsesWith(), setRoot(), llvm::SDNode::use_begin(), and llvm::SDNode::use_end().

void llvm::SelectionDAG::RepositionNode ( allnodes_iterator  Position,
SDNode N 
)
inline

RepositionNode - Move node N in the AllNodes list to be immediately before the given iterator Position. This may be used to update the topological ordering when the list of nodes is modified.

Definition at line 982 of file SelectionDAG.h.

Referenced by insertDAGNode(), and InsertDAGNode().

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

SelectNodeTo - 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.

SelectNodeTo - These are wrappers around MorphNodeTo that accept a machine opcode.

Definition at line 5189 of file SelectionDAG.cpp.

References getVTList().

Referenced by SelectNodeTo().

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

Definition at line 5195 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5202 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5210 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

SDNode * SelectionDAG::SelectNodeTo ( SDNode N,
unsigned  TargetOpc,
EVT  VT,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5218 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5232 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

SDNode * SelectionDAG::SelectNodeTo ( SDNode N,
unsigned  TargetOpc,
EVT  VT1,
EVT  VT2,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5225 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

SDNode * SelectionDAG::SelectNodeTo ( SDNode N,
unsigned  TargetOpc,
EVT  VT1,
EVT  VT2,
EVT  VT3,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5238 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

SDNode * SelectionDAG::SelectNodeTo ( SDNode N,
unsigned  MachineOpc,
EVT  VT1,
EVT  VT2,
EVT  VT3,
EVT  VT4,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5245 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5252 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5260 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5268 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

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

Definition at line 5277 of file SelectionDAG.cpp.

References getVTList(), and SelectNodeTo().

SDNode * SelectionDAG::SelectNodeTo ( SDNode N,
unsigned  TargetOpc,
SDVTList  VTs,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5286 of file SelectionDAG.cpp.

References MorphNodeTo(), N, and llvm::SDNode::setNodeId().

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

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

Definition at line 176 of file SelectionDAGPrinter.cpp.

References llvm::errs(), N, and NodeGraphAttrs.

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

setGraphColor - Convenience for setting node color attribute.

Definition at line 206 of file SelectionDAGPrinter.cpp.

References llvm::errs(), N, and NodeGraphAttrs.

const SDValue& llvm::SelectionDAG::setRoot ( SDValue  N)
inline
void SelectionDAG::setSubgraphColor ( SDNode N,
const char *  Color 
)

setGraphColor - Convenience for setting subgraph color attribute.

setSubgraphColor - Convenience for setting subgraph color attribute.

Definition at line 250 of file SelectionDAGPrinter.cpp.

References llvm::errs(), and llvm::LibFunc::strcmp.

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

SignBitIsZero - Return true if the sign bit of Op is known to be zero. We use this predicate to simplify operations downstream.

Definition at line 1735 of file SelectionDAG.cpp.

References llvm::EVT::getScalarType(), llvm::APInt::getSignBit(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), llvm::EVT::isVector(), and MaskedValueIsZero().

Referenced by llvm::X86TargetLowering::BuildFILD(), and emitCmp().

std::pair< SDValue, SDValue > SelectionDAG::SplitVector ( const SDValue N,
const SDLoc DL,
const EVT LoVT,
const EVT HiVT 
)

SplitVector - Split the vector with EXTRACT_SUBVECTOR using the provides VTs and return the low/high part.

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

Definition at line 6430 of file SelectionDAG.cpp.

References llvm::ISD::EXTRACT_SUBVECTOR, getConstant(), getNode(), llvm::SDValue::getValueType(), llvm::TargetLoweringBase::getVectorIdxTy(), llvm::EVT::getVectorNumElements(), llvm::HexagonISD::Hi, and llvm::HexagonISD::Lo.

Referenced by SplitVector(), and SplitVectorOperand().

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

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

Definition at line 1144 of file SelectionDAG.h.

References GetSplitDestVTs(), llvm::SDValue::getValueType(), SplitVector(), and llvm::tie().

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

SplitVectorOperand - Split the node's operand with EXTRACT_SUBVECTOR and return the low/high part.

Definition at line 1152 of file SelectionDAG.h.

References llvm::SDNode::getOperand(), and SplitVector().

Referenced by SplitVSETCC().

void SelectionDAG::TransferDbgValues ( SDValue  From,
SDValue  To 
)
SDValue SelectionDAG::UnrollVectorOp ( SDNode N,
unsigned  ResNE = 0 
)

UnrollVectorOp - Utility function used by legalize and lowering to "unroll" a vector operation by splitting out the scalars and operating on each element individually. If the ResNE is 0, fully unroll the vector op. If ResNE is less than the width of the vector op, unroll up to ResNE. If the ResNE is greater than the width of the vector op, unroll the vector op and fill the end of the resulting vector with UNDEFS.

Definition at line 6253 of file SelectionDAG.cpp.

References llvm::ISD::BUILD_VECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FP_ROUND_INREG, getConstant(), getContext(), getNode(), llvm::SDNode::getNumOperands(), llvm::SDNode::getNumValues(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), getShiftAmountOperand(), llvm::TargetMachine::getTargetLowering(), getUNDEF(), llvm::SDValue::getValueType(), getValueType(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::TargetLoweringBase::getVectorIdxTy(), llvm::EVT::getVectorVT(), llvm::EVT::isVector(), llvm::A64CC::NE, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SELECT, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND_INREG, llvm::SmallVectorTemplateCommon< T >::size(), llvm::ISD::SRA, llvm::ISD::SRL, and llvm::ISD::VSELECT.

Referenced by LowerVectorFP_TO_INT(), and LowerVectorINT_TO_FP().

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

UpdateNodeOperands - Mutate the specified node in-place to have the specified operands. If the resultant node already exists in the DAG, this does not modify the specified node, instead it returns the node that already exists. If the resultant node does not exist in the DAG, the input node is returned. As a degenerate case, if you specify the same input operands as the node already has, the input node is returned.

Definition at line 5066 of file SelectionDAG.cpp.

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

Referenced by EltsFromConsecutiveLoads(), MoveBelowOrigChain(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformShuffleCombine256(), and UpdateNodeOperands().

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

Definition at line 5090 of file SelectionDAG.cpp.

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

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

Definition at line 5119 of file SelectionDAG.cpp.

References UpdateNodeOperands().

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

Definition at line 5125 of file SelectionDAG.cpp.

References UpdateNodeOperands().

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

Definition at line 5132 of file SelectionDAG.cpp.

References UpdateNodeOperands().

SDNode * SelectionDAG::UpdateNodeOperands ( SDNode N,
const SDValue Ops,
unsigned  NumOps 
)

Definition at line 5139 of file SelectionDAG.cpp.

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

void SelectionDAG::viewGraph ( const std::string &  Title)

viewGraph - Pop up a GraphViz/gv window with the DAG rendered using 'dot'.

viewGraph - Pop up a ghostview window with the reachable parts of the DAG rendered using 'dot'.

Definition at line 145 of file SelectionDAGPrinter.cpp.

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

void SelectionDAG::viewGraph ( )

Definition at line 158 of file SelectionDAGPrinter.cpp.

Friends And Related Function Documentation

friend struct DAGUpdateListener
friend

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

Definition at line 249 of file SelectionDAG.h.

Member Data Documentation

bool llvm::SelectionDAG::NewNodesMustHaveLegalTypes

NewNodesMustHaveLegalTypes - When true, additional steps are taken to ensure that getConstant() and similar functions return DAG nodes that have legal types. This is important after type legalization since any illegally typed nodes generated after this point will not experience type legalization.

Definition at line 245 of file SelectionDAG.h.

Referenced by getConstant().

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

Definition at line 293 of file SelectionDAG.h.

Referenced by clearGraphAttrs(), getGraphAttrs(), setGraphAttrs(), and setGraphColor().


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