LLVM API Documentation
#include <SelectionDAGNodes.h>
Public Member Functions | |
const ConstantInt * | getConstantIntValue () const |
const APInt & | getAPIntValue () const |
uint64_t | getZExtValue () const |
int64_t | getSExtValue () const |
bool | isOne () const |
bool | isNullValue () const |
bool | isAllOnesValue () const |
bool | isOpaque () const |
Static Public Member Functions | |
static bool | classof (const SDNode *N) |
Friends | |
class | SelectionDAG |
Definition at line 1362 of file SelectionDAGNodes.h.
static bool llvm::ConstantSDNode::classof | ( | const SDNode * | N | ) | [inline, static] |
Definition at line 1383 of file SelectionDAGNodes.h.
References llvm::ISD::Constant, llvm::SDNode::getOpcode(), and llvm::ISD::TargetConstant.
const APInt& llvm::ConstantSDNode::getAPIntValue | ( | ) | const [inline] |
Definition at line 1373 of file SelectionDAGNodes.h.
Referenced by llvm::TargetLowering::BuildExactSDIV(), ChangeVSETULTtoVSETULE(), llvm::SelectionDAGISel::CheckAndMask(), llvm::SelectionDAGISel::CheckOrMask(), llvm::SelectionDAG::getNode(), getTargetVShiftByConstNode(), llvm::TargetLowering::isConstFalseVal(), llvm::TargetLowering::isConstTrueVal(), isXor1OfSetCC(), llvm::TargetLowering::LowerAsmOperandForConstraint(), LowerShift(), matchRotateSub(), performANDCombine(), PerformINTRINSIC_WO_CHAINCombine(), PerformISDSETCCCombine(), performMulCombine(), PerformORCombine(), PerformSHLCombine(), PerformSubCombine(), llvm::TargetLowering::TargetLoweringOpt::ShrinkDemandedConstant(), SkipExtensionForVMULL(), TryMULWIDECombine(), and tryToFoldExtendOfConstant().
const ConstantInt* llvm::ConstantSDNode::getConstantIntValue | ( | ) | const [inline] |
Definition at line 1372 of file SelectionDAGNodes.h.
Referenced by AddNodeIDCustom().
int64_t llvm::ConstantSDNode::getSExtValue | ( | ) | const [inline] |
Definition at line 1375 of file SelectionDAGNodes.h.
Referenced by canFoldInAddressingMode(), checkHighLaneIndex(), CheckInteger(), createCMovFP(), getAtomicLoadArithTargetConstant(), getGatherNode(), getPrefetchNode(), getScatterNode(), Is_PostInc_S4_Offset(), isExtendedBUILD_VECTOR(), llvm::TargetLowering::isGAPlusOffset(), IsS11_0_Offset(), IsS11_1_Offset(), IsS11_2_Offset(), IsS11_3_Offset(), IsU6_0_Offset(), IsU6_1_Offset(), IsU6_2_Offset(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), PerformMULCombine(), performORCombine(), PerformOrCombine(), and performSELECTCombine().
uint64_t llvm::ConstantSDNode::getZExtValue | ( | ) | const [inline] |
Definition at line 1374 of file SelectionDAGNodes.h.
Referenced by AddCombineToVPADDL(), adjustForTestUnderMask(), checkBoolTestSetCCCombine(), llvm::AMDGPUTargetLowering::computeKnownBitsForTargetNode(), llvm::AArch64TargetLowering::computeKnownBitsForTargetNode(), llvm::ARMTargetLowering::computeKnownBitsForTargetNode(), llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), FindBaseOffset(), FoldOperand(), getExtendTypeForNode(), getGatherNode(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), llvm::SelectionDAG::getNode(), getPrefetchNode(), getScatterNode(), isAllConstantBuildVector(), isBLACompatibleAddress(), isBSwapHWordElement(), isLegalMUBUFImmOffset(), isScaledConstantInRange(), isSimpleShift(), llvm::PPCTargetLowering::LowerAsmOperandForConstraint(), llvm::TargetLowering::LowerAsmOperandForConstraint(), LowerATOMIC_FENCE(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerVectorIntExtend(), performANDCombine(), PerformANDCombine(), PerformAndCombine(), PerformBFICombine(), llvm::AMDGPUTargetLowering::PerformDAGCombine(), PerformMulCombine(), performORCombine(), PerformORCombine(), performSELECTCombine(), performSRACombine(), PerformZExtCombine(), llvm::TargetLowering::SimplifyDemandedBits(), tryCombineCRC32(), tryCombineToBSL(), and tryLowerToSLI().
bool llvm::ConstantSDNode::isAllOnesValue | ( | ) | const [inline] |
Definition at line 1379 of file SelectionDAGNodes.h.
Referenced by isAllOnes(), llvm::TargetLowering::isConstTrueVal(), isZeroOrAllOnes(), LowerXOR(), and PerformINTRINSIC_WO_CHAINCombine().
bool llvm::ConstantSDNode::isNullValue | ( | ) | const [inline] |
Definition at line 1378 of file SelectionDAGNodes.h.
Referenced by llvm::AMDGPUTargetLowering::ComputeNumSignBitsForTargetNode(), ConvertSelectToConcatVector(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), llvm::TargetLowering::isConstFalseVal(), isZero(), isZeroOrAllOnes(), LowerXOR(), and PerformINTRINSIC_WO_CHAINCombine().
bool llvm::ConstantSDNode::isOne | ( | ) | const [inline] |
Definition at line 1377 of file SelectionDAGNodes.h.
Referenced by llvm::TargetLowering::isConstTrueVal(), isSetCC(), and LowerXALUO().
bool llvm::ConstantSDNode::isOpaque | ( | ) | const [inline] |
Definition at line 1381 of file SelectionDAGNodes.h.
References llvm::SDNode::SubclassData.
Referenced by AddNodeIDCustom(), ChangeVSETULTtoVSETULE(), and llvm::SelectionDAG::FoldConstantArithmetic().
friend class SelectionDAG [friend] |
Reimplemented from llvm::SDNode.
Definition at line 1364 of file SelectionDAGNodes.h.