Home
last modified time | relevance | path

Searched refs:PtrIdxTy (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp452 Type *PtrIdxTy = DL->getIndexType(GEP->getType()); in tryReassociateGEPAtIndex() local
453 if (RHS->getType() != PtrIdxTy) in tryReassociateGEPAtIndex()
454 RHS = Builder.CreateSExtOrTrunc(RHS, PtrIdxTy); in tryReassociateGEPAtIndex()
457 RHS, ConstantInt::get(PtrIdxTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
H A DSeparateConstOffsetFromGEP.cpp809 Type *PtrIdxTy = DL->getIndexType(GEP->getType()); in canonicalizeArrayIndicesToIndexSize() local
815 if ((*I)->getType() != PtrIdxTy) { in canonicalizeArrayIndicesToIndexSize()
816 *I = CastInst::CreateIntegerCast(*I, PtrIdxTy, true, "idxprom", in canonicalizeArrayIndicesToIndexSize()
1152 Type *PtrIdxTy = DL->getIndexType(GEP->getType()); in splitGEP() local
1155 NewGEP, ConstantInt::get(PtrIdxTy, AccumulativeByteOffset, true), in splitGEP()
H A DStraightLineStrengthReduce.cpp481 IntegerType *PtrIdxTy = cast<IntegerType>(DL->getIndexType(I->getType())); in allocateCandidatesAndFindBasisForGEP() local
483 PtrIdxTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp229 Type *PtrIdxTy = IC.getDataLayout().getIndexType(AI.getType()); in simplifyAllocaArraySize() local
230 if (AI.getArraySize()->getType() != PtrIdxTy) { in simplifyAllocaArraySize()
231 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), PtrIdxTy, false); in simplifyAllocaArraySize()
H A DInstCombineCompares.cpp298 Type *PtrIdxTy = DL.getIndexType(GEP->getType()); in foldCmpLoadFromIndexedGlobal() local
299 unsigned OffsetSize = PtrIdxTy->getIntegerBitWidth(); in foldCmpLoadFromIndexedGlobal()
301 Idx = Builder.CreateTrunc(Idx, PtrIdxTy); in foldCmpLoadFromIndexedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6285 Type *PtrIdxTy = DL->getIndexType(GEP->getType()); in splitLargeGEPOffsets() local
6311 Value *BaseIndex = ConstantInt::get(PtrIdxTy, BaseOffset); in splitLargeGEPOffsets()
6353 Type *PtrIdxTy = DL->getIndexType(GEP->getType()); in splitLargeGEPOffsets() local
6365 Value *Index = ConstantInt::get(PtrIdxTy, Offset - BaseOffset); in splitLargeGEPOffsets()