/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Operator.cpp | 128 Offset += CI->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 136 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 210 Index = Index.sextOrTrunc(BitWidth); in collectOffset()
|
H A D | Value.cpp | 754 APInt GEPOffsetST = GEPOffset.sextOrTrunc(BitWidth); in stripAndAccumulateConstantOffsets()
|
H A D | ConstantRange.cpp | 925 ConstantRange ConstantRange::sextOrTrunc(uint32_t DstTySize) const { in sextOrTrunc() function in ConstantRange
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | PtrUseVisitor.cpp | 38 Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth()); in adjustOffsetForGEP()
|
H A D | StackSafetyAnalysis.cpp | 173 Mul = Mul.sextOrTrunc(PointerSize); in getStaticAllocaSizeRange() 309 return Offset.sextOrTrunc(PointerSize); in offsetFrom() 360 Sizes = Sizes.sextOrTrunc(PointerSize); in getMemIntrinsicAccessRange() 831 ConstantRange Access = Found->sextOrTrunc(Use.Range.getBitWidth()); in resolveAllCalls()
|
H A D | Loads.cpp | 74 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer()
|
H A D | BasicAliasAnalysis.cpp | 682 CIdx->getValue().sextOrTrunc(MaxIndexSize); in DecomposeGEPExpression() 1266 CR = Index.Val.evaluateWith(CR).sextOrTrunc(OffsetRange.getBitWidth()); in aliasGEP()
|
H A D | ConstantFolding.cpp | 896 InRange = InRange->sextOrTrunc(BitWidth); in SymbolicallyEvaluateGEP() 921 InRange = InRange->sextOrTrunc(BitWidth).subtract(Offset); in SymbolicallyEvaluateGEP() 3193 return ConstantInt::get(Ty->getContext(), Product.sextOrTrunc(Width)); in ConstantFoldScalarCall3()
|
H A D | LoopAccessAnalysis.cpp | 1595 OffsetA = OffsetA.sextOrTrunc(IdxWidth); in getPointersDiff() 1596 OffsetB = OffsetB.sextOrTrunc(IdxWidth); in getPointersDiff()
|
H A D | InstructionSimplify.cpp | 724 return Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(V->getType())); in stripAndComputeConstantOffsets() 6154 APInt OffsetInt = OffsetConstInt->getValue().sextOrTrunc( in simplifyRelativeLoad() 7046 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoadStoreVectorizer.cpp | 1493 OffsetA = OffsetA.sextOrTrunc(NewPtrBitWidth); in getConstantOffset() 1494 OffsetB = OffsetB.sextOrTrunc(NewPtrBitWidth); in getConstantOffset() 1496 return (OffsetB - OffsetA).sextOrTrunc(OrigBitWidth); in getConstantOffset() 1506 APInt Dist = DistRange.getSingleElement()->sextOrTrunc(NewPtrBitWidth); in getConstantOffset() 1507 return (OffsetB - OffsetA + Dist).sextOrTrunc(OrigBitWidth); in getConstantOffset() 1514 .sextOrTrunc(OrigBitWidth); in getConstantOffset()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 288 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in mul() 349 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in div() 384 return APFixedPoint(Result.sextOrTrunc(Sema.getWidth()), Sema); in shl()
|
H A D | APInt.cpp | 1010 APInt APInt::sextOrTrunc(unsigned width) const { in sextOrTrunc() function in APInt 2793 if (C.sextOrTrunc(RangeWidth).isZero()) { in SolveQuadraticEquationWrap()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | IntegralAP.h | 109 return IntegralAP<Signed>(V.V.sextOrTrunc(NumBits)); 158 return IntegralAP(V.trunc(BitWidth).sextOrTrunc(this->bitWidth())); in truncate()
|
H A D | Integral.h | 111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | GlobalSplit.cpp | 81 ConstantRange SrcInRange = InRange->sextOrTrunc(IndexWidth).add(Offset); in splitGlobal()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Evaluator.cpp | 219 Offset = Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(P->getType())); in ComputeLoadResult() 319 Offset = Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(Ptr->getType())); in EvaluateBlock()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 385 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 492 Polynomial &sextOrTrunc(unsigned n) { in sextOrTrunc() function in __anon71941b1b0111::Polynomial 1027 Result.sextOrTrunc(PointerBits); in computePolynomialFromPointer()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 195 KnownBits sextOrTrunc(unsigned BitWidth) const { in sextOrTrunc() function
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APSInt.h | 123 return APSInt(sextOrTrunc(width), IsUnsigned); in extOrTrunc()
|
H A D | APInt.h | 1286 APInt sextOrTrunc(unsigned width) const;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 512 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 1108 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost() 1135 BaseOffset.sextOrTrunc(64).getSExtValue(), HasBaseReg, Scale, in getGEPCost()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | Utils.cpp | 680 return C1 + C2.sextOrTrunc(C1.getBitWidth()); in ConstantFoldBinOp()
|