Home
last modified time | relevance | path

Searched refs:IntIdxTy (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h32 Type *IntIdxTy = DL.getIndexType(GEP->getType()); variable
61 Offset = ConstantInt::get(IntIdxTy, Size);
64 if (IntIdxTy->isVectorTy() && !OpC->getType()->isVectorTy())
66 cast<VectorType>(IntIdxTy)->getElementCount(), OpC);
68 Constant *Scale = ConstantInt::get(IntIdxTy, Size);
70 ConstantExpr::getIntegerCast(OpC, IntIdxTy, true /*SExt*/);
76 if (IntIdxTy->isVectorTy() && !Op->getType()->isVectorTy())
78 cast<FixedVectorType>(IntIdxTy)->getNumElements(), Op);
81 if (Op->getType() != IntIdxTy)
85 Op = Builder->CreateMul(Op, ConstantInt::get(IntIdxTy, Size),
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h217 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); in visitPtr() local
219 Offset = APInt(IntIdxTy->getBitWidth(), 0); in visitPtr()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp785 Type *IntIdxTy = DL->getIndexType(StorePtr->getType()); in processLoopStores() local
786 const SCEV *StoreSizeSCEV = SE->getConstant(IntIdxTy, StoreSize); in processLoopStores()
1122 Type *IntIdxTy = DL->getIndexType(DestPtr->getType()); in processLoopStridedStore() local
1128 Start = getStartForNegStride(Start, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStridedStore()
1162 getNumBytes(BECount, IntIdxTy, StoreSizeSCEV, CurLoop, DL, SE); in processLoopStridedStore()
1170 Expander.expandCodeFor(NumBytesS, IntIdxTy, Preheader->getTerminator()); in processLoopStridedStore()
1344 Type *IntIdxTy = Builder.getIntNTy(DL->getIndexSizeInBits(StrAS)); in processLoopStoreOfLoopLoad() local
1358 getStartForNegStride(StrStart, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStoreOfLoopLoad()
1415 getStartForNegStride(LdStart, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStoreOfLoopLoad()
1451 getNumBytes(BECount, IntIdxTy, StoreSizeSCEV, CurLoop, DL, SE); in processLoopStoreOfLoopLoad()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp830 Type *IntIdxTy = DL.getIndexType(ResultTy); in CastGEPIndices() local
831 Type *IntIdxScalarTy = IntIdxTy->getScalarType(); in CastGEPIndices()
842 ? IntIdxTy in CastGEPIndices()
899 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in SymbolicallyEvaluateGEP() local
905 unsigned BitWidth = DL.getTypeSizeInBits(IntIdxTy); in SymbolicallyEvaluateGEP()
1443 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in ConstantFoldCastOperand() local
1444 if (Sub && Sub->getType() == IntIdxTy && in ConstantFoldCastOperand()
1448 ConstantExpr::getPtrToInt(Ptr, IntIdxTy), Sub->getOperand(1)); in ConstantFoldCastOperand()
H A DScalarEvolution.cpp3674 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() local
3700 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr()
3716 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
3718 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp465 Type *IntIdxTy = DL.getIndexType(PTy); in expandAddToGEP() local
480 const SCEV *ElSize = SE.getSizeOfExpr(IntIdxTy, ElTy); in expandAddToGEP()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAutoUpgrade.cpp3970 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy); in UpgradeIntrinsicCall() local
3971 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy); in UpgradeIntrinsicCall()