Home
last modified time | relevance | path

Searched refs:sextOrTrunc (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp128 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 DValue.cpp754 APInt GEPOffsetST = GEPOffset.sextOrTrunc(BitWidth); in stripAndAccumulateConstantOffsets()
H A DConstantRange.cpp925 ConstantRange ConstantRange::sextOrTrunc(uint32_t DstTySize) const { in sextOrTrunc() function in ConstantRange
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPtrUseVisitor.cpp38 Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth()); in adjustOffsetForGEP()
H A DStackSafetyAnalysis.cpp173 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 DLoads.cpp74 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer()
H A DBasicAliasAnalysis.cpp682 CIdx->getValue().sextOrTrunc(MaxIndexSize); in DecomposeGEPExpression()
1266 CR = Index.Val.evaluateWith(CR).sextOrTrunc(OffsetRange.getBitWidth()); in aliasGEP()
H A DConstantFolding.cpp896 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 DLoopAccessAnalysis.cpp1595 OffsetA = OffsetA.sextOrTrunc(IdxWidth); in getPointersDiff()
1596 OffsetB = OffsetB.sextOrTrunc(IdxWidth); in getPointersDiff()
H A DInstructionSimplify.cpp724 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 DLoadStoreVectorizer.cpp1493 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 DAPFixedPoint.cpp288 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 DAPInt.cpp1010 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 DIntegralAP.h109 return IntegralAP<Signed>(V.V.sextOrTrunc(NumBits));
158 return IntegralAP(V.trunc(BitWidth).sextOrTrunc(this->bitWidth())); in truncate()
H A DIntegral.h111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp81 ConstantRange SrcInRange = InRange->sextOrTrunc(IndexWidth).add(Offset); in splitGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp219 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 DConstantRange.h385 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp492 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 DKnownBits.h195 KnownBits sextOrTrunc(unsigned BitWidth) const { in sextOrTrunc() function
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h123 return APSInt(sextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1286 APInt sextOrTrunc(unsigned width) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp512 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1108 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 DUtils.cpp680 return C1 + C2.sextOrTrunc(C1.getBitWidth()); in ConstantFoldBinOp()

12