LLVM 20.0.0git
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
llvm::SDNode Class Reference

Represents one node in the SelectionDAG. More...

#include "llvm/CodeGen/SelectionDAGNodes.h"

Inheritance diagram for llvm::SDNode:
Inheritance graph
[legend]

Classes

class  ConstantSDNodeBitfields
 
class  LoadSDNodeBitfields
 
class  LSBaseSDNodeBitfields
 
class  MemSDNodeBitfields
 
class  SDNodeBitfields
 
class  StoreSDNodeBitfields
 
class  use_iterator
 This class provides iterator support for SDUse operands that use a specific SDNode. More...
 
struct  value_op_iterator
 Iterator for directly iterating over the operand SDValue's. More...
 

Public Types

using op_iterator = SDUse *
 
using value_iterator = const EVT *
 

Public Member Functions

unsigned getOpcode () const
 Return the SelectionDAG opcode value for this node.
 
bool isTargetOpcode () const
 Test if this node has a target-specific opcode (in the <target>ISD namespace).
 
bool isTargetStrictFPOpcode () const
 Test if this node has a target-specific opcode that may raise FP exceptions (in the <target>ISD namespace and greater than FIRST_TARGET_STRICTFP_OPCODE).
 
bool isTargetMemoryOpcode () const
 Test if this node has a target-specific memory-referencing opcode (in the <target>ISD namespace and greater than FIRST_TARGET_MEMORY_OPCODE).
 
bool isUndef () const
 Return true if the type of the node type undefined.
 
bool isMemIntrinsic () const
 Test if this node is a memory intrinsic (with valid pointer information).
 
bool isStrictFPOpcode ()
 Test if this node is a strict floating point pseudo-op.
 
bool isVPOpcode () const
 Test if this node is a vector predication operation.
 
bool isMachineOpcode () const
 Test if this node has a post-isel opcode, directly corresponding to a MachineInstr opcode.
 
unsigned getMachineOpcode () const
 This may only be called if isMachineOpcode returns true.
 
bool getHasDebugValue () const
 
void setHasDebugValue (bool b)
 
bool isDivergent () const
 
bool use_empty () const
 Return true if there are no uses of this node.
 
bool hasOneUse () const
 Return true if there is exactly one use of this node.
 
size_t use_size () const
 Return the number of uses of this node.
 
int getNodeId () const
 Return the unique node id.
 
void setNodeId (int Id)
 Set unique node id.
 
int getCombinerWorklistIndex () const
 Get worklist index for DAGCombiner.
 
void setCombinerWorklistIndex (int Index)
 Set worklist index for DAGCombiner.
 
unsigned getIROrder () const
 Return the node ordering.
 
void setIROrder (unsigned Order)
 Set the node ordering.
 
const DebugLocgetDebugLoc () const
 Return the source location info.
 
void setDebugLoc (DebugLoc dl)
 Set source location info.
 
use_iterator use_begin () const
 Provide iteration support to walk over all uses of an SDNode.
 
iterator_range< use_iteratoruses ()
 
iterator_range< use_iteratoruses () const
 
bool hasNUsesOfValue (unsigned NUses, unsigned Value) const
 Return true if there are exactly NUSES uses of the indicated value.
 
bool hasAnyUseOfValue (unsigned Value) const
 Return true if there are any use of the indicated value.
 
bool isOnlyUserOf (const SDNode *N) const
 Return true if this node is the only use of N.
 
bool isOperandOf (const SDNode *N) const
 Return true if this node is an operand of N.
 
bool isPredecessorOf (const SDNode *N) const
 Return true if this node is a predecessor of N.
 
bool hasPredecessor (const SDNode *N) const
 Return true if N is a predecessor of this node.
 
unsigned getNumOperands () const
 Return the number of values used by this operation.
 
uint64_t getConstantOperandVal (unsigned Num) const
 Helper method returns the integer value of a ConstantSDNode operand.
 
uint64_t getAsZExtVal () const
 Helper method returns the zero-extended integer value of a ConstantSDNode.
 
const APIntgetConstantOperandAPInt (unsigned Num) const
 Helper method returns the APInt of a ConstantSDNode operand.
 
const APIntgetAsAPIntVal () const
 Helper method returns the APInt value of a ConstantSDNode.
 
const SDValuegetOperand (unsigned Num) const
 
op_iterator op_begin () const
 
op_iterator op_end () const
 
ArrayRef< SDUseops () const
 
iterator_range< value_op_iteratorop_values () const
 
SDVTList getVTList () const
 
SDNodegetGluedNode () const
 If this node has a glue operand, return the node to which the glue operand points.
 
SDNodegetGluedUser () const
 If this node has a glue value with a user, return the user (there is at most one).
 
SDNodeFlags getFlags () const
 
void setFlags (SDNodeFlags NewFlags)
 
void intersectFlagsWith (const SDNodeFlags Flags)
 Clear any flags in this node that aren't also set in Flags.
 
bool hasPoisonGeneratingFlags () const
 
void setCFIType (uint32_t Type)
 
uint32_t getCFIType () const
 
unsigned getNumValues () const
 Return the number of values defined/returned by this operator.
 
EVT getValueType (unsigned ResNo) const
 Return the type of a specified result.
 
MVT getSimpleValueType (unsigned ResNo) const
 Return the type of a specified result as a simple type.
 
TypeSize getValueSizeInBits (unsigned ResNo) const
 Returns MVT::getSizeInBits(getValueType(ResNo)).
 
value_iterator value_begin () const
 
value_iterator value_end () const
 
iterator_range< value_iteratorvalues () const
 
std::string getOperationName (const SelectionDAG *G=nullptr) const
 Return the opcode of this operation for printing.
 
void print_types (raw_ostream &OS, const SelectionDAG *G) const
 
void print_details (raw_ostream &OS, const SelectionDAG *G) const
 
void print (raw_ostream &OS, const SelectionDAG *G=nullptr) const
 
void printr (raw_ostream &OS, const SelectionDAG *G=nullptr) const
 
void printrFull (raw_ostream &O, const SelectionDAG *G=nullptr) const
 Print a SelectionDAG node and all children down to the leaves.
 
void printrWithDepth (raw_ostream &O, const SelectionDAG *G=nullptr, unsigned depth=100) const
 Print a SelectionDAG node and children up to depth "depth." The given SelectionDAG allows target-specific nodes to be printed in human-readable form.
 
void dump () const
 Dump this node, for debugging.
 
void dumpr () const
 Dump (recursively) this node and its use-def subgraph.
 
void dump (const SelectionDAG *G) const
 Dump this node, for debugging.
 
void dumpr (const SelectionDAG *G) const
 Dump (recursively) this node and its use-def subgraph.
 
void dumprFull (const SelectionDAG *G=nullptr) const
 printrFull to dbgs().
 
void dumprWithDepth (const SelectionDAG *G=nullptr, unsigned depth=100) const
 printrWithDepth to dbgs().
 
void Profile (FoldingSetNodeID &ID) const
 Gather unique data for the node.
 
void addUse (SDUse &U)
 This method should only be used by the SDUse class.
 
- Public Member Functions inherited from llvm::FoldingSetBase::Node
 Node ()=default
 
void * getNextInBucket () const
 
void SetNextInBucket (void *N)
 
- Public Member Functions inherited from llvm::ilist_node_impl< OptionsT >
self_iterator getIterator ()
 
const_self_iterator getIterator () const
 
reverse_self_iterator getReverseIterator ()
 
const_reverse_self_iterator getReverseIterator () const
 
bool isSentinel () const
 Check whether this is the sentinel node.
 
- Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< OptionsT >, OptionsT::parent_ty >
const OptionsT::parent_ty * getParent () const
 
OptionsT::parent_ty * getParent ()
 
void setParent (OptionsT::parent_ty *Parent)
 

Static Public Member Functions

static use_iterator use_end ()
 
static bool hasPredecessorHelper (const SDNode *N, SmallPtrSetImpl< const SDNode * > &Visited, SmallVectorImpl< const SDNode * > &Worklist, unsigned int MaxSteps=0, bool TopologicalPrune=false)
 Returns true if N is a predecessor of any node in Worklist.
 
static bool areOnlyUsersOf (ArrayRef< const SDNode * > Nodes, const SDNode *N)
 Return true if all the users of N are contained in Nodes.
 
static constexpr size_t getMaxNumOperands ()
 Return the maximum number of operands that a SDNode can hold.
 
static const chargetIndexedModeName (ISD::MemIndexedMode AM)
 

Public Attributes

uint16_t PersistentId = 0xffff
 Unique and persistent id per SDNode in the DAG.
 

Protected Types

enum  { NumSDNodeBits = 3 }
 
enum  { NumMemSDNodeBits = NumSDNodeBits + 4 }
 
enum  { NumLSBaseSDNodeBits = NumMemSDNodeBits + 3 }
 
- Protected Types inherited from llvm::ilist_node_impl< OptionsT >
using self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, false >::type
 
using const_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, true >::type
 
using reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, false >::type
 
using const_reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, true >::type
 

Protected Member Functions

 SDNode (unsigned Opc, unsigned Order, DebugLoc dl, SDVTList VTs)
 Create an SDNode.
 
void DropOperands ()
 Release the operands and set this node to have zero operands.
 
- Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT >
 ilist_node_impl ()=default
 

Static Protected Member Functions

static SDVTList getSDVTList (EVT VT)
 

Protected Attributes

union {
   char   RawSDNodeBits [sizeof(uint16_t)]
 
   SDNodeBitfields   SDNodeBits
 
   ConstantSDNodeBitfields   ConstantSDNodeBits
 
   MemSDNodeBitfields   MemSDNodeBits
 
   LSBaseSDNodeBitfields   LSBaseSDNodeBits
 
   LoadSDNodeBitfields   LoadSDNodeBits
 
   StoreSDNodeBitfields   StoreSDNodeBits
 
}; 
 

Friends

class SelectionDAG
 
class HandleSDNode
 

Detailed Description

Represents one node in the SelectionDAG.

Definition at line 491 of file SelectionDAGNodes.h.

Member Typedef Documentation

◆ op_iterator

Definition at line 978 of file SelectionDAGNodes.h.

◆ value_iterator

Definition at line 1064 of file SelectionDAGNodes.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NumSDNodeBits 

Definition at line 524 of file SelectionDAGNodes.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
NumMemSDNodeBits 

Definition at line 546 of file SelectionDAGNodes.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
NumLSBaseSDNodeBits 

Definition at line 568 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ SDNode()

llvm::SDNode::SDNode ( unsigned  Opc,
unsigned  Order,
DebugLoc  dl,
SDVTList  VTs 
)
inlineprotected

Create an SDNode.

SDNodes are created without any operands, and never own the operand storage. To add operands, see SelectionDAG::createOperands.

Definition at line 1143 of file SelectionDAGNodes.h.

References assert(), llvm::DebugLoc::hasTrivialDestructor(), llvm::SDVTList::NumVTs, and RawSDNodeBits.

Member Function Documentation

◆ addUse()

void llvm::SDNode::addUse ( SDUse U)
inline

This method should only be used by the SDUse class.

Definition at line 1131 of file SelectionDAGNodes.h.

◆ areOnlyUsersOf()

bool SDNode::areOnlyUsersOf ( ArrayRef< const SDNode * >  Nodes,
const SDNode N 
)
static

Return true if all the users of N are contained in Nodes.

Return true if the only users of N are contained in Nodes.

NOTE: Requires at least one match, but doesn't require them all.

Definition at line 12234 of file SelectionDAG.cpp.

References llvm::is_contained(), and N.

Referenced by combineX86ShufflesRecursively().

◆ DropOperands()

void SDNode::DropOperands ( )
protected

Release the operands and set this node to have zero operands.

DropOperands - Release the operands and set this node to have zero operands.

Definition at line 10622 of file SelectionDAG.cpp.

References I, op_begin(), op_end(), and llvm::Use::set().

Referenced by llvm::HandleSDNode::~HandleSDNode().

◆ dump() [1/2]

LLVM_DUMP_METHOD void SDNode::dump ( ) const

Dump this node, for debugging.

Definition at line 616 of file SelectionDAGDumper.cpp.

References dump().

Referenced by dump(), llvm::ScheduleDAGSDNodes::dumpNode(), and tryLowerToSLI().

◆ dump() [2/2]

LLVM_DUMP_METHOD void SDNode::dump ( const SelectionDAG G) const

Dump this node, for debugging.

The given SelectionDAG allows target-specific nodes to be printed in human-readable form.

Definition at line 618 of file SelectionDAGDumper.cpp.

References llvm::dbgs(), G, and print().

◆ dumpr() [1/2]

LLVM_DUMP_METHOD void SDNode::dumpr ( ) const

Dump (recursively) this node and its use-def subgraph.

Definition at line 1106 of file SelectionDAGDumper.cpp.

References llvm::dbgs(), and DumpNodesr().

◆ dumpr() [2/2]

LLVM_DUMP_METHOD void SDNode::dumpr ( const SelectionDAG G) const

Dump (recursively) this node and its use-def subgraph.

The given SelectionDAG allows target-specific nodes to be printed in human-readable form.

Definition at line 1111 of file SelectionDAGDumper.cpp.

References llvm::dbgs(), DumpNodesr(), and G.

◆ dumprFull()

LLVM_DUMP_METHOD void SDNode::dumprFull ( const SelectionDAG G = nullptr) const

printrFull to dbgs().

The given SelectionDAG allows target-specific nodes to be printed in human-readable form. Unlike dumpr, this will print the whole DAG, including children that appear multiple times.

Definition at line 1152 of file SelectionDAGDumper.cpp.

References dumprWithDepth(), and G.

Referenced by llvm::SelectionDAG::AssignTopologicalOrder().

◆ dumprWithDepth()

LLVM_DUMP_METHOD void SDNode::dumprWithDepth ( const SelectionDAG G = nullptr,
unsigned  depth = 100 
) const

printrWithDepth to dbgs().

The given SelectionDAG allows target-specific nodes to be printed in human-readable form. Unlike dumpr, this will print children that appear multiple times wherever they are used.

Definition at line 1148 of file SelectionDAGDumper.cpp.

References llvm::dbgs(), G, and printrWithDepth().

Referenced by dumprFull().

◆ getAsAPIntVal()

const APInt & llvm::SDNode::getAsAPIntVal ( ) const
inline

◆ getAsZExtVal()

uint64_t llvm::SDNode::getAsZExtVal ( ) const
inline

◆ getCFIType()

uint32_t llvm::SDNode::getCFIType ( ) const
inline

Definition at line 1039 of file SelectionDAGNodes.h.

◆ getCombinerWorklistIndex()

int llvm::SDNode::getCombinerWorklistIndex ( ) const
inline

Get worklist index for DAGCombiner.

Definition at line 771 of file SelectionDAGNodes.h.

◆ getConstantOperandAPInt()

const APInt & llvm::SDNode::getConstantOperandAPInt ( unsigned  Num) const
inline

◆ getConstantOperandVal()

uint64_t llvm::SDNode::getConstantOperandVal ( unsigned  Num) const
inline

◆ getDebugLoc()

const DebugLoc & llvm::SDNode::getDebugLoc ( ) const
inline

Return the source location info.

Definition at line 783 of file SelectionDAGNodes.h.

Referenced by print().

◆ getFlags()

SDNodeFlags llvm::SDNode::getFlags ( ) const
inline

◆ getGluedNode()

SDNode * llvm::SDNode::getGluedNode ( ) const
inline

◆ getGluedUser()

SDNode * llvm::SDNode::getGluedUser ( ) const
inline

If this node has a glue value with a user, return the user (there is at most one).

Otherwise return NULL.

Definition at line 1017 of file SelectionDAGNodes.h.

References use_begin(), and use_end().

◆ getHasDebugValue()

bool llvm::SDNode::getHasDebugValue ( ) const
inline

Definition at line 749 of file SelectionDAGNodes.h.

References SDNodeBits.

Referenced by print_details(), and llvm::SelectionDAG::transferDbgValues().

◆ getIndexedModeName()

const char * SDNode::getIndexedModeName ( ISD::MemIndexedMode  AM)
static

◆ getIROrder()

unsigned llvm::SDNode::getIROrder ( ) const
inline

◆ getMachineOpcode()

unsigned llvm::SDNode::getMachineOpcode ( ) const
inline

◆ getMaxNumOperands()

static constexpr size_t llvm::SDNode::getMaxNumOperands ( )
inlinestaticconstexpr

Return the maximum number of operands that a SDNode can hold.

Definition at line 957 of file SelectionDAGNodes.h.

References llvm::max().

Referenced by llvm::SelectionDAG::getTokenFactor().

◆ getNodeId()

int llvm::SDNode::getNodeId ( ) const
inline

Return the unique node id.

Definition at line 765 of file SelectionDAGNodes.h.

Referenced by insertDAGNode(), and print_details().

◆ getNumOperands()

unsigned llvm::SDNode::getNumOperands ( ) const
inline

◆ getNumValues()

unsigned llvm::SDNode::getNumValues ( ) const
inline

◆ getOpcode()

unsigned llvm::SDNode::getOpcode ( ) const
inline

Return the SelectionDAG opcode value for this node.

For pre-isel nodes (those for which isMachineOpcode returns false), these are the opcode values in the ISD and <target>ISD namespaces. For post-isel opcodes, see getMachineOpcode.

Definition at line 682 of file SelectionDAGNodes.h.

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineTo64bitMLAL(), AddCombineTo64bitUMAAL(), canEmitConjunction(), canEnableCoalescing(), canLowerSRLToRoundingShiftForVT(), CheckForMaskedLoad(), closestSucc(), CombineANDShift(), combineArithReduction(), combineBitOpWithShift(), combineShiftOfShiftedLogic(), combineToExtendCMOV(), CombineVLDDUP(), combineX86ShuffleChain(), combineX86SubCmpForFlags(), emitConjunctionRec(), extractPtrauthBlendDiscriminators(), findConsecutiveLoad(), foldAndOrOfSETCC(), foldBinOpIntoSelectIfProfitable(), foldMaskedMerge(), llvm::SelectionDAG::FoldSymbolOffset(), llvm::MemSDNode::getBasePtr(), llvm::AtomicSDNode::getBasePtr(), llvm::VPBaseLoadStoreSDNode::getBasePtr(), llvm::VPGatherScatterSDNode::getBasePtr(), getConstantLaneNumOfExtractHalfOperand(), llvm::AtomicSDNode::getExtensionType(), llvm::VPGatherScatterSDNode::getIndex(), llvm::VPBaseLoadStoreSDNode::getMask(), llvm::MaskedLoadStoreSDNode::getMask(), llvm::VPGatherScatterSDNode::getMask(), getMemVTFromNode(), llvm::SelectionDAG::getNode(), getNormalLoadInput(), llvm::LSBaseSDNode::getOffset(), llvm::VPBaseLoadStoreSDNode::getOffset(), llvm::MaskedLoadStoreSDNode::getOffset(), getOperationName(), llvm::EmptyMatchContext::getRootBaseOpcode(), llvm::VPMatchContext::getRootBaseOpcode(), llvm::VPGatherScatterSDNode::getScale(), llvm::AtomicSDNode::getVal(), llvm::VPBaseLoadStoreSDNode::getVectorLength(), llvm::VPGatherScatterSDNode::getVectorLength(), hasOnlyLiveInOpers(), hasOnlyLiveOutUses(), hasVRegCycleUse(), isAddSubOrSubAdd(), isBitfieldExtractOpFromAnd(), llvm::AtomicSDNode::isCompareAndSwap(), llvm::ARMTargetLowering::isDesirableToCommuteWithShift(), isExtendedBUILD_VECTOR(), isFloatingPointZero(), llvm::isLegalAVL(), isMemOPCandidate(), isVPOpcode(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), llvm::VETargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_64(), lowerCallFromStatepointLoweringInfo(), lowerLaneOp(), LowerMUL(), LowerVECTOR_SHUFFLE(), llvm::EmptyMatchContext::match(), llvm::VPMatchContext::match(), llvm::SelectionDAG::matchBinOpReduction(), matchSetCC(), narrowIndex(), PerformADDVecReduce(), performANDCombine(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), performBuildVectorCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), performCONDCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), PerformExtractEltCombine(), PerformExtractEltToVMOVRRD(), PerformExtractFpToIntStores(), performExtractVectorEltCombine(), performINSERT_VECTOR_ELTCombine(), performMADD_MSUBCombine(), performMemPairCombine(), PerformMinMaxCombine(), performMulCombine(), performORCombine(), performSETCCCombine(), performSetCCPunpkCombine(), PerformSplittingMVETruncToNarrowingStores(), PerformSplittingToNarrowingStores(), performSRACombine(), PerformSTORECombine(), PerformSUBCombine(), PerformUMLALCombine(), PerformVCMPCombine(), PerformVECREDUCE_ADDCombine(), PerformVMOVhrCombine(), PerformVMOVNCombine(), PerformVMOVrhCombine(), performXORCombine(), PerformXORCombine(), reduceBuildVecToShuffleWithZero(), replaceInChain(), resetVRegCycle(), scalarizeExtEltFP(), llvm::HexagonDAGToDAGISel::SelectBrevLdIntrinsic(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectNewCircIntrinsic(), llvm::RISCVDAGToDAGISel::selectShiftMask(), llvm::AtomicSDNode::setExtensionType(), shouldCombineToPostInc(), simplifyMul24(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), stripModuloOnShift(), transformAddImmMulImm(), transformAddShlImm(), tryCombineMULLWithUZP1(), tryMemPairCombine(), tryToConvertShuffleOfTbl2ToTbl4(), tryToFoldExtendOfConstant(), tryToFoldExtendSelectLoad(), tryToWidenSetCCOperands(), llvm::VPMatchContext::VPMatchContext(), widenAbs(), and widenCtPop().

◆ getOperand()

const SDValue & llvm::SDNode::getOperand ( unsigned  Num) const
inline

Definition at line 973 of file SelectionDAGNodes.h.

References assert().

Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineTo64bitMLAL(), AddCombineTo64BitSMLAL16(), AddCombineTo64bitUMAAL(), AddCombineToVPADD(), llvm::SIInstrInfo::areLoadsFromSameBasePtr(), llvm::ARMBaseInstrInfo::areLoadsFromSameBasePtr(), llvm::X86InstrInfo::areLoadsFromSameBasePtr(), CanCombineFCOPYSIGN_EXTEND_ROUND(), canEmitConjunction(), canLowerSRLToRoundingShiftForVT(), checkBoolTestAndOrSetCCCombine(), checkWMMAElementsModifiersF16(), CombineANDShift(), combineAndShuffleNot(), combineArithReduction(), combineBasicSADPattern(), combineCCMask(), combineCompareEqual(), combineConcatVectorOfShuffleAndItsOperands(), combineFaddCFmul(), combineMaskedLoadConstantMask(), combineSext(), combineShiftOfShiftedLogic(), combineShuffleOfBitcast(), combineShuffleOfScalars(), combineShuffleOfSplatVal(), combineShuffleToAnyExtendVectorInreg(), combineShuffleToZeroExtendVectorInReg(), combineStore(), combineToExtendCMOV(), combineTruncationShuffle(), combineVectorCompareAndMaskUnaryOp(), CombineVLDDUP(), CombineVMOVDRRCandidateWithVecOp(), combineVPDPBUSDPattern(), combineVWADDSUBWSelect(), combineX86ShuffleChain(), combineZext(), createMMXBuildVector(), detectZextAbsDiff(), emitConjunctionRec(), llvm::PPCTargetLowering::expandVSXLoadForLE(), llvm::PPCTargetLowering::expandVSXStoreForLE(), extractPtrauthBlendDiscriminators(), foldAddSubMasked1(), foldAndOrOfSETCC(), foldBinOpIntoSelectIfProfitable(), foldCSELOfCSEL(), foldMaskedMerge(), foldMaskedMergeImpl(), foldOverflowCheck(), foldSelectOfCTTZOrCTLZ(), foldShuffleOfConcatUndefs(), formSplatFromShuffles(), llvm::getAnnotatedNodeAVL(), llvm::MemSDNode::getBasePtr(), llvm::AtomicSDNode::getBasePtr(), llvm::LoadSDNode::getBasePtr(), llvm::StoreSDNode::getBasePtr(), llvm::VPBaseLoadStoreSDNode::getBasePtr(), llvm::VPLoadSDNode::getBasePtr(), llvm::VPStridedLoadSDNode::getBasePtr(), llvm::VPStoreSDNode::getBasePtr(), llvm::VPStridedStoreSDNode::getBasePtr(), llvm::MaskedLoadSDNode::getBasePtr(), llvm::MaskedStoreSDNode::getBasePtr(), llvm::VPGatherScatterSDNode::getBasePtr(), llvm::MaskedGatherScatterSDNode::getBasePtr(), llvm::MaskedHistogramSDNode::getBasePtr(), llvm::X86MaskedGatherScatterSDNode::getBasePtr(), llvm::MemSDNode::getChain(), llvm::SelectionDAG::getCommutedVectorShuffle(), getConstantLaneNumOfExtractHalfOperand(), getConstantOperandAPInt(), getConstantOperandVal(), llvm::BuildVectorSDNode::getConstantRawBits(), llvm::LifetimeSDNode::getFrameIndex(), getGluedNode(), getHopForBuildVector(), llvm::MaskedHistogramSDNode::getInc(), llvm::VPGatherScatterSDNode::getIndex(), llvm::MaskedGatherScatterSDNode::getIndex(), llvm::MaskedHistogramSDNode::getIndex(), llvm::X86MaskedGatherScatterSDNode::getIndex(), llvm::MaskedHistogramSDNode::getIntID(), getKnownUndefForVectorBinop(), llvm::VPBaseLoadStoreSDNode::getMask(), llvm::VPLoadSDNode::getMask(), llvm::VPStridedLoadSDNode::getMask(), llvm::VPStoreSDNode::getMask(), llvm::VPStridedStoreSDNode::getMask(), llvm::MaskedLoadStoreSDNode::getMask(), llvm::MaskedLoadSDNode::getMask(), llvm::MaskedStoreSDNode::getMask(), llvm::VPGatherScatterSDNode::getMask(), llvm::MaskedGatherScatterSDNode::getMask(), llvm::MaskedHistogramSDNode::getMask(), llvm::X86MaskedGatherScatterSDNode::getMask(), getMaskSetter(), getMemVTFromNode(), getNormalLoadInput(), llvm::LSBaseSDNode::getOffset(), llvm::LoadSDNode::getOffset(), llvm::StoreSDNode::getOffset(), llvm::VPBaseLoadStoreSDNode::getOffset(), llvm::VPLoadSDNode::getOffset(), llvm::VPStridedLoadSDNode::getOffset(), llvm::VPStoreSDNode::getOffset(), llvm::VPStridedStoreSDNode::getOffset(), llvm::MaskedLoadStoreSDNode::getOffset(), llvm::MaskedLoadSDNode::getOffset(), llvm::MaskedStoreSDNode::getOffset(), getOneTrueElt(), getOperationName(), llvm::MaskedLoadSDNode::getPassThru(), llvm::MaskedGatherSDNode::getPassThru(), llvm::X86MaskedGatherSDNode::getPassThru(), llvm::BuildVectorSDNode::getRepeatedSequence(), llvm::VPGatherScatterSDNode::getScale(), llvm::MaskedGatherScatterSDNode::getScale(), llvm::MaskedHistogramSDNode::getScale(), llvm::X86MaskedGatherScatterSDNode::getScale(), llvm::BuildVectorSDNode::getSplatValue(), llvm::VPStridedLoadSDNode::getStride(), llvm::VPStridedStoreSDNode::getStride(), getUnderlyingExtractedFromVec(), getUsefulBitsForUse(), llvm::AtomicSDNode::getVal(), llvm::StoreSDNode::getValue(), llvm::VPStoreSDNode::getValue(), llvm::VPStridedStoreSDNode::getValue(), llvm::MaskedStoreSDNode::getValue(), llvm::VPScatterSDNode::getValue(), llvm::MaskedScatterSDNode::getValue(), llvm::X86MaskedScatterSDNode::getValue(), llvm::VPBaseLoadStoreSDNode::getVectorLength(), llvm::VPLoadSDNode::getVectorLength(), llvm::VPStridedLoadSDNode::getVectorLength(), llvm::VPStoreSDNode::getVectorLength(), llvm::VPStridedStoreSDNode::getVectorLength(), llvm::VPGatherScatterSDNode::getVectorLength(), llvm::SelectionDAG::getVectorShuffle(), hasOnlyLiveInOpers(), hasOnlyLiveOutUses(), incDecVectorConstant(), isAddSubOrSubAdd(), isAllConstantBuildVector(), isBitfieldExtractOpFromAnd(), llvm::BuildVectorSDNode::isConstantSequence(), llvm::BuildVectorSDNode::isConstantSplat(), llvm::X86TargetLowering::isDesirableToCombineLogicOpOfSETCC(), llvm::ARMTargetLowering::isDesirableToCommuteWithShift(), llvm::RISCVTargetLowering::isDesirableToCommuteWithShift(), isExtendedBUILD_VECTOR(), isF128MovedFromParts(), isFloatingPointZero(), isFusableLoadOpStorePattern(), isHopBuildVector(), llvm::SelectionDAG::isKnownToBeAPowerOfTwo(), llvm::HexagonDAGToDAGISel::LoadInstrForLoadIntrinsic(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), lowerBitreverseShuffle(), LowerBuildVectorv4x32(), lowerCallFromStatepointLoweringInfo(), lowerLaneOp(), LowerMLOAD(), LowerMUL(), LowerShift(), lowerShuffleAsBroadcast(), lowerShuffleViaVRegSplitting(), LowerToHorizontalOp(), LowerVECTOR_SHUFFLE(), lowerVECTOR_SHUFFLEAsRotate(), llvm::SelectionDAG::matchBinOpReduction(), matchPMADDWD(), MergeInputChains(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), narrowInsertExtractVectorBinOp(), narrowShuffle(), nodesHaveSameOperandValue(), PerformADDCombineWithOperands(), PerformADDVecReduce(), performANDCombine(), PerformANDCombine(), PerformARMBUILD_VECTORCombine(), performBuildShuffleExtendCombine(), performBuildVectorCombine(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), performConcatVectorsCombine(), performCONDCombine(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::RISCVTargetLowering::PerformDAGCombine(), PerformExtractEltCombine(), performExtractVectorEltCombine(), llvm::AMDGPUTargetLowering::performFNegCombine(), PerformHWLoopCombine(), performINSERT_VECTOR_ELTCombine(), performLDNT1Combine(), performMADD_MSUBCombine(), performMemPairCombine(), PerformMinMaxCombine(), performMulCombine(), llvm::ARMTargetLowering::PerformMVEExtCombine(), performORCombine(), PerformORCombine(), PerformORCombineToSMULWBT(), PerformSELECTCombine(), performSetccAddFolding(), performSETCCCombine(), performSetCCPunpkCombine(), PerformShiftCombine(), performSignExtendSetCCCombine(), PerformSplittingMVETruncToNarrowingStores(), PerformSplittingToNarrowingStores(), performSRACombine(), performSRLCombine(), performSTNT1Combine(), PerformSTORECombine(), PerformSUBCombine(), performSubsToAndsCombine(), performSVEAndCombine(), performSVEMulAddSubCombine(), PerformUMLALCombine(), PerformVECREDUCE_ADDCombine(), performVecReduceAddCombineWithUADDLP(), PerformVMOVhrCombine(), PerformVMOVNCombine(), PerformVMOVrhCombine(), PerformVMOVRRDCombine(), PerformVMULCombine(), performXORCombine(), PerformXORCombine(), print(), llvm::ResourcePriorityQueue::rawRegPressureDelta(), ReconstructShuffleWithRuntimeMask(), reduceBuildVecToShuffleWithZero(), replaceInChain(), replaceShuffleOfInsert(), scalarizeExtEltFP(), scalarizeExtractedBinop(), llvm::ResourcePriorityQueue::scheduledNode(), llvm::RISCVDAGToDAGISel::Select(), llvm::HexagonDAGToDAGISel::SelectBrevLdIntrinsic(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::HexagonDAGToDAGISel::SelectNewCircIntrinsic(), simplifyMul24(), llvm::TargetLowering::SimplifySetCC(), simplifyShuffleOfShuffle(), SkipExtensionForVMULL(), llvm::HexagonDAGToDAGISel::StoreInstrForLoadIntrinsic(), stripModuloOnShift(), transformAddImmMulImm(), transformAddShlImm(), tryBitfieldInsertOpFromOr(), tryBuildVectorShuffle(), tryCombineMULLWithUZP1(), tryCombineToBSL(), tryMemPairCombine(), llvm::RISCVDAGToDAGISel::trySignedBitfieldExtract(), tryToConvertShuffleOfTbl2ToTbl4(), tryToFoldExtendOfConstant(), tryToFoldExtendSelectLoad(), llvm::VPMatchContext::VPMatchContext(), widenAbs(), and widenCtPop().

◆ getOperationName()

std::string SDNode::getOperationName ( const SelectionDAG G = nullptr) const

Return the opcode of this operation for printing.

Definition at line 58 of file SelectionDAGDumper.cpp.

References llvm::ISD::ABDS, llvm::ISD::ABDU, llvm::ISD::ABS, llvm::ISD::ADD, llvm::ISD::ADDC, llvm::ISD::ADDE, llvm::ISD::ADDROFRETURNADDR, llvm::ISD::ADDRSPACECAST, llvm::ISD::ADJUST_TRAMPOLINE, llvm::ISD::AND, llvm::ISD::ANNOTATION_LABEL, llvm::ISD::ANY_EXTEND, llvm::ISD::ANY_EXTEND_VECTOR_INREG, llvm::ISD::AssertAlign, llvm::ISD::AssertSext, llvm::ISD::AssertZext, llvm::ISD::ATOMIC_CMP_SWAP, llvm::ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS, llvm::ISD::ATOMIC_FENCE, llvm::ISD::ATOMIC_LOAD, llvm::ISD::ATOMIC_LOAD_ADD, llvm::ISD::ATOMIC_LOAD_AND, llvm::ISD::ATOMIC_LOAD_CLR, llvm::ISD::ATOMIC_LOAD_FADD, llvm::ISD::ATOMIC_LOAD_FMAX, llvm::ISD::ATOMIC_LOAD_FMIN, llvm::ISD::ATOMIC_LOAD_MAX, llvm::ISD::ATOMIC_LOAD_MIN, llvm::ISD::ATOMIC_LOAD_NAND, llvm::ISD::ATOMIC_LOAD_OR, llvm::ISD::ATOMIC_LOAD_SUB, llvm::ISD::ATOMIC_LOAD_UDEC_WRAP, llvm::ISD::ATOMIC_LOAD_UINC_WRAP, llvm::ISD::ATOMIC_LOAD_UMAX, llvm::ISD::ATOMIC_LOAD_UMIN, llvm::ISD::ATOMIC_LOAD_XOR, llvm::ISD::ATOMIC_STORE, llvm::ISD::ATOMIC_SWAP, llvm::ISD::AVGCEILS, llvm::ISD::AVGCEILU, llvm::ISD::AVGFLOORS, llvm::ISD::AVGFLOORU, llvm::ISD::BasicBlock, llvm::ISD::BF16_TO_FP, llvm::ISD::BITCAST, llvm::ISD::BITREVERSE, llvm::ISD::BlockAddress, llvm::ISD::BR, llvm::ISD::BR_CC, llvm::ISD::BR_JT, llvm::ISD::BRCOND, llvm::ISD::BRIND, llvm::ISD::BSWAP, llvm::ISD::BUILD_PAIR, llvm::ISD::BUILD_VECTOR, llvm::ISD::BUILTIN_OP_END, llvm::ISD::CALLSEQ_END, llvm::ISD::CALLSEQ_START, llvm::ISD::CARRY_FALSE, llvm::ISD::CATCHRET, llvm::ISD::CLEANUPRET, llvm::ISD::CLEAR_CACHE, llvm::ISD::CONCAT_VECTORS, llvm::ISD::CONDCODE, llvm::ISD::Constant, llvm::ISD::ConstantFP, llvm::ISD::ConstantPool, llvm::ISD::CONVERGENCECTRL_ANCHOR, llvm::ISD::CONVERGENCECTRL_ENTRY, llvm::ISD::CONVERGENCECTRL_GLUE, llvm::ISD::CONVERGENCECTRL_LOOP, llvm::ISD::CopyFromReg, llvm::ISD::CopyToReg, llvm::ISD::CTLZ, llvm::ISD::CTLZ_ZERO_UNDEF, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::ISD::CTTZ_ZERO_UNDEF, llvm::ISD::DEBUGTRAP, llvm::ISD::DELETED_NODE, llvm::ISD::DYNAMIC_STACKALLOC, llvm::ISD::EH_DWARF_CFA, llvm::ISD::EH_LABEL, llvm::ISD::EH_RETURN, llvm::ISD::EH_SJLJ_LONGJMP, llvm::ISD::EH_SJLJ_SETJMP, llvm::ISD::EH_SJLJ_SETUP_DISPATCH, llvm::ISD::EntryToken, llvm::ISD::EXPERIMENTAL_VECTOR_HISTOGRAM, llvm::ISD::ExternalSymbol, llvm::ISD::EXTRACT_ELEMENT, llvm::ISD::EXTRACT_SUBVECTOR, llvm::ISD::EXTRACT_VECTOR_ELT, llvm::ISD::FABS, llvm::ISD::FACOS, llvm::ISD::FADD, llvm::ISD::FASIN, llvm::ISD::FATAN, llvm::ISD::FCANONICALIZE, llvm::ISD::FCBRT, llvm::ISD::FCEIL, llvm::ISD::FCOPYSIGN, llvm::ISD::FCOS, llvm::ISD::FCOSH, llvm::ISD::FDIV, llvm::ISD::FEXP, llvm::ISD::FEXP10, llvm::ISD::FEXP2, llvm::ISD::FFLOOR, llvm::ISD::FFREXP, llvm::ISD::FGETSIGN, llvm::ISD::FLDEXP, llvm::ISD::FLOG, llvm::ISD::FLOG10, llvm::ISD::FLOG2, llvm::ISD::FMA, llvm::ISD::FMAD, llvm::ISD::FMAXIMUM, llvm::ISD::FMAXIMUMNUM, llvm::ISD::FMAXNUM, llvm::ISD::FMAXNUM_IEEE, llvm::ISD::FMINIMUM, llvm::ISD::FMINIMUMNUM, llvm::ISD::FMINNUM, llvm::ISD::FMINNUM_IEEE, llvm::ISD::FMUL, llvm::ISD::FNEARBYINT, llvm::ISD::FNEG, llvm::ISD::FP16_TO_FP, llvm::ISD::FP_EXTEND, llvm::ISD::FP_ROUND, llvm::ISD::FP_TO_BF16, llvm::ISD::FP_TO_FP16, llvm::ISD::FP_TO_SINT, llvm::ISD::FP_TO_SINT_SAT, llvm::ISD::FP_TO_UINT, llvm::ISD::FP_TO_UINT_SAT, llvm::ISD::FPOW, llvm::ISD::FPOWI, llvm::ISD::FPTRUNC_ROUND, llvm::ISD::FRAME_TO_ARGS_OFFSET, llvm::ISD::FRAMEADDR, llvm::ISD::FrameIndex, llvm::ISD::FREEZE, llvm::ISD::FREM, llvm::ISD::FRINT, llvm::ISD::FROUND, llvm::ISD::FROUNDEVEN, llvm::ISD::FSHL, llvm::ISD::FSHR, llvm::ISD::FSIN, llvm::ISD::FSINCOS, llvm::ISD::FSINH, llvm::ISD::FSQRT, llvm::ISD::FSUB, llvm::ISD::FTAN, llvm::ISD::FTANH, llvm::ISD::FTRUNC, G, llvm::ISD::GC_TRANSITION_END, llvm::ISD::GC_TRANSITION_START, llvm::get(), llvm::ISD::GET_DYNAMIC_AREA_OFFSET, llvm::ISD::GET_FPENV, llvm::ISD::GET_FPENV_MEM, llvm::ISD::GET_FPMODE, llvm::ISD::GET_ROUNDING, getAsZExtVal(), llvm::Intrinsic::getBaseName(), getMachineOpcode(), getOpcode(), getOperand(), llvm::TargetLowering::getTargetNodeName(), llvm::ISD::GLOBAL_OFFSET_TABLE, llvm::ISD::GlobalAddress, llvm::ISD::GlobalTLSAddress, llvm::ISD::HANDLENODE, llvm::ISD::INIT_TRAMPOLINE, llvm::ISD::INLINEASM, llvm::ISD::INLINEASM_BR, llvm::ISD::INSERT_SUBVECTOR, llvm::ISD::INSERT_VECTOR_ELT, llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, llvm::ISD::INTRINSIC_WO_CHAIN, llvm::ISD::IS_FPCLASS, isMachineOpcode(), llvm::ISD::JUMP_TABLE_DEBUG_INFO, llvm::ISD::JumpTable, llvm::ISD::LIFETIME_END, llvm::ISD::LIFETIME_START, llvm::ISD::LLRINT, llvm::ISD::LLROUND, llvm_unreachable, llvm::ISD::LOAD, llvm::ISD::LOCAL_RECOVER, llvm::ISD::LRINT, llvm::ISD::LROUND, llvm::ISD::MCSymbol, llvm::ISD::MDNODE_SDNODE, llvm::ISD::MEMBARRIER, llvm::ISD::MERGE_VALUES, llvm::ISD::MGATHER, llvm::ISD::MLOAD, llvm::ISD::MSCATTER, llvm::ISD::MSTORE, llvm::ISD::MUL, llvm::ISD::MULHS, llvm::ISD::MULHU, Name, llvm::ISD::OR, llvm::ISD::PARITY, llvm::ISD::PATCHPOINT, llvm::ISD::PCMARKER, llvm::ISD::PREALLOCATED_ARG, llvm::ISD::PREALLOCATED_SETUP, llvm::ISD::PREFETCH, llvm::ISD::PSEUDO_PROBE, llvm::ISD::PtrAuthGlobalAddress, llvm::ISD::READ_REGISTER, llvm::ISD::READCYCLECOUNTER, llvm::ISD::READSTEADYCOUNTER, llvm::ISD::Register, llvm::ISD::RegisterMask, llvm::ISD::RESET_FPENV, llvm::ISD::RESET_FPMODE, llvm::ISD::RETURNADDR, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::ISD::SADDO, llvm::ISD::SADDO_CARRY, llvm::ISD::SADDSAT, llvm::ISD::SCALAR_TO_VECTOR, llvm::ISD::SCMP, llvm::ISD::SDIV, llvm::ISD::SDIVFIX, llvm::ISD::SDIVFIXSAT, llvm::ISD::SDIVREM, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::ISD::SET_FPENV, llvm::ISD::SET_FPENV_MEM, llvm::ISD::SET_FPMODE, llvm::ISD::SET_ROUNDING, llvm::ISD::SETCC, llvm::ISD::SETCCCARRY, llvm::ISD::SETEQ, llvm::ISD::SETFALSE, llvm::ISD::SETFALSE2, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETO, llvm::ISD::SETOEQ, llvm::ISD::SETOGE, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETONE, llvm::ISD::SETTRUE, llvm::ISD::SETTRUE2, llvm::ISD::SETUEQ, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SETULT, llvm::ISD::SETUNE, llvm::ISD::SETUO, llvm::ISD::SHL, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SIGN_EXTEND_VECTOR_INREG, llvm::ISD::SINT_TO_FP, llvm::ISD::SMAX, llvm::ISD::SMIN, llvm::ISD::SMUL_LOHI, llvm::ISD::SMULFIX, llvm::ISD::SMULFIXSAT, llvm::ISD::SMULO, llvm::ISD::SPLAT_VECTOR, llvm::ISD::SPLAT_VECTOR_PARTS, llvm::ISD::SPONENTRY, llvm::ISD::SRA, llvm::ISD::SRA_PARTS, llvm::ISD::SRCVALUE, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SRL_PARTS, llvm::ISD::SSHLSAT, llvm::ISD::SSUBO, llvm::ISD::SSUBO_CARRY, llvm::ISD::SSUBSAT, llvm::ISD::STACKMAP, llvm::ISD::STACKRESTORE, llvm::ISD::STACKSAVE, llvm::ISD::STEP_VECTOR, llvm::ISD::STORE, llvm::StringRef::str(), llvm::ISD::STRICT_BF16_TO_FP, llvm::ISD::STRICT_FACOS, llvm::ISD::STRICT_FADD, llvm::ISD::STRICT_FASIN, llvm::ISD::STRICT_FATAN, llvm::ISD::STRICT_FCEIL, llvm::ISD::STRICT_FCOS, llvm::ISD::STRICT_FCOSH, llvm::ISD::STRICT_FDIV, llvm::ISD::STRICT_FEXP, llvm::ISD::STRICT_FEXP2, llvm::ISD::STRICT_FFLOOR, llvm::ISD::STRICT_FLDEXP, llvm::ISD::STRICT_FLOG, llvm::ISD::STRICT_FLOG10, llvm::ISD::STRICT_FLOG2, llvm::ISD::STRICT_FMA, llvm::ISD::STRICT_FMAXIMUM, llvm::ISD::STRICT_FMAXNUM, llvm::ISD::STRICT_FMINIMUM, llvm::ISD::STRICT_FMINNUM, llvm::ISD::STRICT_FMUL, llvm::ISD::STRICT_FNEARBYINT, llvm::ISD::STRICT_FP16_TO_FP, llvm::ISD::STRICT_FP_EXTEND, llvm::ISD::STRICT_FP_ROUND, llvm::ISD::STRICT_FP_TO_BF16, llvm::ISD::STRICT_FP_TO_FP16, llvm::ISD::STRICT_FP_TO_SINT, llvm::ISD::STRICT_FP_TO_UINT, llvm::ISD::STRICT_FPOW, llvm::ISD::STRICT_FPOWI, llvm::ISD::STRICT_FREM, llvm::ISD::STRICT_FRINT, llvm::ISD::STRICT_FROUND, llvm::ISD::STRICT_FROUNDEVEN, llvm::ISD::STRICT_FSETCC, llvm::ISD::STRICT_FSETCCS, llvm::ISD::STRICT_FSIN, llvm::ISD::STRICT_FSINH, llvm::ISD::STRICT_FSQRT, llvm::ISD::STRICT_FSUB, llvm::ISD::STRICT_FTAN, llvm::ISD::STRICT_FTANH, llvm::ISD::STRICT_FTRUNC, llvm::ISD::STRICT_LLRINT, llvm::ISD::STRICT_LLROUND, llvm::ISD::STRICT_LRINT, llvm::ISD::STRICT_LROUND, llvm::ISD::STRICT_SINT_TO_FP, llvm::ISD::STRICT_UINT_TO_FP, llvm::ISD::SUB, llvm::ISD::SUBC, llvm::ISD::SUBE, llvm::ISD::TargetBlockAddress, llvm::ISD::TargetConstant, llvm::ISD::TargetConstantFP, llvm::ISD::TargetConstantPool, llvm::ISD::TargetExternalSymbol, llvm::ISD::TargetFrameIndex, llvm::ISD::TargetGlobalAddress, llvm::ISD::TargetGlobalTLSAddress, llvm::ISD::TargetIndex, llvm::ISD::TargetJumpTable, TII, llvm::ISD::TokenFactor, llvm::ISD::TRAP, llvm::ISD::TRUNCATE, llvm::ISD::TRUNCATE_SSAT_S, llvm::ISD::TRUNCATE_SSAT_U, llvm::ISD::TRUNCATE_USAT_U, llvm::ISD::UADDO, llvm::ISD::UADDO_CARRY, llvm::ISD::UADDSAT, llvm::ISD::UBSANTRAP, llvm::ISD::UCMP, llvm::ISD::UDIV, llvm::ISD::UDIVFIX, llvm::ISD::UDIVFIXSAT, llvm::ISD::UDIVREM, llvm::ISD::UINT_TO_FP, llvm::ISD::UMAX, llvm::ISD::UMIN, llvm::ISD::UMUL_LOHI, llvm::ISD::UMULFIX, llvm::ISD::UMULFIXSAT, llvm::ISD::UMULO, llvm::ISD::UNDEF, llvm::ISD::UREM, llvm::ISD::USHLSAT, llvm::ISD::USUBO, llvm::ISD::USUBO_CARRY, llvm::ISD::USUBSAT, llvm::ISD::VAARG, llvm::ISD::VACOPY, llvm::ISD::VAEND, llvm::ISD::VALUETYPE, llvm::ISD::VASTART, llvm::ISD::VECREDUCE_ADD, llvm::ISD::VECREDUCE_AND, llvm::ISD::VECREDUCE_FADD, llvm::ISD::VECREDUCE_FMAX, llvm::ISD::VECREDUCE_FMAXIMUM, llvm::ISD::VECREDUCE_FMIN, llvm::ISD::VECREDUCE_FMINIMUM, llvm::ISD::VECREDUCE_FMUL, llvm::ISD::VECREDUCE_MUL, llvm::ISD::VECREDUCE_OR, llvm::ISD::VECREDUCE_SEQ_FADD, llvm::ISD::VECREDUCE_SEQ_FMUL, llvm::ISD::VECREDUCE_SMAX, llvm::ISD::VECREDUCE_SMIN, llvm::ISD::VECREDUCE_UMAX, llvm::ISD::VECREDUCE_UMIN, llvm::ISD::VECREDUCE_XOR, llvm::ISD::VECTOR_COMPRESS, llvm::ISD::VECTOR_DEINTERLEAVE, llvm::ISD::VECTOR_INTERLEAVE, llvm::ISD::VECTOR_REVERSE, llvm::ISD::VECTOR_SHUFFLE, llvm::ISD::VECTOR_SPLICE, llvm::ISD::VSCALE, llvm::ISD::VSELECT, llvm::ISD::WRITE_REGISTER, llvm::ISD::XOR, llvm::ISD::ZERO_EXTEND, and llvm::ISD::ZERO_EXTEND_VECTOR_INREG.

Referenced by printr().

◆ getSDVTList()

static SDVTList llvm::SDNode::getSDVTList ( EVT  VT)
inlinestaticprotected

Definition at line 1134 of file SelectionDAGNodes.h.

◆ getSimpleValueType()

MVT llvm::SDNode::getSimpleValueType ( unsigned  ResNo) const
inline

◆ getValueSizeInBits()

TypeSize llvm::SDNode::getValueSizeInBits ( unsigned  ResNo) const
inline

Returns MVT::getSizeInBits(getValueType(ResNo)).

If the value type is a scalable vector type, the scalable property will be set and the runtime size will be a positive integer multiple of the base size.

Definition at line 1060 of file SelectionDAGNodes.h.

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

◆ getValueType()

EVT llvm::SDNode::getValueType ( unsigned  ResNo) const
inline

Return the type of a specified result.

Definition at line 1045 of file SelectionDAGNodes.h.

References assert().

Referenced by AddCombineTo64bitMLAL(), CanCombineFCOPYSIGN_EXTEND_ROUND(), combineADDToMAT_PCREL_ADDR(), combineArithReduction(), combineBasicSADPattern(), combineCarryDiamond(), combineConstantPoolLoads(), combineLoad(), combineMinMaxReduction(), combinePredicateReduction(), combineShiftOfShiftedLogic(), combineShuffleOfBitcast(), combineShuffleOfScalars(), combineShuffleOfSplatVal(), combineShuffleToAnyExtendVectorInreg(), combineShuffleToZeroExtendVectorInReg(), combineToExtendCMOV(), combineTruncationShuffle(), combineUADDO_CARRYDiamond(), combineVectorCompareAndMaskUnaryOp(), CombineVMOVDRRCandidateWithVecOp(), combineVPDPBUSDPattern(), combineX86SubCmpForFlags(), Expand64BitShift(), foldAndOrOfSETCC(), foldBinOpIntoSelectIfProfitable(), foldMaskedMergeImpl(), foldShuffleOfConcatUndefs(), formSplatFromShuffles(), llvm::SelectionDAG::getCommutedVectorShuffle(), llvm::BuildVectorSDNode::getConstantRawBits(), llvm::HexagonTargetLowering::GetDynamicTLSAddr(), getGluedNode(), llvm::ShuffleVectorSDNode::getMask(), llvm::ShuffleVectorSDNode::getMaskElt(), getMemVTFromNode(), getOneTrueElt(), getSimpleValueType(), llvm::PPC::getSplatIdxForPPCMnemonics(), llvm::ShuffleVectorSDNode::getSplatIndex(), GetTLSADDR(), getValueSizeInBits(), INITIALIZE_PASS(), isAllConstantBuildVector(), isBitfieldExtractOpFromAnd(), isBitfieldExtractOpFromShr(), llvm::BuildVectorSDNode::isConstantSequence(), llvm::BuildVectorSDNode::isConstantSplat(), llvm::isConstOrConstSplat(), llvm::X86TargetLowering::isDesirableToCombineLogicOpOfSETCC(), isExtendedBUILD_VECTOR(), isHalvingTruncateAndConcatOfLegalIntScalableType(), isLegalBitRotate(), llvm::SelectionDAGISel::IsLegalToFold(), isSaturatingMinMax(), llvm::ShuffleVectorSDNode::isSplat(), lookThroughSignExtension(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), lowerDSPIntr(), lowerMSACopyIntr(), LowerToTLSExecModel(), LowerToTLSLocalDynamicModel(), lowerVECTOR_SHUFFLEAsRotate(), narrowExtractedVectorBinOp(), narrowExtractedVectorLoad(), narrowInsertExtractVectorBinOp(), narrowShuffle(), performAddUADDVCombine(), performANDORCSELCombine(), performCONDCombine(), llvm::PPCTargetLowering::PerformDAGCombine(), PerformExtractEltToVMOVRRD(), performINTRINSIC_WO_CHAINCombine(), performMADD_MSUBCombine(), PerformMinMaxFpToSatCombine(), performSetccAddFolding(), performSETCCCombine(), performSetCCPunpkCombine(), performSignExtendSetCCCombine(), performSubsToAndsCombine(), performSVEAndCombine(), PerformVECREDUCE_ADDCombine(), performVecReduceAddCombineWithUADDLP(), PerformVMOVRRDCombine(), PerformXORCombine(), print_types(), reduceBuildVecToShuffleWithZero(), llvm::SelectionDAG::ReplaceAllUsesWith(), llvm::SparcTargetLowering::ReplaceNodeResults(), resolveBuildVector(), scalarizeExtEltFP(), scalarizeExtractedBinop(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::SelectionDAGISel::SelectCodeCommon(), llvm::X86InstrInfo::shouldScheduleLoadsNear(), llvm::TargetLowering::SimplifySetCC(), SkipExtensionForVMULL(), tryBuildVectorShuffle(), llvm::RISCVDAGToDAGISel::tryIndexedLoad(), trySimplifySrlAddToRshrnb(), tryToConvertShuffleOfTbl2ToTbl4(), tryToFoldExtendOfConstant(), tryToFoldExtOfMaskedLoad(), tryToWidenSetCCOperands(), widenAbs(), and widenCtPop().

◆ getVTList()

SDVTList llvm::SDNode::getVTList ( ) const
inline

◆ hasAnyUseOfValue()

bool SDNode::hasAnyUseOfValue ( unsigned  Value) const

Return true if there are any use of the indicated value.

hasAnyUseOfValue - Return true if there are any use of the indicated value.

This method ignores uses of other values defined by this operation.

Definition at line 12210 of file SelectionDAG.cpp.

References assert(), getNumValues(), use_begin(), and use_end().

Referenced by AddCombineTo64bitMLAL(), combineAdd(), combineSub(), and performCONDCombine().

◆ hasNUsesOfValue()

bool SDNode::hasNUsesOfValue ( unsigned  NUses,
unsigned  Value 
) const

Return true if there are exactly NUSES uses of the indicated value.

hasNUsesOfValue - Return true if there are exactly NUSES uses of the indicated value.

This method ignores uses of other values defined by this operation.

Definition at line 12192 of file SelectionDAG.cpp.

References assert(), getNumValues(), use_begin(), and use_end().

Referenced by combineStore(), getCmp(), isFMAddSubOrFMSubAdd(), isFusableLoadOpStorePattern(), lowerBuildVectorAsBroadcast(), and llvm::PPCTargetLowering::PerformDAGCombine().

◆ hasOneUse()

bool llvm::SDNode::hasOneUse ( ) const
inline

◆ hasPoisonGeneratingFlags()

bool llvm::SDNode::hasPoisonGeneratingFlags ( ) const
inline

Definition at line 1031 of file SelectionDAGNodes.h.

References getFlags().

◆ hasPredecessor()

bool SDNode::hasPredecessor ( const SDNode N) const

Return true if N is a predecessor of this node.

N is either an operand of this node, or can be reached by recursively traversing up the operands. NOTE: This is an expensive method. Use it carefully.

Definition at line 12304 of file SelectionDAG.cpp.

References hasPredecessorHelper(), N, and llvm::SmallVectorTemplateBase< T, bool >::push_back().

◆ hasPredecessorHelper()

static bool llvm::SDNode::hasPredecessorHelper ( const SDNode N,
SmallPtrSetImpl< const SDNode * > &  Visited,
SmallVectorImpl< const SDNode * > &  Worklist,
unsigned int  MaxSteps = 0,
bool  TopologicalPrune = false 
)
inlinestatic

Returns true if N is a predecessor of any node in Worklist.

This helper keeps Visited and Worklist sets externally to allow unions searches to be performed in parallel, caching of results across queries and incremental addition to Worklist. Stops early if N is found but will resume. Remember to clear Visited and Worklists if DAG changes. MaxSteps gives a maximum number of nodes to visit before giving up. The TopologicalPrune flag signals that positive NodeIds are topologically ordered (Operands have strictly smaller node id) and search can be pruned leveraging this.

Definition at line 895 of file SelectionDAGNodes.h.

References llvm::SmallVectorImpl< T >::append(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::SmallVectorBase< Size_T >::empty(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::SmallPtrSetImpl< PtrType >::insert(), N, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallPtrSetImplBase::size(), and llvm::ISD::TokenFactor.

Referenced by findNonImmUse(), getPostIndexedLoadStoreOp(), HandleMergeInputChains(), hasPredecessor(), isFusableLoadOpStorePattern(), isValidBaseUpdate(), PerformMVEVLDCombine(), performNEONPostLDSTCombine(), performPostLD1Combine(), shouldCombineToPostInc(), and tryMemPairCombine().

◆ intersectFlagsWith()

void SDNode::intersectFlagsWith ( const SDNodeFlags  Flags)

Clear any flags in this node that aren't also set in Flags.

If Flags is not in a defined state then this has no effect.

Definition at line 12311 of file SelectionDAG.cpp.

References llvm::SDNodeFlags::intersectWith().

◆ isDivergent()

bool llvm::SDNode::isDivergent ( ) const
inline

◆ isMachineOpcode()

bool llvm::SDNode::isMachineOpcode ( ) const
inline

◆ isMemIntrinsic()

bool llvm::SDNode::isMemIntrinsic ( ) const
inline

Test if this node is a memory intrinsic (with valid pointer information).

INTRINSIC_W_CHAIN and INTRINSIC_VOID nodes are sometimes created for non-memory intrinsics (with chains) that are not really instances of MemSDNode. For such nodes, we need some extra state to determine the proper classof relationship.

Definition at line 712 of file SelectionDAGNodes.h.

References llvm::ISD::INTRINSIC_VOID, llvm::ISD::INTRINSIC_W_CHAIN, and SDNodeBits.

◆ isOnlyUserOf()

bool SDNode::isOnlyUserOf ( const SDNode N) const

Return true if this node is the only use of N.

isOnlyUserOf - Return true if this node is the only use of N.

Definition at line 12221 of file SelectionDAG.cpp.

References N.

Referenced by canonicalizeShuffleMaskWithHorizOp(), combineAnd(), combineVectorShiftImm(), findNonImmUse(), llvm::ARMTargetLowering::isVectorLoadExtDesirable(), lowerBuildVectorAsBroadcast(), and performConcatVectorsCombine().

◆ isOperandOf()

bool SDNode::isOperandOf ( const SDNode N) const

Return true if this node is an operand of N.

Definition at line 12251 of file SelectionDAG.cpp.

References llvm::any_of(), and N.

Referenced by combineCarryDiamond().

◆ isPredecessorOf()

bool llvm::SDNode::isPredecessorOf ( const SDNode N) const
inline

Return true if this node is a predecessor of N.

NOTE: Implemented on top of hasPredecessor and every bit as expensive. Use carefully.

Definition at line 876 of file SelectionDAGNodes.h.

References N.

Referenced by AddCombineTo64bitMLAL(), and llvm::AMDGPUDAGToDAGISel::matchLoadD16FromBuildVector().

◆ isStrictFPOpcode()

bool llvm::SDNode::isStrictFPOpcode ( )
inline

Test if this node is a strict floating point pseudo-op.

Definition at line 719 of file SelectionDAGNodes.h.

References llvm::ISD::STRICT_BF16_TO_FP, llvm::ISD::STRICT_FP16_TO_FP, llvm::ISD::STRICT_FP_TO_BF16, and llvm::ISD::STRICT_FP_TO_FP16.

Referenced by combineFP_ROUND(), and performExtractVectorEltCombine().

◆ isTargetMemoryOpcode()

bool llvm::SDNode::isTargetMemoryOpcode ( ) const
inline

Test if this node has a target-specific memory-referencing opcode (in the <target>ISD namespace and greater than FIRST_TARGET_MEMORY_OPCODE).

Definition at line 700 of file SelectionDAGNodes.h.

References llvm::ISD::FIRST_TARGET_MEMORY_OPCODE.

◆ isTargetOpcode()

bool llvm::SDNode::isTargetOpcode ( ) const
inline

Test if this node has a target-specific opcode (in the <target>ISD namespace).

Definition at line 686 of file SelectionDAGNodes.h.

References llvm::ISD::BUILTIN_OP_END.

◆ isTargetStrictFPOpcode()

bool llvm::SDNode::isTargetStrictFPOpcode ( ) const
inline

Test if this node has a target-specific opcode that may raise FP exceptions (in the <target>ISD namespace and greater than FIRST_TARGET_STRICTFP_OPCODE).

Note that all target memory opcode are currently automatically considered to possibly raise FP exceptions as well.

Definition at line 693 of file SelectionDAGNodes.h.

References llvm::ISD::FIRST_TARGET_STRICTFP_OPCODE.

◆ isUndef()

bool llvm::SDNode::isUndef ( ) const
inline

◆ isVPOpcode()

bool llvm::SDNode::isVPOpcode ( ) const
inline

Test if this node is a vector predication operation.

Definition at line 735 of file SelectionDAGNodes.h.

References getOpcode(), and llvm::ISD::isVPOpcode().

Referenced by llvm::VPMatchContext::match(), and llvm::VPMatchContext::VPMatchContext().

◆ op_begin()

op_iterator llvm::SDNode::op_begin ( ) const
inline

◆ op_end()

op_iterator llvm::SDNode::op_end ( ) const
inline

◆ op_values()

iterator_range< value_op_iterator > llvm::SDNode::op_values ( ) const
inline

◆ ops()

ArrayRef< SDUse > llvm::SDNode::ops ( ) const
inline

◆ print()

void SDNode::print ( raw_ostream OS,
const SelectionDAG G = nullptr 
) const

◆ print_details()

void SDNode::print_details ( raw_ostream OS,
const SelectionDAG G 
) const

◆ print_types()

void SDNode::print_types ( raw_ostream OS,
const SelectionDAG G 
) const

Definition at line 624 of file SelectionDAGDumper.cpp.

References llvm::EVT::getEVTString(), getNumValues(), getValueType(), and OS.

Referenced by printr().

◆ printr()

void SDNode::printr ( raw_ostream OS,
const SelectionDAG G = nullptr 
) const

Definition at line 1049 of file SelectionDAGDumper.cpp.

References G, getOperationName(), OS, print_details(), print_types(), and PrintNodeId().

Referenced by print().

◆ printrFull()

void SDNode::printrFull ( raw_ostream O,
const SelectionDAG G = nullptr 
) const

Print a SelectionDAG node and all children down to the leaves.

The given SelectionDAG allows target-specific nodes to be printed in human-readable form. Unlike printr, this will print the whole DAG, including children that appear multiple times.

Definition at line 1141 of file SelectionDAGDumper.cpp.

References G, OS, and printrWithDepth().

◆ printrWithDepth()

void SDNode::printrWithDepth ( raw_ostream O,
const SelectionDAG G = nullptr,
unsigned  depth = 100 
) const

Print a SelectionDAG node and children up to depth "depth." The given SelectionDAG allows target-specific nodes to be printed in human-readable form.

Unlike printr, this will print children that appear multiple times wherever they are used.

Definition at line 1136 of file SelectionDAGDumper.cpp.

References G, OS, and printrWithDepthHelper().

Referenced by dumprWithDepth(), llvm::MipsSETargetLowering::PerformDAGCombine(), and printrFull().

◆ Profile()

void SDNode::Profile ( FoldingSetNodeID ID) const

Gather unique data for the node.

Profile - Gather unique data for the node.

Definition at line 12156 of file SelectionDAG.cpp.

References AddNodeIDNode().

◆ setCFIType()

void llvm::SDNode::setCFIType ( uint32_t  Type)
inline

Definition at line 1038 of file SelectionDAGNodes.h.

Referenced by llvm::RISCVTargetLowering::LowerCall().

◆ setCombinerWorklistIndex()

void llvm::SDNode::setCombinerWorklistIndex ( int  Index)
inline

Set worklist index for DAGCombiner.

Definition at line 774 of file SelectionDAGNodes.h.

◆ setDebugLoc()

void llvm::SDNode::setDebugLoc ( DebugLoc  dl)
inline

Set source location info.

Try to avoid this, putting it in the constructor is preferable.

Definition at line 787 of file SelectionDAGNodes.h.

◆ setFlags()

void llvm::SDNode::setFlags ( SDNodeFlags  NewFlags)
inline

◆ setHasDebugValue()

void llvm::SDNode::setHasDebugValue ( bool  b)
inline

Definition at line 750 of file SelectionDAGNodes.h.

References SDNodeBits.

◆ setIROrder()

void llvm::SDNode::setIROrder ( unsigned  Order)
inline

Set the node ordering.

Definition at line 780 of file SelectionDAGNodes.h.

◆ setNodeId()

void llvm::SDNode::setNodeId ( int  Id)
inline

Set unique node id.

Definition at line 768 of file SelectionDAGNodes.h.

Referenced by llvm::SelectionDAG::mutateStrictFPToFP(), and llvm::SelectionDAGISel::SelectCodeCommon().

◆ use_begin()

use_iterator llvm::SDNode::use_begin ( ) const
inline

◆ use_empty()

bool llvm::SDNode::use_empty ( ) const
inline

◆ use_end()

static use_iterator llvm::SDNode::use_end ( )
inlinestatic

◆ use_size()

size_t llvm::SDNode::use_size ( ) const
inline

Return the number of uses of this node.

This method takes time proportional to the number of uses.

Definition at line 762 of file SelectionDAGNodes.h.

References use_begin(), and use_end().

Referenced by performANDCombine(), PerformExtractEltToVMOVRRD(), llvm::AArch64TargetLowering::shouldRemoveRedundantExtend(), and tryCombineMULLWithUZP1().

◆ uses() [1/2]

iterator_range< use_iterator > llvm::SDNode::uses ( )
inline

◆ uses() [2/2]

iterator_range< use_iterator > llvm::SDNode::uses ( ) const
inline

Definition at line 855 of file SelectionDAGNodes.h.

References llvm::make_range(), use_begin(), and use_end().

◆ value_begin()

value_iterator llvm::SDNode::value_begin ( ) const
inline

Definition at line 1066 of file SelectionDAGNodes.h.

Referenced by values().

◆ value_end()

value_iterator llvm::SDNode::value_end ( ) const
inline

Definition at line 1067 of file SelectionDAGNodes.h.

Referenced by values().

◆ values()

iterator_range< value_iterator > llvm::SDNode::values ( ) const
inline

Definition at line 1068 of file SelectionDAGNodes.h.

References llvm::make_range(), value_begin(), and value_end().

Friends And Related Function Documentation

◆ HandleSDNode

friend class HandleSDNode
friend

Definition at line 634 of file SelectionDAGNodes.h.

◆ SelectionDAG

friend class SelectionDAG
friend

Definition at line 632 of file SelectionDAGNodes.h.

Member Data Documentation

◆ 

union { ... } llvm::SDNode::@235

◆ ConstantSDNodeBits

ConstantSDNodeBitfields llvm::SDNode::ConstantSDNodeBits

Definition at line 603 of file SelectionDAGNodes.h.

Referenced by llvm::ConstantSDNode::isOpaque().

◆ LoadSDNodeBits

LoadSDNodeBitfields llvm::SDNode::LoadSDNodeBits

◆ LSBaseSDNodeBits

LSBaseSDNodeBitfields llvm::SDNode::LSBaseSDNodeBits

◆ MemSDNodeBits

MemSDNodeBitfields llvm::SDNode::MemSDNodeBits

◆ PersistentId

uint16_t llvm::SDNode::PersistentId = 0xffff

Unique and persistent id per SDNode in the DAG.

Used for debug printing. We do not place that under #if LLVM_ENABLE_ABI_BREAKING_CHECKS intentionally because it adds unneeded complexity without noticeable benefits (see discussion with @thakis in D120714). Currently, there are two padding bytes after this field.

Definition at line 629 of file SelectionDAGNodes.h.

Referenced by llvm::HandleSDNode::HandleSDNode().

◆ RawSDNodeBits

char llvm::SDNode::RawSDNodeBits[sizeof(uint16_t)]

Definition at line 601 of file SelectionDAGNodes.h.

Referenced by llvm::MemSDNode::getRawSubclassData(), and SDNode().

◆ SDNodeBits

SDNodeBitfields llvm::SDNode::SDNodeBits

◆ StoreSDNodeBits

StoreSDNodeBitfields llvm::SDNode::StoreSDNodeBits

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