Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp25 Type *IntIdxTy = DL.getIndexType(GEP->getType()); in emitGEPOffset() local
54 AddOffset(ConstantInt::get(IntIdxTy, Size)); in emitGEPOffset()
60 if (IntIdxTy->isVectorTy() && !Op->getType()->isVectorTy()) in emitGEPOffset()
62 cast<VectorType>(IntIdxTy)->getElementCount(), Op); in emitGEPOffset()
65 if (Op->getType() != IntIdxTy) in emitGEPOffset()
66 Op = Builder->CreateIntCast(Op, IntIdxTy, true, Op->getName() + ".c"); in emitGEPOffset()
69 Value *Scale = Builder->CreateTypeSize(IntIdxTy->getScalarType(), TSize); in emitGEPOffset()
70 if (IntIdxTy->isVectorTy()) in emitGEPOffset()
72 cast<VectorType>(IntIdxTy)->getElementCount(), Scale); in emitGEPOffset()
79 return Result ? Result : Constant::getNullValue(IntIdxTy); in emitGEPOffset()
H A DConstantFolding.cpp828 Type *IntIdxTy = DL.getIndexType(ResultTy); in CastGEPIndices() local
829 Type *IntIdxScalarTy = IntIdxTy->getScalarType(); in CastGEPIndices()
840 Ops[i]->getType()->isVectorTy() ? IntIdxTy : IntIdxScalarTy; in CastGEPIndices()
882 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in SymbolicallyEvaluateGEP() local
888 unsigned BitWidth = DL.getTypeSizeInBits(IntIdxTy); in SymbolicallyEvaluateGEP()
1415 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in ConstantFoldCastOperand() local
1416 if (Sub && Sub->getType() == IntIdxTy && in ConstantFoldCastOperand()
1420 ConstantExpr::getPtrToInt(Ptr, IntIdxTy), Sub->getOperand(1)); in ConstantFoldCastOperand()
H A DScalarEvolution.cpp3746 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() local
3772 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr()
3788 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
3790 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp712 Type *IntIdxTy = DL->getIndexType(StorePtr->getType()); in processLoopStores() local
713 const SCEV *StoreSizeSCEV = SE->getConstant(IntIdxTy, StoreSize); in processLoopStores()
1025 Type *IntIdxTy = DL->getIndexType(DestPtr->getType()); in processLoopStridedStore() local
1031 Start = getStartForNegStride(Start, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStridedStore()
1065 getNumBytes(BECount, IntIdxTy, StoreSizeSCEV, CurLoop, DL, SE); in processLoopStridedStore()
1073 Expander.expandCodeFor(NumBytesS, IntIdxTy, Preheader->getTerminator()); in processLoopStridedStore()
1262 Type *IntIdxTy = Builder.getIntNTy(DL->getIndexSizeInBits(StrAS)); in processLoopStoreOfLoopLoad() local
1276 getStartForNegStride(StrStart, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStoreOfLoopLoad()
1333 getStartForNegStride(LdStart, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStoreOfLoopLoad()
1369 getNumBytes(BECount, IntIdxTy, StoreSizeSCEV, CurLoop, DL, SE); in processLoopStoreOfLoopLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp4534 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy); in UpgradeIntrinsicCall() local
4535 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy); in UpgradeIntrinsicCall()