| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 253 Constant *getConstant() const { in getConstant() function 274 if (isConstant() && isa<ConstantInt>(getConstant())) { in asConstantInteger() 275 return cast<ConstantInt>(getConstant())->getValue(); in asConstantInteger() 286 return getConstant()->toConstantRange(); 319 assert(getConstant() == V && "Marking constant with different value"); 389 assert((!isConstant() || NewR.contains(getConstant()->toConstantRange())) && 414 return markConstant(RHS.getConstant(), true); 428 if (RHS.isConstant() && getConstant() == RHS.getConstant()) 433 if (getConstant()->getType()->isVectorTy() && 434 getConstant()->getType()->getScalarType()->isIntegerTy()) { [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueLattice.cpp | 28 return ConstantFoldCompareInstOperands(Pred, getConstant(), in getCompare() 29 Other.getConstant(), DL); in getCompare() 34 getNotConstant() == Other.getConstant()) || in getCompare() 36 getConstant() == Other.getNotConstant())) in getCompare() 131 return OS << "constant<" << *Val.getConstant() << ">"; in operator <<()
|
| /freebsd/contrib/llvm-project/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 | 265 Res = Value.getConstant(); in evaluateAsAbsolute() 421 int64_t LHS_Cst = LHS.getConstant(); in evaluateSymbolicAdd() 425 int64_t RHS_Cst = RHS.getConstant(); in evaluateSymbolicAdd() 518 Res.getConstant()) in evaluateAsRelocatableImpl() 535 if (Res.getConstant() == 0 && (!A || !B)) in evaluateAsRelocatableImpl() 554 Res = MCValue::get(!Value.getConstant()); in evaluateAsRelocatableImpl() 563 -(uint64_t)Value.getConstant()); in evaluateAsRelocatableImpl() 568 Res = MCValue::get(~Value.getConstant()); in evaluateAsRelocatableImpl() 605 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 56 SDValue LenAdj = DAG.getConstant(Size - Adj, DL, Dst.getValueType()); in emitMemMemImm() 94 Chain, DL, DAG.getConstant(StoreVal, DL, MVT::getIntegerVT(Size * 8)), in memsetStore() 128 DAG.getConstant(Size1, DL, PtrVT)); in EmitTargetCodeForMemset() 143 DAG.getConstant(1, DL, PtrVT)); in EmitTargetCodeForMemset() 176 DAG.getConstant(30 - SystemZ::IPM_CC, DL, MVT::i32)); in addIPMSequence() 178 DAG.getConstant(30, DL, MVT::i32)); in addIPMSequence() 207 DAG.getConstant(255, DL, MVT::i32)); in EmitTargetCodeForMemchr() 217 End, DAG.getConstant(0, DL, PtrVT), in EmitTargetCodeForMemchr() 230 DAG.getConstant(0, DL, MVT::i32)); in EmitTargetCodeForStrcpy() 241 DAG.getConstant(0, DL, MVT::i32)); in EmitTargetCodeForStrcmp() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 426 NewRHS = DAG.getConstant(0, dl, RetVT); in softenSetCCOperands() 570 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant() 1515 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits() 1649 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); in SimplifyDemandedBits() 1805 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits() 1844 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, ShiftVT); in SimplifyDemandedBits() 1991 SDValue NewSA = TLO.DAG.getConstant(Diff, dl, ShiftVT); in SimplifyDemandedBits() 2007 SDValue NewSA = TLO.DAG.getConstant(Combined, dl, ShiftVT); in SimplifyDemandedBits() 2173 SDValue NewSA = TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, ShiftVT); in SimplifyDemandedBits() 2289 Op1 = TLO.DAG.getConstant(IsROTL ? Amt : RevAmt, dl, Op1.getValueType()); in SimplifyDemandedBits() [all …]
|
| H A D | LegalizeIntegerTypes.cpp | 709 SDValue ExtractLeadingBits = DAG.getConstant( in PromoteIntRes_CTLZ() 807 Op = DAG.getNode(ISD::OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT)); in PromoteIntRes_CTTZ() 811 DAG.getNode(ISD::VP_OR, dl, NVT, Op, DAG.getConstant(TopBit, dl, NVT), in PromoteIntRes_CTTZ() 1110 SDValue SatMax = DAG.getConstant(MaxVal, dl, NVT); in PromoteIntRes_ADDSUBSHLSAT() 1160 SDValue SatMin = DAG.getConstant(MinVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT() 1161 SDValue SatMax = DAG.getConstant(MaxVal, dl, PromotedType); in PromoteIntRes_ADDSUBSHLSAT() 1217 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX() 1224 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX() 1229 DAG.getConstant(APInt::getHighBitsSet(VTW, VTW - SatW + 1), in SaturateWidenedDIVFIX() 1592 DAG.getConstant(OldBits, DL, AmtVT)); in PromoteIntRes_FunnelShift() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | R600ISelLowering.cpp | 440 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation() 441 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation() 442 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation() 443 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation() 474 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation() 476 DAG.getConstant(0, DL, MVT::i32), in LowerOperation() 477 DAG.getConstant(1, DL, MVT::i32), in LowerOperation() 478 DAG.getConstant(2, DL, MVT::i32), in LowerOperation() 479 DAG.getConstant(3, DL, MVT::i32), in LowerOperation() 483 DAG.getConstant(0, DL, MVT::i32), in LowerOperation() [all …]
|
| H A D | AMDGPUISelLowering.cpp | 1421 auto Ops = {DAG.getConstant(0, SDLoc(), Op.getValueType()), Op.getOperand(0)}; in LowerDYNAMIC_STACKALLOC() 1524 return DAG.getConstant(*Address, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress() 1559 return DAG.getConstant(Offset, SDLoc(Op), Op.getValueType()); in LowerGlobalAddress() 1765 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in split64BitValue() 1766 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in split64BitValue() 1778 const SDValue Zero = DAG.getConstant(0, SL, MVT::i32); in getLoHalf64() 1786 const SDValue One = DAG.getConstant(1, SL, MVT::i32); in getHiHalf64() 1988 SDValue jq = DAG.getConstant(1, DL, IntVT); in LowerDIVREM24() 1996 DAG.getConstant(BitSize - 2, DL, VT)); in LowerDIVREM24() 1999 jq = DAG.getNode(ISD::OR, DL, VT, jq, DAG.getConstant(1, DL, VT)); in LowerDIVREM24() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 327 DAG.getConstant(1, dl, MVT::i32)); in LowerBR_JT() 351 DAG.getConstant(LowOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset() 353 DAG.getConstant(HighOffset, DL, MVT::i32)); in lowerLoadWordFromAlignedBasePlusOffset() 355 SDValue LowShift = DAG.getConstant((Offset - LowOffset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset() 356 SDValue HighShift = DAG.getConstant((HighOffset - Offset) * 8, DL, MVT::i32); in lowerLoadWordFromAlignedBasePlusOffset() 415 DAG.getConstant(2, DL, MVT::i32)); in LowerLOAD() 421 DAG.getConstant(16, DL, MVT::i32)); in LowerLOAD() 468 DAG.getConstant(16, dl, MVT::i32)); in LowerSTORE() 473 DAG.getConstant(2, dl, MVT::i32)); in LowerSTORE() 511 SDValue Zero = DAG.getConstant(0, dl, MVT::i32); in LowerSMUL_LOHI() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUDelayedMCExpr.cpp | 22 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/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCompares.cpp | 101 if (auto CLHS = GIConstant::getConstant(LHS, MRI)) { in matchCanonicalizeICmp() 102 if (auto CRHS = GIConstant::getConstant(RHS, MRI)) in matchCanonicalizeICmp() 127 if (auto CLHS = GFConstant::getConstant(LHS, MRI)) { in matchCanonicalizeFCmp() 128 if (auto CRHS = GFConstant::getConstant(RHS, MRI)) in matchCanonicalizeFCmp()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StaticDataSplitter.cpp | 61 const Constant *getConstant(const MachineOperand &Op, const TargetMachine &TM, 124 StaticDataSplitter::getConstant(const MachineOperand &Op, in getConstant() function in StaticDataSplitter 197 getConstant(Op, MF.getTarget(), MF.getConstantPool())) { in partitionStaticDataWithProfiles() 247 getConstant(Op, MF.getTarget(), MF.getConstantPool())) in annotateStaticDataWithoutProfiles()
|
| /freebsd/contrib/llvm-project/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() 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/X86/ |
| H A D | X86SelectionDAGInfo.cpp | 141 Val = DAG.getConstant(0, dl, BlockType); in emitConstantSizeRepstos() 181 Val = DAG.getConstant(Value, dl, BlockType); in emitConstantSizeRepstos() 200 DAG.getConstant(Offset, dl, AddrVT)), in emitConstantSizeRepstos() 201 OriginalVal, DAG.getConstant(BytesLeft, dl, SizeVT), in emitConstantSizeRepstos() 314 DAG.getNode(ISD::ADD, dl, DstVT, Dst, DAG.getConstant(Offset, dl, DstVT)), in emitConstantSizeRepmov() 315 DAG.getNode(ISD::ADD, dl, SrcVT, Src, DAG.getConstant(Offset, dl, SrcVT)), in emitConstantSizeRepmov() 316 DAG.getConstant(BytesLeft, dl, SizeVT), Alignment, isVolatile, in emitConstantSizeRepmov()
|
| H A D | X86TargetObjectFile.cpp | 49 unsigned FinalOff = Offset+MV.getConstant()+4; in getIndirectSymViaGOTPCRel() 68 int64_t FinalOffset = Offset + MV.getConstant(); in getIndirectSymViaGOTPCRel()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFSelectionDAGInfo.cpp | 37 DAG.getConstant(CopyLen, dl, MVT::i64), in EmitTargetCodeForMemcpy() 38 DAG.getConstant(Alignment.value(), dl, MVT::i64)); in EmitTargetCodeForMemcpy()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 2241 DAG.getConstant(0, dl, MVT::i32)); in LowerCallResult() 2255 DAG.getConstant(1, dl, MVT::i32)); in LowerCallResult() 2586 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), dl, MVT::i32); in LowerCall() 2588 DAG.getConstant(Flags.getNonZeroByValAlign().value(), dl, MVT::i32); in LowerCall() 2659 DAG.getConstant(MaskValue, dl, MVT::getIntegerVT(LocBits)); in LowerCall() 2669 DAG.getConstant(0, dl, MVT::i32)); in LowerCall() 2671 DAG.getConstant(1, dl, MVT::i32)); in LowerCall() 2732 SDValue Const = DAG.getConstant(4*i, dl, MVT::i32); in LowerCall() 2758 SDValue SizeNode = DAG.getConstant(Flags.getByValSize() - 4*offset, dl, in LowerCall() 2761 DAG.getConstant(Flags.getNonZeroByValAlign().value(), dl, MVT::i32); in LowerCall() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 511 IntOps.push_back(DAG.getConstant(IntId, dl, MVT::i32)); in getInt() 739 {ElemIdx, DAG.getConstant(L, dl, MVT::i32)}); in convertToByteIndex() 753 SDValue Mask = DAG.getConstant(32/ElemWidth - 1, dl, MVT::i32); in getIndexInWord32() 955 {HalfV, SplatV, DAG.getConstant(HwLen/2, dl, MVT::i32)}); in buildHvxVectorReg() 970 Sn = DAG.getConstant(Rn, dl, MVT::i32); in buildHvxVectorReg() 977 Sm = DAG.getConstant(Rm, dl, MVT::i32); in buildHvxVectorReg() 987 Sn = DAG.getConstant(Rn+HwLen/2, dl, MVT::i32); in buildHvxVectorReg() 988 Sm = DAG.getConstant(Rm, dl, MVT::i32); in buildHvxVectorReg() 1038 {DAG.getConstant(BlockLen, dl, MVT::i32)}, DAG); in createHvxPrefixPred() 1078 SDValue S4 = DAG.getConstant(HwLen-4, dl, MVT::i32); in createHvxPrefixPred() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRMCAsmInfo.cpp | 192 Result = MCValue::get(E.evaluateAsInt64(Value.getConstant())); in evaluateAsRelocatableImpl() 206 MCValue::get(Value.getAddSym(), nullptr, Value.getConstant(), Spec); in evaluateAsRelocatableImpl() 219 Result = evaluateAsInt64(Value.getConstant()); in evaluateAsConstant()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 2486 TLO.DAG.getConstant(NewImm, DL, VT)); in optimizeLogicalImm() 3571 RHS = DAG.getConstant(Imm.abs(), DL, Const->getValueType(0)); in emitConditionalComparison() 3586 SDValue Condition = DAG.getConstant(Predicate, DL, MVT_CC); in emitConditionalComparison() 3589 SDValue NZCVOp = DAG.getConstant(NZCV, DL, MVT::i32); in emitConditionalComparison() 3861 RHS = DAG.getConstant(0, DL, VT); in getAArch64Cmp() 3873 RHS = DAG.getConstant(CMinusOne, DL, VT); in getAArch64Cmp() 3883 RHS = DAG.getConstant(CMinusOne, DL, VT); in getAArch64Cmp() 3893 RHS = DAG.getConstant(CPlusOne, DL, VT); in getAArch64Cmp() 3903 RHS = DAG.getConstant(CPlusOne, DL, VT); in getAArch64Cmp() 3983 AArch64cc = DAG.getConstant(AArch64CC, DL, MVT_CC); in getAArch64Cmp() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRISelLowering.cpp | 228 DAG.getConstant(0, dl, MVT::i16)); in LowerShifts() 231 DAG.getConstant(1, dl, MVT::i16)); in LowerShifts() 240 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts() 244 SDValue Zero = DAG.getConstant(0, dl, MVT::i16); in LowerShifts() 284 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts() 291 DAG.getConstant(VT.getSizeInBits() - 1, dl, AmtVT)); in LowerShifts() 331 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0xf0, dl, VT)); in LowerShifts() 338 DAG.getNode(ISD::AND, dl, VT, Victim, DAG.getConstant(0x0f, dl, VT)); in LowerShifts() 343 DAG.getConstant(7, dl, VT)); in LowerShifts() 348 DAG.getConstant(7, dl, VT)); in LowerShifts() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaISelLowering.cpp | 634 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in LowerCall() 737 Chain = DAG.getCALLSEQ_END(Chain, DAG.getConstant(NumBytes, DL, PtrVT, true), in LowerCall() 738 DAG.getConstant(0, DL, PtrVT, true), Glue, DL); in LowerCall() 901 SDValue TargetCC = DAG.getConstant(BrOpcode, DL, MVT::i32); in LowerSELECT_CC() 912 SDValue TargetCC = DAG.getConstant(CmpOpCode, DL, MVT::i32); in LowerSELECT_CC() 913 SDValue TargetBC = DAG.getConstant(BrOpcode, DL, MVT::i32); in LowerSELECT_CC() 1069 DAG.getConstant(Log2_32(EntrySize), DL, Index.getValueType())); in LowerBR_JT() 1171 DAG.getNode(ISD::ADD, DL, VT, Size, DAG.getConstant(31, DL, MVT::i32)); in LowerDYNAMIC_STACKALLOC() 1217 VAIndex = DAG.getConstant(ArgWords * 4, DL, MVT::i32); in LowerVASTART() 1219 VAIndex = DAG.getConstant(32, DL, MVT::i32); in LowerVASTART() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 268 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in CreateCopyOfByValArgument() 826 Ops.push_back(DAG.getConstant(FPDiff, DL, MVT::i32)); in LowerCall() 1624 CCR = DAG.getConstant(0, DL, N->getValueType(1)); in lowerOverflowArithmetic() 1647 DAG.getConstant(CC, DL, MVT::i8), CCR); in LowerXALUO() 1673 DAG.getConstant(Cond, DL, MVT::i8), BTST); in getBitTestCondition() 1715 RHS = DAG.getConstant(Log2_64_Ceil(AndRHSVal), DL, LHS.getValueType()); in LowerAndToBTST() 1762 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC() 1771 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in TranslateM68kCC() 1916 DAG.getConstant(0, DL, Op.getValueType()), Op); in EmitTest() 1971 DAG.getConstant(Mask, DL, VT)); in EmitTest() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySelectionDAGInfo.cpp | 41 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemcpy() 69 SDValue MemIdx = DAG.getConstant(0, DL, MVT::i32); in EmitTargetCodeForMemset()
|