Home
last modified time | relevance | path

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

123456

/openbsd-src/gnu/llvm/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 <<()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp410 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands()
529 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
1414 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
1548 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); in SimplifyDemandedBits()
1711 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
1750 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, ShiftVT); in SimplifyDemandedBits()
1851 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits()
1949 SDValue NewSA = TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, ShiftVT); in SimplifyDemandedBits()
2060 Op1 = TLO.DAG.getConstant(IsROTL ? Amt : RevAmt, dl, Op1.getValueType()); in SimplifyDemandedBits()
2065 Op1 = TLO.DAG.getConstant(IsROTL ? RevAmt : Amt, dl, Op1.getValueType()); in SimplifyDemandedBits()
[all …]
H A DLegalizeIntegerTypes.cpp581 DAG.getConstant(NVT.getScalarSizeInBits() - OVT.getScalarSizeInBits(), dl, in PromoteIntRes_CTLZ()
634 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT)); in PromoteIntRes_CTTZ()
888 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
934 SDValue SatMin = DAG.getConstant(MinVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
935 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT()
992 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
999 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
1004 DAG.getConstant(APInt::getHighBitsSet(VTW, VTW - SatW + 1), in SaturateWidenedDIVFIX()
1316 DAG.getConstant(OldBits, DL, AmtVT)); in PromoteIntRes_FunnelShift()
1325 SDValue HiShift = DAG.getConstant(OldBits, DL, VT); in PromoteIntRes_FunnelShift()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCValue.cpp20 OS << getConstant(); in print()
36 if (getConstant()) in print()
37 OS << " + " << getConstant(); in print()
H A DMCExpr.cpp582 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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DR600ISelLowering.cpp437 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation()
438 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation()
439 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation()
440 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation()
472 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation()
474 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
475 DAG.getConstant(1, DL, MVT::i32), in LowerOperation()
476 DAG.getConstant(2, DL, MVT::i32), in LowerOperation()
477 DAG.getConstant(3, DL, MVT::i32), in LowerOperation()
481 DAG.getConstant(0, DL, MVT::i32), in LowerOperation()
[all …]
H A DAMDGPUISelLowering.cpp1235 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC()
1339 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress()
1489 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue()
1490 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue()
1502 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64()
1510 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64()
1712 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24()
1720 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24()
1723 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24()
1776 jq = DAG.getNode(ISD::SELECT, DL, VT, cv, jq, DAG.getConstant(0, DL, VT)); in LowerDIVREM24()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DValueLattice.h258 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())
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp289 SDValue Remaining = DAG.getConstant(Offset - FoldedOffset, DL, MVT::i32); in LowerGlobalAddress()
359 DAG.getConstant(1, dl, MVT::i32)); in LowerBR_JT()
383 DAG.getConstant(LowOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
385 DAG.getConstant(HighOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset()
387 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
388 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset()
447 DAG.getConstant(2, DL, MVT::i32)); in LowerLOAD()
453 DAG.getConstant(16, DL, MVT::i32)); in LowerLOAD()
500 DAG.getConstant(16, dl, MVT::i32)); in LowerSTORE()
505 DAG.getConstant(2, dl, MVT::i32)); in LowerSTORE()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A 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 std::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 …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp112 Chain = DAG.getCopyToReg(Chain, dl, ValReg, DAG.getConstant(Val, dl, AVT), in EmitTargetCodeForMemset()
143 DAG.getConstant(Offset, dl, AddrVT)), in EmitTargetCodeForMemset()
144 Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, in EmitTargetCodeForMemset()
252 DAG.getNode(ISD::ADD, dl, DstVT, Dst, DAG.getConstant(Offset, dl, DstVT)), in emitConstantSizeRepmov()
253 DAG.getNode(ISD::ADD, dl, SrcVT, Src, DAG.getConstant(Offset, dl, SrcVT)), in emitConstantSizeRepmov()
254 DAG.getConstant(BytesLeft, dl, SizeVT), llvm::Align(Align), isVolatile, in emitConstantSizeRepmov()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCExpr.cpp71 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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp642 DAG.getConstant(Imm, DL, GRLenVT)), in lowerINTRINSIC_W_CHAIN()
653 DAG.getConstant(Imm, DL, GRLenVT)), in lowerINTRINSIC_W_CHAIN()
664 Op.getOperand(3), DAG.getConstant(Imm, DL, GRLenVT)), in lowerINTRINSIC_W_CHAIN()
725 DAG.getConstant(Imm, DL, GRLenVT)), in lowerINTRINSIC_W_CHAIN()
785 DAG.getConstant(Imm, DL, GRLenVT)); in lowerINTRINSIC_VOID()
793 DAG.getConstant(Imm, DL, GRLenVT)); in lowerINTRINSIC_VOID()
801 DAG.getConstant(Imm, DL, GRLenVT)); in lowerINTRINSIC_VOID()
815 DAG.getConstant(Imm, DL, GRLenVT), in lowerINTRINSIC_VOID()
824 DAG.getConstant(Imm, DL, GRLenVT)); in lowerINTRINSIC_VOID()
892 SDValue Zero = DAG.getConstant(0, DL, VT); in lowerShiftLeftParts()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelLoweringHVX.cpp500 IntOps.push_back(DAG.getConstant(IntId, dl, MVT::i32)); in getInt()
728 {ElemIdx, DAG.getConstant(L, dl, MVT::i32)}); in convertToByteIndex()
742 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(HwLen-4, dl, MVT::i32); in createHvxPrefixPred()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp2214 DAG.getConstant(0, dl, MVT::i32)); in LowerCallResult()
2228 DAG.getConstant(1, dl, MVT::i32)); in LowerCallResult()
2506 DAG.getConstant(MaskValue, dl, MVT::getIntegerVT(LocBits)); in LowerCall()
2516 DAG.getConstant(0, dl, MVT::i32)); in LowerCall()
2518 DAG.getConstant(1, dl, MVT::i32)); in LowerCall()
2569 SDValue Const = DAG.getConstant(4*i, dl, MVT::i32); in LowerCall()
2593 SDValue SizeNode = DAG.getConstant(Flags.getByValSize() - 4*offset, dl, in LowerCall()
2596 DAG.getConstant(Flags.getNonZeroByValAlign().value(), dl, MVT::i32); in LowerCall()
2750 SDValue PICLabel = DAG.getConstant(ARMPCLabelIndex, dl, MVT::i32); in LowerCall()
3153 DAG.getConstant(LROffset, DL, MVT::i32, false)); in LowerInterruptReturn()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp297 DAG.getConstant(0, dl, MVT::i16)); in LowerShifts()
300 DAG.getConstant(1, dl, MVT::i16)); in LowerShifts()
310 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts()
314 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts()
354 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
361 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts()
401 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0xf0, dl, VT)); in LowerShifts()
408 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0x0f, dl, VT)); in LowerShifts()
413 DAG.getConstant(7, dl, VT)); in LowerShifts()
418 DAG.getConstant(7, dl, VT)); in LowerShifts()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp64 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp247 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in CreateCopyOfByValArgument()
807 Ops.push_back(DAG.getConstant(FPDiff, DL, MVT::i32)); in LowerCall()
1443 DAG.getConstant(Cond, DL, MVT::i8), in LowerXALUO()
1469 DAG.getConstant(Cond, DL, MVT::i8), BTST); in getBitTestCondition()
1511 RHS = DAG.getConstant(Log2_64_Ceil(AndRHSVal), DL, LHS.getValueType()); in LowerAndToBTST()
1558 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1567 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC()
1712 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest()
1767 DAG.getConstant(Mask, DL, VT)); in EmitTest()
1870 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp2055 TLO.DAG.getConstant(NewImm, DL, VT)); in optimizeLogicalImm()
3177 SDValue Condition = DAG.getConstant(Predicate, DL, MVT_CC); in emitConditionalComparison()
3180 SDValue NZCVOp = DAG.getConstant(NZCV, DL, MVT::i32); in emitConditionalComparison()
3439 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3449 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3460 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3471 RHS = DAG.getConstant(C, dl, VT); in getAArch64Cmp()
3528 Cmp = emitComparison(SExt, DAG.getConstant(ValueofRHS, dl, in getAArch64Cmp()
3547 AArch64cc = DAG.getConstant(AArch64CC, dl, MVT_CC); in getAArch64Cmp()
3601 SDValue UpperBits = DAG.getConstant(0xFFFFFFFF00000000, DL, MVT::i64); in getAArch64XALUOOp()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1549 DAG.getConstant(ShAmt, DL, LHS.getValueType())); in translateSetCCForBranch()
1561 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in translateSetCCForBranch()
1570 LHS = DAG.getConstant(0, DL, RHS.getValueType()); in translateSetCCForBranch()
1869 SDValue Zero = DAG.getConstant(0, DL, Subtarget.getXLenVT()); in convertToScalableVector()
1881 SDValue Zero = DAG.getConstant(0, DL, Subtarget.getXLenVT()); in convertFromScalableVector()
1904 return DAG.getConstant(NumElts, DL, Subtarget.getXLenVT()); in getVLOp()
1989 SDValue ZeroInt = DAG.getConstant(0, DL, DstVT); in lowerFP_TO_INT_SAT()
2043 DAG.getConstant(0, DL, Subtarget.getXLenVT()), VL); in lowerFP_TO_INT_SAT()
2440 SDValue Elt = DAG.getConstant(Bits, DL, XLenVT); in lowerBUILD_VECTOR()
2442 Elt, DAG.getConstant(IntegerEltIdx, DL, XLenVT)); in lowerBUILD_VECTOR()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/MCTargetDesc/
H A 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblySelectionDAGInfo.cpp29 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemcpy()
53 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemset()

123456