Home
last modified time | relevance | path

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

123456

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
DSystemZSelectionDAGInfo.cpp42 DAG.getConstant(Size, DL, PtrVT), in emitMemMem()
43 DAG.getConstant(Size / 256, DL, PtrVT)); in emitMemMem()
45 DAG.getConstant(Size, DL, PtrVT)); in emitMemMem()
71 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore()
105 DAG.getConstant(Size1, DL, PtrVT)); in EmitTargetCodeForMemset()
120 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
137 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset()
147 DAG.getConstant(-1, DL, MVT::i64)); in EmitTargetCodeForMemset()
149 DAG.getConstant(8, DL, MVT::i64)); in EmitTargetCodeForMemset()
172 DAG.getConstant(Size, DL, PtrVT), in emitCLC()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DValueLattice.h256 Constant *getConstant() const { in getConstant() function
277 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger()
278 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger()
307 assert(getConstant() == V && "Marking constant with different value");
400 return markConstant(RHS.getConstant(), true);
414 if (RHS.isConstant() && getConstant() == RHS.getConstant())
458 return ConstantExpr::getCompare(Pred, getConstant(), Other.getConstant()); in getCompare()
463 getNotConstant() == Other.getConstant()) || in getCompare()
465 getConstant() == Other.getNotConstant())) in getCompare()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp404 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
523 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
1240 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
1347 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); in SimplifyDemandedBits()
1458 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
1479 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
1500 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, ShiftVT); in SimplifyDemandedBits()
1566 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
1649 SDValue NewSA = TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, ShiftVT); in SimplifyDemandedBits()
1811 TLO.DAG.getConstant(BitWidth - ExVTBits, dl, ShiftAmtTy); in SimplifyDemandedBits()
[all …]
DLegalizeIntegerTypes.cpp412 DAG.getConstant(ShiftAmt, dl, ShiftAmtTy)); in PromoteIntRes_BITCAST()
479 DAG.getConstant(DiffBits, dl, ShiftVT)); in PromoteIntRes_BSWAP()
502 DAG.getConstant(DiffBits, dl, ShiftVT)); in PromoteIntRes_BITREVERSE()
538 DAG.getConstant(NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(), dl, in PromoteIntRes_CTLZ()
559 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT)); in PromoteIntRes_CTTZ()
796 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
827 SDValue ShiftAmount = DAG.getConstant(SHLAmount, dl, SHVT); in PromoteIntRes_ADDSUBSHLSAT()
842 SDValue SatMin = DAG.getConstant(MinVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
843 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
878 DAG.getConstant(DiffSize, dl, ShiftTy)); in PromoteIntRes_MULFIX()
[all …]
DLegalizeDAG.cpp302 return DAG.getConstant(LLVMC->getValueAPF().bitcastToAPInt(), dl, in ExpandConstantFP()
449 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
459 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
470 SDValue Lo = DAG.getConstant(IntVal.trunc(32), dl, MVT::i32); in OptimizeFloatStore()
471 SDValue Hi = DAG.getConstant(IntVal.lshr(32).trunc(32), dl, MVT::i32); in OptimizeFloatStore()
589 DAG.getConstant(RoundWidth, dl, in LegalizeStoreOps()
600 DAG.getConstant(ExtraWidth, dl, in LegalizeStoreOps()
608 DAG.getConstant(IncrementSize, dl, in LegalizeStoreOps()
812 DAG.getConstant(RoundWidth, dl, in LegalizeLoadOps()
840 DAG.getConstant(ExtraWidth, dl, in LegalizeLoadOps()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MC/
DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
DMCExpr.cpp578 Res = Value.getConstant(); in evaluateAsAbsolute()
702 int64_t LHS_Cst = LHS.getConstant(); in EvaluateSymbolicAdd()
808 Res.getSymB() || Res.getConstant()) in evaluateAsRelocatableImpl()
813 Res.getSymB(), Res.getConstant(), Res.getRefKind()); in evaluateAsRelocatableImpl()
830 if (Res.getConstant() == 0 && (!A || !B)) in evaluateAsRelocatableImpl()
851 Res = MCValue::get(!Value.getConstant()); in evaluateAsRelocatableImpl()
860 -(uint64_t)Value.getConstant()); in evaluateAsRelocatableImpl()
865 Res = MCValue::get(~Value.getConstant()); in evaluateAsRelocatableImpl()
910 -(uint64_t)RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl()
915 RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp486 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation()
487 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation()
488 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation()
489 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation()
521 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation()
523 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
524 DAG.getConstant(1, DL, MVT::i32), in LowerOperation()
525 DAG.getConstant(2, DL, MVT::i32), in LowerOperation()
526 DAG.getConstant(3, DL, MVT::i32), in LowerOperation()
530 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
[all …]
DAMDGPUISelLowering.cpp1274 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
1383 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1514 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1515 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1527 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1535 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1737 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24()
1745 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24()
1748 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24()
1798 jq = DAG.getNode(ISD::SELECT, DL, VT, cv, jq, DAG.getConstant(0, DL, VT)); in LowerDIVREM24()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp292 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, DL, MVT::i32); in LowerGlobalAddress()
362 DAG.getConstant(1, dl, MVT::i32)); in LowerBR_JT()
386 DAG.getConstant(LowOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
388 DAG.getConstant(HighOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
390 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
391 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
450 DAG.getConstant(2, DL, MVT::i32)); in LowerLOAD()
456 DAG.getConstant(16, DL, MVT::i32)); in LowerLOAD()
503 DAG.getConstant(16, dl, MVT::i32)); in LowerSTORE()
508 DAG.getConstant(2, dl, MVT::i32)); in LowerSTORE()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
DKnownBits.cpp172 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()
536 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in urem()
538 APInt LowBits = RHS.getConstant() - 1; in urem()
557 if (RHS.isConstant() && RHS.getConstant().isPowerOf2()) { in srem()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCExpr.cpp71 Res = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant()
112 int64_t Result = evaluateAsInt64(Value.getConstant()); in evaluateAsRelocatableImpl()
158 Res = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/
DARMISelLowering.cpp2156 DAG.getConstant(0, dl, MVT::i32)); in LowerCallResult()
2170 DAG.getConstant(1, dl, MVT::i32)); in LowerCallResult()
2442 DAG.getConstant(MaskValue, dl, MVT::getIntegerVT(LocBits)); in LowerCall()
2452 DAG.getConstant(0, dl, MVT::i32)); in LowerCall()
2454 DAG.getConstant(1, dl, MVT::i32)); in LowerCall()
2505 SDValue Const = DAG.getConstant(4*i, dl, MVT::i32); in LowerCall()
2529 SDValue SizeNode = DAG.getConstant(Flags.getByValSize() - 4*offset, dl, in LowerCall()
2532 DAG.getConstant(Flags.getNonZeroByValAlign().value(), dl, MVT::i32); in LowerCall()
2664 SDValue PICLabel = DAG.getConstant(ARMPCLabelIndex, dl, MVT::i32); in LowerCall()
3062 DAG.getConstant(LROffset, DL, MVT::i32, false)); in LowerInterruptReturn()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
DRISCVISelLowering.cpp1046 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in translateSetCCForBranch()
1053 LHS = DAG.getConstant(0, DL, RHS.getValueType()); in translateSetCCForBranch()
1321 SDValue Zero = DAG.getConstant(0, DL, Subtarget.getXLenVT()); in convertToScalableVector()
1333 SDValue Zero = DAG.getConstant(0, DL, Subtarget.getXLenVT()); in convertFromScalableVector()
1346 ? DAG.getConstant(VecVT.getVectorNumElements(), DL, XLenVT) in getDefaultVLOps()
1528 SDValue Elt = DAG.getConstant(Bits, DL, XLenVT); in lowerBUILD_VECTOR()
1530 Elt, DAG.getConstant(IntegerEltIdx, DL, XLenVT)); in lowerBUILD_VECTOR()
1544 SDValue Elt = DAG.getConstant(Bits, DL, XLenVT); in lowerBUILD_VECTOR()
1546 DAG.getConstant(IntegerEltIdx, DL, XLenVT)); in lowerBUILD_VECTOR()
1555 DAG.getConstant(0, DL, XLenVT)); in lowerBUILD_VECTOR()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/BPF/
DBPFSelectionDAGInfo.cpp38 DAG.getConstant(CopyLen, dl, MVT::i64), in EmitTargetCodeForMemcpy()
39 DAG.getConstant(Alignment.value(), dl, MVT::i64)); in EmitTargetCodeForMemcpy()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp144 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
175 DAG.getConstant(Offset, dl, AddrVT)), in EmitTargetCodeForMemset()
176 Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, in EmitTargetCodeForMemset()
283 DAG.getNode(ISD::ADD, dl, DstVT, Dst, DAG.getConstant(Offset, dl, DstVT)), in emitConstantSizeRepmov()
284 DAG.getNode(ISD::ADD, dl, SrcVT, Src, DAG.getConstant(Offset, dl, SrcVT)), in emitConstantSizeRepmov()
285 DAG.getConstant(BytesLeft, dl, SizeVT), llvm::Align(Align), isVolatile, in emitConstantSizeRepmov()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Lanai/
DLanaiISelLowering.cpp640 SDValue SizeNode = DAG.getConstant(Size, DL, MVT::i32); in LowerCCCCallTo()
761 DAG.getConstant(NumBytes, DL, getPointerTy(DAG.getDataLayout()), true), in LowerCCCCallTo()
762 DAG.getConstant(0, DL, getPointerTy(DAG.getDataLayout()), true), InFlag, in LowerCCCCallTo()
816 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in IntCondCCodeToICC()
834 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in IntCondCCodeToICC()
875 SDValue TargetCC = DAG.getConstant(CC, DL, MVT::i32); in LowerBR_CC()
944 Res = DAG.getConstant(0, DL, MVT::i32); in LowerMUL()
947 DAG.getConstant(HighestOne, DL, MVT::i32)); in LowerMUL()
960 DAG.getNode(ISD::SHL, DL, VT, V, DAG.getConstant(I, DL, MVT::i32)); in LowerMUL()
976 SDValue TargetCC = DAG.getConstant(CC, DL, MVT::i32); in LowerSETCC()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AVR/
DAVRISelLowering.cpp296 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
303 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
343 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0xf0, dl, VT)); in LowerShifts()
350 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0x0f, dl, VT)); in LowerShifts()
355 DAG.getConstant(7, dl, VT)); in LowerShifts()
360 DAG.getConstant(7, dl, VT)); in LowerShifts()
365 DAG.getConstant(7, dl, VT)); in LowerShifts()
373 DAG.getConstant(4, dl, VT)); in LowerShifts()
378 DAG.getConstant(4, dl, VT)); in LowerShifts()
388 DAG.getConstant(8, dl, VT)); in LowerShifts()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DSCCPSolver.cpp133 return dyn_cast_or_null<ConstantInt>(getConstant(IV)); in getConstantInt()
449 Constant *getConstant(const ValueLatticeElement &LV) const;
517 Constant *SCCPInstVisitor::getConstant(const ValueLatticeElement &LV) const { in getConstant() function in SCCPInstVisitor
519 return LV.getConstant(); in getConstant()
653 BlockAddress *Addr = dyn_cast_or_null<BlockAddress>(getConstant(IBRValue)); in getFeasibleSuccessors()
805 if (Constant *OpC = getConstant(OpSt)) { in visitCastInst()
941 Constant *C = ConstantExpr::get(I.getOpcode(), getConstant(V0State)); in visitUnaryOperator()
975 Value *V1 = isConstant(V1State) ? getConstant(V1State) : I.getOperand(0); in visitBinaryOperator()
976 Value *V2 = isConstant(V2State) ? getConstant(V2State) : I.getOperand(1); in visitBinaryOperator()
1064 if (Constant *C = getConstant(State)) { in visitGetElementPtrInst()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
DAVRMCExpr.cpp65 Result = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant()
82 Result = MCValue::get(evaluateAsInt64(Value.getConstant())); in evaluateAsRelocatableImpl()
96 Result = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in evaluateAsRelocatableImpl()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp317 IntOps.push_back(DAG.getConstant(IntId, dl, MVT::i32)); in getInt()
435 {ElemIdx, DAG.getConstant(L, dl, MVT::i32)}); in convertToByteIndex()
449 SDValue Mask = DAG.getConstant(32/ElemWidth - 1, dl, MVT::i32); in getIndexInWord32()
624 SDValue S = DAG.getConstant(4, dl, MVT::i32); in buildHvxVectorReg()
635 {HalfV0, DAG.getConstant(HwLen/2, dl, MVT::i32)}); in buildHvxVectorReg()
676 {DAG.getConstant(BlockLen, dl, MVT::i32)}, DAG); in createHvxPrefixPred()
723 SDValue S4 = DAG.getConstant(HwLen-4, dl, MVT::i32); in createHvxPrefixPred()
840 SDValue ScV = DAG.getConstant(Scale, dl, MVT::i32); in extractHvxElementPred()
862 {ByteIdxV, DAG.getConstant(-4, dl, MVT::i32)}); in insertHvxElementReg()
866 {DAG.getConstant(HwLen, dl, MVT::i32), MaskV}); in insertHvxElementReg()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
DMipsMCExpr.cpp144 Res = MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), in evaluateAsRelocatableImpl()
159 int64_t AbsVal = Res.getConstant(); in evaluateAsRelocatableImpl()
215 MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), getKind()); in evaluateAsRelocatableImpl()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblySelectionDAGInfo.cpp29 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemcpy()
53 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemset()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp1701 TLO.DAG.getConstant(NewImm, DL, VT)); in optimizeLogicalImm()
2620 SDValue Condition = DAG.getConstant(Predicate, DL, MVT_CC); in emitConditionalComparison()
2623 SDValue NZCVOp = DAG.getConstant(NZCV, DL, MVT::i32); in emitConditionalComparison()
2882 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
2892 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
2903 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
2914 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
2971 Cmp = emitComparison(SExt, DAG.getConstant(ValueofRHS, dl, in getAArch64Cmp()
2990 AArch64cc = DAG.getConstant(AArch64CC, dl, MVT_CC); in getAArch64Cmp()
3044 SDValue UpperBits = DAG.getConstant(0xFFFFFFFF00000000, DL, MVT::i64); in getAArch64XALUOOp()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/M68k/
DM68kISelLowering.cpp213 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in CreateCopyOfByValArgument()
774 Ops.push_back(DAG.getConstant(FPDiff, DL, MVT::i32)); in LowerCall()
1403 DAG.getConstant(Cond, DL, MVT::i8), in LowerXALUO()
1429 DAG.getConstant(Cond, DL, MVT::i8), BT); in getBitTestCondition()
1471 RHS = DAG.getConstant(Log2_64_Ceil(AndRHSVal), DL, LHS.getValueType()); in LowerAndToBT()
1518 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1527 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1672 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest()
1727 DAG.getConstant(Mask, DL, VT)); in EmitTest()
1830 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest()
[all …]

123456