Home
last modified time | relevance | path

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

12

/freebsd-14.2/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()
285 return Offset.sextOrTrunc(PointerSize); in offsetFrom()
336 Sizes = Sizes.sextOrTrunc(PointerSize); in getMemIntrinsicAccessRange()
809 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.cpp651 CIdx->getValue().sextOrTrunc(MaxIndexSize); in DecomposeGEPExpression()
1193 CR = Index.Val.evaluateWith(CR).sextOrTrunc(OffsetRange.getBitWidth()); in aliasGEP()
H A DLoopAccessAnalysis.cpp1599 OffsetA = OffsetA.sextOrTrunc(IdxWidth); in getPointersDiff()
1600 OffsetB = OffsetB.sextOrTrunc(IdxWidth); in getPointersDiff()
H A DInstructionSimplify.cpp723 return Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(V->getType())); in stripAndComputeConstantOffsets()
6112 APInt OffsetInt = OffsetConstInt->getValue().sextOrTrunc( in simplifyRelativeLoad()
6963 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
H A DInlineCost.cpp1433 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp113 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
187 Index = Index.sextOrTrunc(BitWidth); in collectOffset()
H A DValue.cpp753 APInt GEPOffsetST = GEPOffset.sextOrTrunc(BitWidth); in stripAndAccumulateConstantOffsets()
H A DConstantRange.cpp869 ConstantRange ConstantRange::sextOrTrunc(uint32_t DstTySize) const { in sextOrTrunc() function in ConstantRange
H A DDebugInfoMetadata.cpp2000 NewInt = NewInt.sextOrTrunc(Op.getArg(0)); in constantFold()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1494 OffsetA = OffsetA.sextOrTrunc(NewPtrBitWidth); in getConstantOffset()
1495 OffsetB = OffsetB.sextOrTrunc(NewPtrBitWidth); in getConstantOffset()
1497 return (OffsetB - OffsetA).sextOrTrunc(OrigBitWidth); in getConstantOffset()
1507 APInt Dist = DistRange.getSingleElement()->sextOrTrunc(NewPtrBitWidth); in getConstantOffset()
1508 return (OffsetB - OffsetA + Dist).sextOrTrunc(OrigBitWidth); in getConstantOffset()
1515 .sextOrTrunc(OrigBitWidth); in getConstantOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp282 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in mul()
343 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in div()
378 return APFixedPoint(Result.sextOrTrunc(Sema.getWidth()), Sema); in shl()
H A DAPInt.cpp1010 APInt APInt::sextOrTrunc(unsigned width) const { in sextOrTrunc() function in APInt
2801 if (C.sextOrTrunc(RangeWidth).isZero()) { in SolveQuadraticEquationWrap()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h377 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp492 Polynomial &sextOrTrunc(unsigned n) { in sextOrTrunc() function in __anona84ed7510111::Polynomial
1027 Result.sextOrTrunc(PointerBits); in computePolynomialFromPointer()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h197 KnownBits sextOrTrunc(unsigned BitWidth) const { in sextOrTrunc() function
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegral.h111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
H A DIntegralAP.h109 return IntegralAP<Signed>(V.V.sextOrTrunc(NumBits));
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h123 return APSInt(sextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1278 APInt sextOrTrunc(unsigned width) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp483 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1065 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost()
1092 BaseOffset.sextOrTrunc(64).getSExtValue(), HasBaseReg, Scale, in getGEPCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp568 uint64_t IdxN = CI->getValue().sextOrTrunc(64).getSExtValue(); in selectGetElementPtr()

12