Home
last modified time | relevance | path

Searched refs:getIndexTypeSizeInBits (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp217 APInt Offset(DL.getIndexTypeSizeInBits(P->getType()), 0); in ComputeLoadResult()
220 Offset = Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(P->getType())); in ComputeLoadResult()
294 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in EvaluateBlock()
297 Offset = Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(Ptr->getType())); in EvaluateBlock()
377 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in EvaluateBlock()
H A DVNCoercion.cpp310 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst()
451 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getMemInstValueForLoad()
475 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getConstantMemInstValueForLoad()
H A DCallPromotionUtils.cpp695 APInt VTableOffset(DL.getIndexTypeSizeInBits(VTableEntryPtr->getType()), 0); in tryPromoteCall()
702 APInt ObjectOffset(DL.getIndexTypeSizeInBits(Object->getType()), 0); in tryPromoteCall()
715 APInt VTableOffsetGVBase(DL.getIndexTypeSizeInBits(VTablePtr->getType()), 0); in tryPromoteCall()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPtrUseVisitor.cpp36 APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0); in adjustOffsetForGEP()
H A DLoads.cpp92 APInt Offset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in isDereferenceableAndAlignedPointer()
295 APInt EltSize(DL.getIndexTypeSizeInBits(Ptr->getType()), in isDereferenceableAndAlignedInLoop()
520 APInt Size(DL.getIndexTypeSizeInBits(V->getType()), TySize.getFixedValue()); in isSafeToLoadUnconditionally()
559 APInt LoadOffset(DL.getIndexTypeSizeInBits(LoadPtr->getType()), 0); in areNonOverlapSameBaseLoadAndStore()
560 APInt StoreOffset(DL.getIndexTypeSizeInBits(StorePtr->getType()), 0); in areNonOverlapSameBaseLoadAndStore()
H A DMemoryBuiltins.cpp378 const unsigned IntTyBits = DL.getIndexTypeSizeInBits(CB->getType()); in getAllocSize()
771 unsigned InitialIntTyBits = DL.getIndexTypeSizeInBits(V->getType()); in computeImpl()
810 IntTyBits = DL.getIndexTypeSizeInBits(V->getType()); in computeImpl()
H A DConstantFolding.cpp312 unsigned BitWidth = DL.getIndexTypeSizeInBits(GV->getType()); in IsConstantOffsetFromGlobal()
321 unsigned BitWidth = DL.getIndexTypeSizeInBits(GV->getType()); in IsConstantOffsetFromGlobal()
341 unsigned BitWidth = DL.getIndexTypeSizeInBits(GEP->getType()); in IsConstantOffsetFromGlobal()
768 APInt Offset(DL.getIndexTypeSizeInBits(C->getType()), 0); in ConstantFoldLoadFromConstPtr()
1272 unsigned IndexWidth = DL.getIndexTypeSizeInBits(Ops0->getType()); in ConstantFoldCompareInstOperands()
1500 unsigned BitWidth = DL.getIndexTypeSizeInBits(GEP->getType()); in ConstantFoldCastOperand()
H A DBasicAliasAnalysis.cpp598 unsigned IndexSize = DL.getIndexTypeSizeInBits(V->getType()); in DecomposeGEPExpression()
621 if (DL.getIndexTypeSizeInBits(NewV->getType()) != IndexSize) { in DecomposeGEPExpression()
H A DInstructionSimplify.cpp677 APInt Offset = APInt::getZero(DL.getIndexTypeSizeInBits(V->getType())); in stripAndComputeConstantOffsets()
681 return Offset.sextOrTrunc(DL.getIndexTypeSizeInBits(V->getType())); in stripAndComputeConstantOffsets()
2708 unsigned IndexSize = DL.getIndexTypeSizeInBits(LHS->getType()); in computePointerICmp()
6194 DL.getIndexTypeSizeInBits(Ptr->getType())); in simplifyRelativeLoad()
6493 Q.DL.getIndexTypeSizeInBits(Op0->getType()) && in simplifyBinaryIntrinsic()
7083 APInt Offset(Q.DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in simplifyLoadInst()
7089 Offset = Offset.sextOrTrunc(Q.DL.getIndexTypeSizeInBits(PtrOp->getType())); in simplifyLoadInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILCBufferAccess.cpp95 APInt ConstantOffset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in getOffsetForCBufferGEP()
219 DL.getIndexTypeSizeInBits(MCI->getSource()->getType()), Offset); in copyArrayElemsForMemCpy()
H A DDXILResourceAccess.cpp39 APInt ConstantOffset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in calculateGEPOffset()
H A DDXILFlattenArrays.cpp256 unsigned BitWidth = DL.getIndexTypeSizeInBits(GEP.getType()); in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h422 LLVM_ABI unsigned getIndexTypeSizeInBits(Type *Ty) const;
428 return getIndexTypeSizeInBits(Ty); in getAddressSizeInBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp684 APInt Offset1(DL.getIndexTypeSizeInBits(Load1Ptr->getType()), 0); in foldLoadsRecursive()
690 APInt Offset2(DL.getIndexTypeSizeInBits(Load2Ptr->getType()), 0); in foldLoadsRecursive()
818 APInt Offset1(DL.getIndexTypeSizeInBits(Load1Ptr->getType()), 0); in foldConsecutiveLoads()
905 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in getStrideAndModOffsetOfGEP()
964 unsigned BW = DL.getIndexTypeSizeInBits(PtrOp->getType()); in foldPatternedLoads()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp104 APInt APOffset(DL.getIndexTypeSizeInBits(Ptr->getType()), Offset, in createByteGEP()
374 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in doPromotion()
551 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in findArgParts()
H A DGlobalSplit.cpp52 unsigned IndexWidth = DL.getIndexTypeSizeInBits(GV.getType()); in splitGlobal()
H A DGlobalOpt.cpp313 APInt Offset(DL.getIndexTypeSizeInBits(PtrOp->getType()), 0); in CleanupConstantGlobalUsers()
382 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in collectSRATypes()
619 APInt Offset(DL.getIndexTypeSizeInBits(Ptr->getType()), 0); in SRAGlobal()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp735 assert(BitWidth == DL.getIndexTypeSizeInBits(getType()) && in stripAndAccumulateConstantOffsets()
755 APInt GEPOffset(DL.getIndexTypeSizeInBits(V->getType()), 0); in stripAndAccumulateConstantOffsets()
1060 APInt Offset1(DL.getIndexTypeSizeInBits(Ptr1->getType()), 0); in getPointerOffsetFrom()
1061 APInt Offset2(DL.getIndexTypeSizeInBits(Ptr2->getType()), 0); in getPointerOffsetFrom()
H A DDataLayout.cpp753 unsigned DataLayout::getIndexTypeSizeInBits(Type *Ty) const { in getIndexTypeSizeInBits() function in DataLayout
885 unsigned NumBits = getIndexTypeSizeInBits(Ty); in getIndexType()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1421 APInt APOff(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in replaceLDSVariablesWithStruct()
1510 unsigned BitWidth = DL.getIndexTypeSizeInBits(GEP->getType()); in refineUsesAlignmentAndAA()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp314 unsigned IndexSize = DL.getIndexTypeSizeInBits(I->getType()); in HasAddressTaken()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPreserveStaticOffset.cpp377 APInt Offset(DL.getIndexTypeSizeInBits(PtrTy), 0); in foldGEPChainAsU8Access()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h347 APInt OffsetAPInt(DL.getIndexTypeSizeInBits(Ptr->getType()), 0);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergeICmps.cpp162 APInt Offset = APInt(DL.getIndexTypeSizeInBits(Addr->getType()), 0); in visitICmpLoadOperand()
H A DConstraintElimination.cpp405 ConstantOffset = APInt(DL.getIndexTypeSizeInBits(BasePtr->getType()), 0); in OffsetResult()
457 if (DL.getIndexTypeSizeInBits(GEP.getPointerOperand()->getType()) > 64) in decomposeGEP()

12