| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | AArch64SelectionDAGTest.cpp | 93 auto InVec = DAG->getConstant(0, Loc, InVecVT); in TEST_F() 106 auto InVec = DAG->getConstant(0, Loc, InVecVT); in TEST_F() 122 auto Vec = DAG->getConstant(0, Loc, VecVT); in TEST_F() 123 auto ZeroIdx = DAG->getConstant(0, Loc, IdxVT); in TEST_F() 159 auto Vec = DAG->getConstant(1, Loc, VecVT); in TEST_F() 173 auto Vec = DAG->getConstant(1, Loc, VecVT); in TEST_F() 241 auto N1 = DAG->getConstant(0x55, Loc, IntVT); in TEST_F() 257 auto N0 = DAG->getConstant(0x55, Loc, IntVT); in TEST_F() 279 SDValue Op = DAG->getConstant(1, Loc, VecVT); in TEST_F() 323 SDValue Op = DAG->getConstant(1, Loc, VecVT); in TEST_F() [all …]
|
| H A D | SelectionDAGAddressAnalysisTest.cpp | 109 SDValue Value = DAG->getConstant(0, Loc, VecVT); in TEST_F() 132 SDValue Value = DAG->getConstant(0, Loc, VecVT); in TEST_F() 159 SDValue Value = DAG->getConstant(0, Loc, SubVecVT); in TEST_F() 191 SDValue Value = DAG->getConstant(0, Loc, SubVecVT); in TEST_F() 218 SDValue Value = DAG->getConstant(0, Loc, VecVT); in TEST_F() 227 SDValue GValue = DAG->getConstant(0, Loc, GTy); in TEST_F() 247 SDValue GValue = DAG->getConstant(0, Loc, GTy); in TEST_F() 254 SDValue AliasedGValue = DAG->getConstant(1, Loc, GTy); in TEST_F() 284 SDValue Value1 = DAG->getConstant(0, Loc, SubVecVT); in TEST_F() 325 SDValue Value1 = DAG->getConstant(0, Loc, SubVecVT); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 258 Constant *getConstant() const { in getConstant() function 279 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger() 280 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger() 309 assert(getConstant() == V && "Marking constant with different value"); 402 return markConstant(RHS.getConstant(), true); 416 if (RHS.isConstant() && getConstant() == RHS.getConstant()) 460 return ConstantExpr::getCompare(Pred, getConstant(), Other.getConstant()); in getCompare() 465 getNotConstant() == Other.getConstant()) || in getCompare() 467 getConstant() == Other.getNotConstant())) in getCompare()
|
| /llvm-project-15.0.7/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelLowering.cpp | 245 SDValue Zero = DAG.getConstant(0, DL, VT); in lowerShiftLeftParts() 246 SDValue One = DAG.getConstant(1, DL, VT); in lowerShiftLeftParts() 296 SDValue Zero = DAG.getConstant(0, DL, VT); in lowerShiftRightParts() 297 SDValue One = DAG.getConstant(1, DL, VT); in lowerShiftRightParts() 461 DAG.getConstant(msb, DL, GRLenVT), in performANDCombine() 462 DAG.getConstant(lsb, DL, GRLenVT)); in performANDCombine() 501 DAG.getConstant(Shamt, DL, GRLenVT)); in performSRLCombine() 586 DAG.getConstant(ValBits == 32 in performORCombine() 609 DAG.getConstant(Shamt, DL, GRLenVT)); in performORCombine() 628 DAG.getConstant(MaskIdx0, DL, GRLenVT)); in performORCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 46 SDValue LenAdj = DAG.getConstant(Size - Adj, DL, Dst.getValueType()); in emitMemMemImm() 56 DAG.getConstant(0 - Adj, DL, MVT::i64)); in emitMemMemReg() 84 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore() 118 DAG.getConstant(Size1, DL, PtrVT)); in EmitTargetCodeForMemset() 133 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset() 168 DAG.getConstant(30, DL, MVT::i32)); in addIPMSequence() 197 DAG.getConstant(255, DL, MVT::i32)); in EmitTargetCodeForMemchr() 207 End, DAG.getConstant(0, DL, PtrVT), in EmitTargetCodeForMemchr() 220 DAG.getConstant(0, DL, MVT::i32)); in EmitTargetCodeForStrcpy() 231 DAG.getConstant(0, DL, MVT::i32)); in EmitTargetCodeForStrcmp() [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCValue.cpp | 20 OS << getConstant(); in print() 36 if (getConstant()) in print() 37 OS << " + " << getConstant(); in print()
|
| H A D | MCExpr.cpp | 582 Res = Value.getConstant(); in evaluateAsAbsolute() 706 int64_t LHS_Cst = LHS.getConstant(); in EvaluateSymbolicAdd() 812 Res.getSymB() || Res.getConstant()) in evaluateAsRelocatableImpl() 817 Res.getSymB(), Res.getConstant(), Res.getRefKind()); in evaluateAsRelocatableImpl() 834 if (Res.getConstant() == 0 && (!A || !B)) in evaluateAsRelocatableImpl() 855 Res = MCValue::get(!Value.getConstant()); in evaluateAsRelocatableImpl() 864 -(uint64_t)Value.getConstant()); in evaluateAsRelocatableImpl() 869 Res = MCValue::get(~Value.getConstant()); in evaluateAsRelocatableImpl() 914 -(uint64_t)RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl() 919 RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 409 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands() 4371 return DAG.getConstant(0, dl, VT); in SimplifySetCC() 4375 return DAG.getConstant(1, dl, VT); in SimplifySetCC() 6076 SDValue One = DAG.getConstant(1, dl, VT); in BuildUDIV() 6600 SDValue IntMin = DAG.getConstant( in prepareSREMEqFold() 6602 SDValue IntMax = DAG.getConstant( in prepareSREMEqFold() 8179 Tmp = DAG.getConstant(0, dl, VT); in expandBITREVERSE() 8619 SDValue ShiftAmount = DAG.getConstant( in expandUnalignedStore() 9379 HiLHS = DAG.getConstant(0, dl, VT); in expandMULO() 9380 HiRHS = DAG.getConstant(0, dl, VT); in expandMULO() [all …]
|
| H A D | LegalizeIntegerTypes.cpp | 2618 Lo = DAG.getConstant(0, DL, NVT); in ExpandShiftByConstant() 2622 Lo = DAG.getConstant(0, DL, NVT); in ExpandShiftByConstant() 2641 Hi = DAG.getConstant(0, DL, NVT); in ExpandShiftByConstant() 2644 Hi = DAG.getConstant(0, DL, NVT); in ExpandShiftByConstant() 3231 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_AssertZext() 3259 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_PARITY() 3333 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_CTLZ() 3344 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_CTPOP() 3364 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_CTTZ() 3560 Hi = DAG.getConstant(0, dl, NVT); in ExpandIntRes_LOAD() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | R600ISelLowering.cpp | 470 DAG.getConstant(0, DL, MVT::i32), in LowerOperation() 471 DAG.getConstant(1, DL, MVT::i32), in LowerOperation() 472 DAG.getConstant(2, DL, MVT::i32), in LowerOperation() 473 DAG.getConstant(3, DL, MVT::i32), in LowerOperation() 477 DAG.getConstant(0, DL, MVT::i32), in LowerOperation() 478 DAG.getConstant(1, DL, MVT::i32), in LowerOperation() 479 DAG.getConstant(2, DL, MVT::i32), in LowerOperation() 480 DAG.getConstant(3, DL, MVT::i32), in LowerOperation() 507 DAG.getConstant(3, DL, MVT::i32)) in LowerOperation() 1161 DAG.getConstant(0, DL, MVT::i32), in LowerSTORE() [all …]
|
| H A D | AMDGPUISelLowering.cpp | 1598 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24() 1693 SDValue One = DAG.getConstant(1, DL, HalfVT); in LowerUDIVREM64() 1694 SDValue Zero = DAG.getConstant(0, DL, HalfVT); in LowerUDIVREM64() 1752 SDValue Zero64 = DAG.getConstant(0, DL, VT); in LowerUDIVREM64() 1753 SDValue One64 = DAG.getConstant(1, DL, VT); in LowerUDIVREM64() 1937 SDValue One = DAG.getConstant(1, DL, VT); in LowerUDIVREM() 1962 SDValue Zero = DAG.getConstant(0, DL, VT); in LowerSDIVREM() 1963 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() 2350 DAG.getConstant(31, SL, MVT::i32)); in LowerINT_TO_FP32() 2606 SDValue One = DAG.getConstant(1, DL, MVT::i32); in LowerFP_TO_FP16() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 544 SDValue Zero = DAG.getConstant(0, dl, MVT::i32); in LowerSMUL_LOHI() 561 SDValue Zero = DAG.getConstant(0, dl, MVT::i32); in LowerUMUL_LOHI() 719 SDValue Zero = DAG.getConstant(0, dl, MVT::i32); in ExpandADDSUB() 887 DAG.getConstant(4, dl, MVT::i32)); in LowerINIT_TRAMPOLINE() 893 DAG.getConstant(8, dl, MVT::i32)); in LowerINIT_TRAMPOLINE() 899 DAG.getConstant(12, dl, MVT::i32)); in LowerINIT_TRAMPOLINE() 904 DAG.getConstant(16, dl, MVT::i32)); in LowerINIT_TRAMPOLINE() 1462 RetOps.push_back(DAG.getConstant(0, dl, MVT::i32)); in LowerReturn() 1645 SDValue Carry = DAG.getConstant(0, dl, VT); in PerformDAGCombine() 1659 SDValue Carry = DAG.getConstant(0, dl, VT); in PerformDAGCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 172 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in shl() 173 unsigned Shift = RHS.getConstant().getZExtValue(); in shl() 225 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in lshr() 226 unsigned Shift = RHS.getConstant().getZExtValue(); in lshr() 278 if (RHS.isConstant() && RHS.getConstant().ult(BitWidth)) { in ashr() 279 unsigned Shift = RHS.getConstant().getZExtValue(); in ashr() 335 return Optional<bool>(LHS.getConstant() == RHS.getConstant()); in eq() 554 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem() 556 APInt LowBits = RHS.getConstant() - 1; in urem() 575 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VECustomDAG.cpp | 311 return CDAG.getConstant(ElemStride, MVT::i64); in getLoadStoreStride() 404 SDValue VECustomDAG::getConstant(uint64_t Val, EVT VT, bool IsTarget, in getConstant() function in llvm::VECustomDAG 406 return DAG.getConstant(Val, DL, VT, IsTarget, IsOpaque); in getConstant() 413 auto TrueVal = DAG.getConstant(-1, DL, MVT::i32); in getConstantMask() 414 auto AVL = getConstant(MaskVT.getVectorNumElements(), MVT::i32); in getConstantMask() 442 getBroadcast(CmpVecTy, {DAG.getConstant(0, DL, ScalarBoolVT)}, AVL); in getMaskBroadcast() 502 SDValue OneV = getConstant(1, MVT::i32); in getTargetSplitMask() 532 return getConstant(2 * ConstBytes->getSExtValue(), MVT::i64); in getSplitPtrStride() 533 return getNode(ISD::SHL, MVT::i64, {PackStride, getConstant(1, MVT::i32)}); in getSplitPtrStride()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86SelectionDAGInfo.cpp | 113 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset() 144 DAG.getConstant(Offset, dl, AddrVT)), in EmitTargetCodeForMemset() 145 Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, in EmitTargetCodeForMemset() 253 DAG.getNode(ISD::ADD, dl, DstVT, Dst, DAG.getConstant(Offset, dl, DstVT)), in emitConstantSizeRepmov() 254 DAG.getNode(ISD::ADD, dl, SrcVT, Src, DAG.getConstant(Offset, dl, SrcVT)), in emitConstantSizeRepmov() 255 DAG.getConstant(BytesLeft, dl, SizeVT), llvm::Align(Align), isVolatile, in emitConstantSizeRepmov()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/constant/ |
| H A D | local-aggregate-constant.ll | 5 define %aggregate @getConstant() { 9 ; CHECK: OpName [[GET:%.+]] "getConstant"
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCExpr.cpp | 71 Res = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant() 112 int64_t Result = evaluateAsInt64(Value.getConstant()); in evaluateAsRelocatableImpl() 167 Res = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | pr47454.ll | 4 declare fastcc half @getConstant() 20 ; CHECK-NEXT: bl getConstant 45 %arg2 = call fastcc half @getConstant()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFSelectionDAGInfo.cpp | 38 DAG.getConstant(CopyLen, dl, MVT::i64), in EmitTargetCodeForMemcpy() 39 DAG.getConstant(Alignment.value(), dl, MVT::i64)); in EmitTargetCodeForMemcpy()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 3940 SDValue Zero = DAG.getConstant(0, DL, XLenVT); in lowerSELECT() 4054 SDValue Zero = DAG.getConstant(0, DL, VT); in lowerShiftLeftParts() 4055 SDValue One = DAG.getConstant(1, DL, VT); in lowerShiftLeftParts() 4104 SDValue Zero = DAG.getConstant(0, DL, VT); in lowerShiftRightParts() 4105 SDValue One = DAG.getConstant(1, DL, VT); in lowerShiftRightParts() 6233 SDValue SplatValue = DAG.getConstant( in lowerVPExtMaskOp() 6363 SDValue One = DAG.getConstant( in lowerVPFPIntConvOp() 9301 DAG.getConstant(1, DL, MaskVT), in PerformDAGCombine() 9352 return DAG.getConstant(-1, DL, VT); in PerformDAGCombine() 9353 return DAG.getConstant(0, DL, VT); in PerformDAGCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 6881 SDValue ARMcc = DAG.getConstant( in LowerSETCCCARRY() 9602 N1 = DAG.getConstant(0x89, dl, MVT::v4i32); in LowerSDIV_v4i16() 9715 N1 = DAG.getConstant(2, dl, MVT::v4i32); in LowerUDIV() 10314 SDValue True = DAG.getConstant(1, dl, VT); in LowerFSETCC() 12315 OtherOp = DAG.getConstant(0, dl, VT); in isConditionalZeroOrAllOnes() 12318 OtherOp = DAG.getConstant(1, dl, VT); in isConditionalZeroOrAllOnes() 12467 Ops.push_back(DAG.getConstant(Opcode, dl, in AddCombineVUZPToVPADDL() 15494 DAG.getConstant(1, DL, MVT::i32)); in PerformShuffleVMOVNCombine() 15500 DAG.getConstant(1, DL, MVT::i32)); in PerformShuffleVMOVNCombine() 16730 DAG.getConstant(C, dl, MVT::i32)); in PerformVCVTCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/ |
| H A D | AVRISelLowering.cpp | 354 DAG.getConstant(7, dl, VT)); in LowerShifts() 359 DAG.getConstant(7, dl, VT)); in LowerShifts() 364 DAG.getConstant(6, dl, VT)); in LowerShifts() 369 DAG.getConstant(7, dl, VT)); in LowerShifts() 388 DAG.getConstant(7, dl, VT)); in LowerShifts() 398 DAG.getConstant(4, dl, VT)); in LowerShifts() 403 DAG.getConstant(4, dl, VT)); in LowerShifts() 629 LHS = DAG.getConstant(0, DL, VT); in getAVRCmp() 655 LHS = DAG.getConstant(0, DL, VT); in getAVRCmp() 974 Offset = DAG.getConstant(RHSC, DL, MVT::i8); in getPreIndexedAddressParts() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRMCExpr.cpp | 64 Result = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant() 81 Result = MCValue::get(evaluateAsInt64(Value.getConstant())); in evaluateAsRelocatableImpl() 96 Result = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 2163 CC = DAG.getConstant(MxCond, DL, MVT::i8); in LowerSELECT() 2184 CC = DAG.getConstant(M68k::COND_NE, DL, MVT::i8); in LowerSELECT() 2366 CC = DAG.getConstant(MxCond, DL, MVT::i8); in LowerBRCOND() 2395 CC = DAG.getConstant(CCode, DL, MVT::i8); in LowerBRCOND() 2426 CC = DAG.getConstant(CCode, DL, MVT::i8); in LowerBRCOND() 2449 CC = DAG.getConstant(MxCond, DL, MVT::i8); in LowerBRCOND() 3266 SDValue Zero = DAG.getConstant(0, DL, VT); in LowerShiftLeftParts() 3267 SDValue One = DAG.getConstant(1, DL, VT); in LowerShiftLeftParts() 3318 SDValue Zero = DAG.getConstant(0, DL, VT); in LowerShiftRightParts() 3319 SDValue One = DAG.getConstant(1, DL, VT); in LowerShiftRightParts() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 131 return dyn_cast_or_null<ConstantInt>(getConstant(IV)); in getConstantInt() 444 Constant *getConstant(const ValueLatticeElement &LV) const; 515 return LV.getConstant(); in getConstant() 819 if (Constant *OpC = getConstant(OpSt)) { in visitCastInst() 962 getConstant(V0State), DL)) in visitUnaryOperator() 1074 if (Constant *C = getConstant(State)) { in visitGetElementPtrInst() 1140 Constant *Ptr = getConstant(PtrVal); in visitLoadInst() 1201 Operands.push_back(getConstant(State)); in handleCallOverdefined() 1321 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult() 1601 Constant *SCCPSolver::getConstant(const ValueLatticeElement &LV) const { in getConstant() function in SCCPSolver [all …]
|