|
LLVM 22.0.0git
|
#include "llvm/CodeGen/SelectionDAGNodes.h"
Public Member Functions | |
| const ConstantInt * | getConstantIntValue () const |
| const APInt & | getAPIntValue () const |
| uint64_t | getZExtValue () const |
| int64_t | getSExtValue () const |
| uint64_t | getLimitedValue (uint64_t Limit=UINT64_MAX) |
| MaybeAlign | getMaybeAlignValue () const |
| Align | getAlignValue () const |
| bool | isOne () const |
| bool | isZero () const |
| bool | isAllOnes () const |
| bool | isMaxSignedValue () const |
| bool | isMinSignedValue () const |
| bool | isOpaque () const |
| Public Member Functions inherited from llvm::SDNode | |
| 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 | isUndef () const |
| Returns true if the node type is UNDEF or POISON. | |
| bool | isAnyAdd () const |
| Returns true if the node type is ADD or PTRADD. | |
| 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 | isAssert () const |
| Test if this node is an assert operation. | |
| 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 DebugLoc & | getDebugLoc () 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_iterator > | uses () |
| iterator_range< use_iterator > | uses () const |
| user_iterator | user_begin () const |
| Provide iteration support to walk over all users of an SDNode. | |
| iterator_range< user_iterator > | users () |
| iterator_range< user_iterator > | users () const |
| bool | hasNUsesOfValue (unsigned NUses, unsigned Value) const |
| Return true if there are exactly NUSES uses of the indicated value. | |
| LLVM_ABI bool | hasAnyUseOfValue (unsigned Value) const |
| Return true if there are any use of the indicated value. | |
| LLVM_ABI bool | isOnlyUserOf (const SDNode *N) const |
| Return true if this node is the only use of N. | |
| LLVM_ABI 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. | |
| LLVM_ABI 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 APInt & | getConstantOperandAPInt (unsigned Num) const |
| Helper method returns the APInt of a ConstantSDNode operand. | |
| const APInt & | getAsAPIntVal () const |
| Helper method returns the APInt value of a ConstantSDNode. | |
| std::optional< APInt > | bitcastToAPInt () const |
| const SDValue & | getOperand (unsigned Num) const |
| op_iterator | op_begin () const |
| op_iterator | op_end () const |
| ArrayRef< SDUse > | ops () const |
| iterator_range< value_op_iterator > | op_values () const |
| SDVTList | getVTList () const |
| SDNode * | getGluedNode () const |
| If this node has a glue operand, return the node to which the glue operand points. | |
| SDNode * | getGluedUser () 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 | dropFlags (unsigned Mask) |
| LLVM_ABI 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_iterator > | values () const |
| LLVM_ABI std::string | getOperationName (const SelectionDAG *G=nullptr) const |
| Return the opcode of this operation for printing. | |
| LLVM_ABI void | print_types (raw_ostream &OS, const SelectionDAG *G) const |
| LLVM_ABI void | print_details (raw_ostream &OS, const SelectionDAG *G) const |
| LLVM_ABI void | print (raw_ostream &OS, const SelectionDAG *G=nullptr) const |
| LLVM_ABI void | printr (raw_ostream &OS, const SelectionDAG *G=nullptr) const |
| LLVM_ABI void | printrFull (raw_ostream &O, const SelectionDAG *G=nullptr) const |
| Print a SelectionDAG node and all children down to the leaves. | |
| LLVM_ABI 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. | |
| LLVM_ABI void | dump () const |
| Dump this node, for debugging. | |
| LLVM_ABI void | dumpr () const |
| Dump (recursively) this node and its use-def subgraph. | |
| LLVM_ABI void | dump (const SelectionDAG *G) const |
| Dump this node, for debugging. | |
| LLVM_ABI void | dumpr (const SelectionDAG *G) const |
| Dump (recursively) this node and its use-def subgraph. | |
| LLVM_ABI void | dumprFull (const SelectionDAG *G=nullptr) const |
| printrFull to dbgs(). | |
| LLVM_ABI void | dumprWithDepth (const SelectionDAG *G=nullptr, unsigned depth=100) const |
| printrWithDepth to dbgs(). | |
| LLVM_ABI 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< ilist_detail::compute_node_options< SDNode, Options... >::type > | |
| self_iterator | getIterator () |
| reverse_self_iterator | getReverseIterator () |
| std::enable_if_t< T::is_sentinel_tracking_explicit, bool > | isSentinel () const |
| Check whether this is the sentinel node. | |
| Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< SDNode, Options... >::type >, ilist_detail::compute_node_options< SDNode, Options... >::type::parent_ty > | |
| const ilist_detail::compute_node_options< SDNode, Options... >::type::parent_ty * | getParent () const |
| void | setParent (ilist_detail::compute_node_options< SDNode, Options... >::type::parent_ty *Parent) |
Static Public Member Functions | |
| static bool | classof (const SDNode *N) |
| Static Public Member Functions inherited from llvm::SDNode | |
| static use_iterator | use_end () |
| static user_iterator | user_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 LLVM_ABI 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 LLVM_ABI const char * | getIndexedModeName (ISD::MemIndexedMode AM) |
Friends | |
| class | SelectionDAG |
Definition at line 1751 of file SelectionDAGNodes.h.
Definition at line 1784 of file SelectionDAGNodes.h.
References llvm::ISD::Constant, N, llvm::SDNode::SDNode(), and llvm::ISD::TargetConstant.
|
inline |
Definition at line 1774 of file SelectionDAGNodes.h.
Definition at line 1767 of file SelectionDAGNodes.h.
Referenced by combineAnd(), combineShiftLeft(), combineShiftOfShiftedLogic(), combineTruncSelectToSMaxUSat(), llvm::SelectionDAG::computeKnownBits(), computeKnownBitsForPRMT(), llvm::ARMTargetLowering::computeKnownBitsForTargetNode(), llvm::SelectionDAG::ComputeNumSignBits(), Expand64BitShift(), extractShiftForRotate(), foldAddSubOfSignBit(), foldCSELOfCSEL(), foldRemainderIdiom(), llvm::getBitwiseNotOperand(), llvm::TargetLowering::isConstFalseVal(), llvm::AArch64TargetLowering::isMulAddWithConstProfitable(), llvm::ARMTargetLowering::isMulAddWithConstProfitable(), llvm::RISCVTargetLowering::isMulAddWithConstProfitable(), isSaturatingMinMax(), LowerVSETCC(), matchBSwapHWordOrAndAnd(), matchRotateSub(), performAddCSelIntoCSinc(), llvm::ARMTargetLowering::PerformCMOVToBFICombine(), PerformORCombineToBFI(), performSubsToAndsCombine(), PerformUMinFpToSatCombine(), llvm::TargetLowering::SimplifyDemandedBits(), tryLowerToBSL(), tryLowerToSLI(), and TryMULWIDECombine().
|
inline |
Definition at line 1766 of file SelectionDAGNodes.h.
|
inline |
Definition at line 1770 of file SelectionDAGNodes.h.
References UINT64_MAX.
|
inline |
Definition at line 1773 of file SelectionDAGNodes.h.
|
inline |
Definition at line 1769 of file SelectionDAGNodes.h.
Referenced by combineADDToMAT_PCREL_ADDR(), createCMovFP(), expandMul(), isExtendedBUILD_VECTOR(), llvm::AArch64TargetLowering::isMulAddWithConstProfitable(), llvm::ARMTargetLowering::isMulAddWithConstProfitable(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(), mayUseP9Setb(), performANDCombine(), performORCombine(), performORCombine(), performSELECTCombine(), performSETCCCombine(), PerformVQDMULHCombine(), llvm::LoongArchDAGToDAGISel::SelectInlineAsmMemoryOperand(), llvm::RISCVDAGToDAGISel::tryShrinkShlLogicImm(), and trySQDMULHCombine().
|
inline |
Definition at line 1768 of file SelectionDAGNodes.h.
Referenced by AddCombineBUILD_VECTORToVPADDL(), AddCombineTo64bitMLAL(), llvm::SIInstrInfo::areLoadsFromSameBasePtr(), checkBoolTestSetCCCombine(), CombineANDShift(), combineBVOfVecSExt(), combineShiftToMULH(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), llvm::ARMTargetLowering::computeKnownBitsForTargetNode(), llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::RISCVSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), expandMul(), getAArch64Cmp(), getExtendTypeForNode(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), llvm::SelectionDAG::getNode(), getPermuteMask(), getPointerConstIncrement(), getSToVPermuted(), isAllConstantBuildVector(), isBSwapHWordElement(), isExtendOrShiftOperand(), isValidImmForSVEVecImmAddrMode(), LowerAndToBT(), matchBF16FPExtendLike(), performANDCombine(), performANDCombine(), PerformBFICombine(), performCMovFPCombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), PerformMVEVLDCombine(), performORCombine(), performORCombine(), PerformORCombineToBFI(), performSELECTCombine(), PerformShiftCombine(), performSHLCombine(), llvm::AMDGPUTargetLowering::performShlCombine(), performSRACombine(), performSRACombine(), llvm::AMDGPUTargetLowering::performSraCombine(), performSRLCombine(), llvm::AMDGPUTargetLowering::performSrlCombine(), reduceANDOfAtomicLoad(), replaceSplatVectorStore(), SDValueToConstBool(), llvm::AMDGPUDAGToDAGISel::Select(), llvm::LoongArchDAGToDAGISel::SelectInlineAsmMemoryOperand(), shouldGenerateInlineTPLoop(), simplifySetCCIntoEq(), tryCombineCRC32(), and llvm::RISCVDAGToDAGISel::tryShrinkShlLogicImm().
|
inline |
Definition at line 1778 of file SelectionDAGNodes.h.
Referenced by emitFloatCompareMask(), foldSetCCWithRotate(), llvm::SelectionDAG::getNode(), and performAddCSelIntoCSinc().
|
inline |
Definition at line 1779 of file SelectionDAGNodes.h.
|
inline |
Definition at line 1780 of file SelectionDAGNodes.h.
|
inline |
Definition at line 1776 of file SelectionDAGNodes.h.
Referenced by combineShiftToAVG(), getAArch64Cmp(), isSetCC(), performAddCSelIntoCSinc(), llvm::RISCVTargetLowering::shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd(), and llvm::TargetLoweringBase::shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd().
|
inline |
Definition at line 1782 of file SelectionDAGNodes.h.
References llvm::SDNode::ConstantSDNodeBits.
Referenced by foldBinOpIntoSelectIfProfitable(), foldBinOpIntoSelectIfProfitable(), SelectionDAG, and llvm::TargetLowering::SimplifyDemandedBits().
|
inline |
Definition at line 1777 of file SelectionDAGNodes.h.
Referenced by combineTruncSelectToSMaxUSat(), ConvertSelectToConcatVector(), emitFloatCompareMask(), foldSetCCWithFunnelShift(), foldSetCCWithRotate(), getAArch64Cmp(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::isConstFalseVal(), isExtendedBUILD_VECTOR(), isSetCC(), llvm::TargetLowering::SimplifyDemandedBits(), and simplifyDivRem().
|
friend |
Definition at line 1752 of file SelectionDAGNodes.h.
References llvm::SDNode::ConstantSDNodeBits, llvm::isa(), isOpaque(), llvm::SDNode::SDNode(), and SelectionDAG.
Referenced by SelectionDAG.