Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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()
799 ConstantRange Access = Found->sextOrTrunc(Use.Range.getBitWidth()); in resolveAllCalls()
H A DLoads.cpp135 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer()
H A DBasicAliasAnalysis.cpp621 CIdx->getValue().sextOrTrunc(MaxIndexSize); in DecomposeGEPExpression()
1236 CR = Index.Val.evaluateWith(CR).sextOrTrunc(OffsetRange.getBitWidth()); in aliasGEP()
H A DLoopAccessAnalysis.cpp1468 OffsetA = OffsetA.sextOrTrunc(IdxWidth); in getPointersDiff()
1469 OffsetB = OffsetB.sextOrTrunc(IdxWidth); in getPointersDiff()
H A DInlineCost.cpp1326 Offset += OpC->getValue().sextOrTrunc(IntPtrWidth) * TypeSize; in accumulateGEPOffset()
/llvm-project-15.0.7/llvm/lib/IR/
H A DOperator.cpp102 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
179 Index = Index.sextOrTrunc(BitWidth); in collectOffset()
H A DValue.cpp742 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.cpp1669 NewInt = NewInt.sextOrTrunc(Op.getArg(0)); in constantFold()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp277 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in mul()
332 return APFixedPoint(Result.sextOrTrunc(CommonFXSema.getWidth()), in div()
367 return APFixedPoint(Result.sextOrTrunc(Sema.getWidth()), Sema); in shl()
H A DAPInt.cpp1002 APInt APInt::sextOrTrunc(unsigned width) const { in sextOrTrunc() function in APInt
2786 if (C.sextOrTrunc(RangeWidth).isZero()) { in SolveQuadraticEquationWrap()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantRange.h376 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
/llvm-project-15.0.7/llvm/unittests/Support/
H A DKnownBitsTest.cpp468 InitKnownBits(Baseline, Input.sextOrTrunc(Size)); in TEST()
469 Test = Test.sextOrTrunc(Size); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DKnownBits.h197 KnownBits sextOrTrunc(unsigned BitWidth) const { in sextOrTrunc() function
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DIntegral.h111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed);
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp349 OffsetA = OffsetA.sextOrTrunc(NewPtrBitWidth); in areConsecutivePointers()
350 OffsetB = OffsetB.sextOrTrunc(NewPtrBitWidth); in areConsecutivePointers()
351 PtrDelta = PtrDelta.sextOrTrunc(NewPtrBitWidth); in areConsecutivePointers()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp491 Polynomial &sextOrTrunc(unsigned n) { in sextOrTrunc() function in __anon07e87e4b0111::Polynomial
1021 Result.sextOrTrunc(PointerBits); in computePolynomialFromPointer()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp391 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h109 return APSInt(sextOrTrunc(width), IsUnsigned); in extOrTrunc()
H A DAPInt.h1256 APInt sextOrTrunc(unsigned width) const;
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h963 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize; in getGEPCost()
976 BaseOffset.sextOrTrunc(64).getSExtValue(), HasBaseReg, Scale, in getGEPCost()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DOpImplementation.h630 (IntT)uintResult.sextOrTrunc(sizeof(IntT) * CHAR_BIT).getLimitedValue(); in parseOptionalInteger()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp300 intAttr.getValue().sextOrTrunc(llvmType->getIntegerBitWidth())); in getLLVMConstant()

12