Home
last modified time | relevance | path

Searched refs:getConstant (Results 1 – 25 of 153) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h255 Constant *getConstant() const { in getConstant() function
276 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
277 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger()
288 return getConstant()->toConstantRange();
321 assert(getConstant() == V && "Marking constant with different value");
391 assert((!isConstant() || NewR.contains(getConstant()->toConstantRange())) &&
416 return markConstant(RHS.getConstant(), true);
430 if (RHS.isConstant() && getConstant() == RHS.getConstant())
435 if (getConstant()->getType()->isVectorTy() &&
436 getConstant()->getType()->getScalarType()->isIntegerTy()) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueLattice.cpp27 return ConstantFoldCompareInstOperands(Pred, getConstant(), in getCompare()
28 Other.getConstant(), DL); in getCompare()
33 getNotConstant() == Other.getConstant()) || in getCompare()
35 getConstant() == Other.getNotConstant())) in getCompare()
74 return OS << "constant<" << *Val.getConstant() << ">"; in operator <<()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp46 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()
166 DAG.getConstant(30 - SystemZ::IPM_CC, DL, MVT::i32)); in addIPMSequence()
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()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp412 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
547 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
1460 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
1601 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); in SimplifyDemandedBits()
1758 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
1797 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, ShiftVT); in SimplifyDemandedBits()
1954 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
2105 SDValue NewSA = TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, ShiftVT); in SimplifyDemandedBits()
2221 Op1 = TLO.DAG.getConstant(IsROTL ? Amt : RevAmt, dl, Op1.getValueType()); in SimplifyDemandedBits()
2226 Op1 = TLO.DAG.getConstant(IsROTL ? RevAmt : Amt, dl, Op1.getValueType()); in SimplifyDemandedBits()
[all …]
H A DLegalizeIntegerTypes.cpp669 SDValue ExtractLeadingBits = DAG.getConstant( in PromoteIntRes_CTLZ()
767 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT)); in PromoteIntRes_CTTZ()
771 DAG.getNode(ISD::VP_OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT), in PromoteIntRes_CTTZ()
1068 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
1114 SDValue SatMin = DAG.getConstant(MinVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
1115 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
1172 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
1179 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
1184 DAG.getConstant(APInt::getHighBitsSet(VTW, VTW - SatW + 1), in SaturateWidenedDIVFIX()
1547 DAG.getConstant(OldBits, DL, AmtVT)); in PromoteIntRes_FunnelShift()
[all …]
H A DLegalizeDAG.cpp325 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), dl, in ExpandConstantFP()
436 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
447 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
458 SDValue Lo = DAG.getConstant(IntVal.trunc(32), dl, MVT::i32); in OptimizeFloatStore()
459 SDValue Hi = DAG.getConstant(IntVal.lshr(32).trunc(32), dl, MVT::i32); in OptimizeFloatStore()
578 DAG.getConstant(RoundWidth, dl, in LegalizeStoreOps()
589 DAG.getConstant(ExtraWidth, dl, in LegalizeStoreOps()
597 DAG.getConstant(IncrementSize, dl, in LegalizeStoreOps()
802 DAG.getConstant(RoundWidth, dl, in LegalizeLoadOps()
831 DAG.getConstant(ExtraWidth, dl, in LegalizeLoadOps()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ISelLowering.cpp436 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation()
437 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation()
438 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation()
439 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation()
470 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation()
472 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
473 DAG.getConstant(1, DL, MVT::i32), in LowerOperation()
474 DAG.getConstant(2, DL, MVT::i32), in LowerOperation()
475 DAG.getConstant(3, DL, MVT::i32), in LowerOperation()
479 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
[all …]
H A DAMDGPUISelLowering.cpp1364 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
1467 return DAG.getConstant(*Address, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1502 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1708 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1709 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1721 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1729 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1931 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24()
1939 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24()
1942 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
H A DMCExpr.cpp583 Res = Value.getConstant(); in evaluateAsAbsolute()
742 int64_t LHS_Cst = LHS.getConstant(); in evaluateSymbolicAdd()
746 int64_t RHS_Cst = RHS.getConstant(); in evaluateSymbolicAdd()
848 Res.getSymB() || Res.getConstant()) in evaluateAsRelocatableImpl()
853 Res.getSymB(), Res.getConstant(), Res.getRefKind()); in evaluateAsRelocatableImpl()
870 if (Res.getConstant() == 0 && (!A || !B)) in evaluateAsRelocatableImpl()
891 Res = MCValue::get(!Value.getConstant()); in evaluateAsRelocatableImpl()
900 -(uint64_t)Value.getConstant()); in evaluateAsRelocatableImpl()
905 Res = MCValue::get(~Value.getConstant()); in evaluateAsRelocatableImpl()
953 -(uint64_t)RHSValue.getConstant(), in evaluateAsRelocatableImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp286 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, DL, MVT::i32); in LowerGlobalAddress()
354 DAG.getConstant(1, dl, MVT::i32)); in LowerBR_JT()
378 DAG.getConstant(LowOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
380 DAG.getConstant(HighOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
382 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
383 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
442 DAG.getConstant(2, DL, MVT::i32)); in LowerLOAD()
448 DAG.getConstant(16, DL, MVT::i32)); in LowerLOAD()
495 DAG.getConstant(16, dl, MVT::i32)); in LowerSTORE()
500 DAG.getConstant(2, dl, MVT::i32)); in LowerSTORE()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUDelayedMCExpr.cpp22 return Doc->getNode(static_cast<int64_t>(Val.getConstant())); in getNode()
24 return Doc->getNode(static_cast<uint64_t>(Val.getConstant())); in getNode()
26 return Doc->getNode(static_cast<bool>(Val.getConstant())); in getNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp104 ConstantValue = MCVal.getConstant(); in evaluateExtraSGPRs()
133 ConstantValue = MCVal.getConstant(); in evaluateTotalNumVGPR()
160 ConstantValue = MCVal.getConstant(); in evaluateAlignTo()
181 ConstantValue = MCVal.getConstant(); in evaluateOccupancy()
240 Total = ArgRes.getConstant(); in evaluateAsRelocatableImpl()
241 Total = op(Kind, *Total, ArgRes.getConstant()); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVECustomDAG.cpp311 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCExpr.cpp71 Res = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant()
110 int64_t Result = evaluateAsInt64(Value.getConstant()); in evaluateAsRelocatableImpl()
165 Res = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp281 DAG.getConstant(0, dl, MVT::i16)); in LowerShifts()
284 DAG.getConstant(1, dl, MVT::i16)); in LowerShifts()
293 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts()
297 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts()
337 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
344 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
384 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0xf0, dl, VT)); in LowerShifts()
391 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0x0f, dl, VT)); in LowerShifts()
396 DAG.getConstant(7, dl, VT)); in LowerShifts()
401 DAG.getConstant(7, dl, VT)); in LowerShifts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp111 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
147 DAG.getConstant(Offset, dl, AddrVT)), in EmitTargetCodeForMemset()
148 Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, in EmitTargetCodeForMemset()
255 DAG.getNode(ISD::ADD, dl, DstVT, Dst, DAG.getConstant(Offset, dl, DstVT)), in emitConstantSizeRepmov()
256 DAG.getNode(ISD::ADD, dl, SrcVT, Src, DAG.getConstant(Offset, dl, SrcVT)), in emitConstantSizeRepmov()
257 DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, isVolatile, in emitConstantSizeRepmov()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.cpp501 IntOps.push_back(DAG.getConstant(IntId, dl, MVT::i32)); in getInt()
729 {ElemIdx, DAG.getConstant(L, dl, MVT::i32)}); in convertToByteIndex()
743 SDValue Mask = DAG.getConstant(32/ElemWidth - 1, dl, MVT::i32); in getIndexInWord32()
945 {HalfV, SplatV, DAG.getConstant(HwLen/2, dl, MVT::i32)}); in buildHvxVectorReg()
960 Sn = DAG.getConstant(Rn, dl, MVT::i32); in buildHvxVectorReg()
967 Sm = DAG.getConstant(Rm, dl, MVT::i32); in buildHvxVectorReg()
977 Sn = DAG.getConstant(Rn+HwLen/2, dl, MVT::i32); in buildHvxVectorReg()
978 Sm = DAG.getConstant(Rm, dl, MVT::i32); in buildHvxVectorReg()
1028 {DAG.getConstant(BlockLen, dl, MVT::i32)}, DAG); in createHvxPrefixPred()
1068 SDValue S4 = DAG.getConstant(HwLe in createHvxPrefixPred()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFSelectionDAGInfo.cpp38 DAG.getConstant(CopyLen, dl, MVT::i64), in EmitTargetCodeForMemcpy()
39 DAG.getConstant(Alignment.value(), dl, MVT::i64)); in EmitTargetCodeForMemcpy()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp2247 DAG.getConstant(0, dl, MVT::i32)); in LowerCallResult()
2261 DAG.getConstant(1, dl, MVT::i32)); in LowerCallResult()
2547 DAG.getConstant(MaskValue, dl, MVT::getIntegerVT(LocBits)); in LowerCall()
2557 DAG.getConstant(0, dl, MVT::i32)); in LowerCall()
2559 DAG.getConstant(1, dl, MVT::i32)); in LowerCall()
2610 SDValue Const = DAG.getConstant(4*i, dl, MVT::i32); in LowerCall()
2634 SDValue SizeNode = DAG.getConstant(Flags.getByValSize() - 4*offset, dl, in LowerCall()
2637 DAG.getConstant(Flags.getNonZeroByValAlign().value(), dl, MVT::i32); in LowerCall()
2781 SDValue PICLabel = DAG.getConstant(ARMPCLabelIndex, dl, MVT::i32); in LowerCall()
3187 DAG.getConstant(LROffset, DL, MVT::i32, false)); in LowerInterruptReturn()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp2249 TLO.DAG.getConstant(NewImm, DL, VT)); in optimizeLogicalImm()
3581 RHS = DAG.getConstant(Imm.abs(), DL, Const->getValueType(0)); in emitConditionalComparison()
3596 SDValue Condition = DAG.getConstant(Predicate, DL, MVT_CC); in emitConditionalComparison()
3599 SDValue NZCVOp = DAG.getConstant(NZCV, DL, MVT::i32); in emitConditionalComparison()
3858 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3868 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3879 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3890 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3951 Cmp = emitComparison(SExt, DAG.getConstant(ValueofRHS, dl, in getAArch64Cmp()
3970 AArch64cc = DAG.getConstant(AArch64CC, dl, MVT_CC); in getAArch64Cmp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp63 Result = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant()
80 Result = MCValue::get(evaluateAsInt64(Value.getConstant())); in evaluateAsRelocatableImpl()
95 Result = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp266 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in CreateCopyOfByValArgument()
826 Ops.push_back(DAG.getConstant(FPDiff, DL, MVT::i32)); in LowerCall()
1622 CCR = DAG.getConstant(0, DL, N->getValueType(1)); in lowerOverflowArithmetic()
1645 DAG.getConstant(CC, DL, MVT::i8), CCR); in LowerXALUO()
1671 DAG.getConstant(Cond, DL, MVT::i8), BTST); in getBitTestCondition()
1713 RHS = DAG.getConstant(Log2_64_Ceil(AndRHSVal), DL, LHS.getValueType()); in LowerAndToBTST()
1760 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1769 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1914 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest()
1969 DAG.getConstant(Mask, DL, VT)); in EmitTest()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp482 DAG.getConstant(Imm, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_VREPLVEI()
551 DAG.getConstant(Imm, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_VSHUF4I()
811 Ops.push_back(DAG.getConstant(M, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_VSHUF()
908 DAG.getConstant(Imm, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_XVREPLVEI()
1198 DAG.getConstant(0b01001110, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
1204 DAG.getConstant(0b01001110, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
1217 DAG.getConstant(0b11101110, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
1223 DAG.getConstant(0b11101110, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
1233 DAG.getConstant(0b01000100, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
1239 DAG.getConstant(0b01000100, DL, MVT::i64)); in canonicalizeShuffleVectorByLane()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCExpr.cpp142 Res = MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), in evaluateAsRelocatableImpl()
157 int64_t AbsVal = Res.getConstant(); in evaluateAsRelocatableImpl()
213 MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), getKind()); in evaluateAsRelocatableImpl()

1234567