Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h224 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); in visitPtr() local
226 Offset = APInt(IntIdxTy->getBitWidth(), 0); in visitPtr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1054 Type *IntIdxTy = DL->getIndexType(DestPtr->getType()); in processLoopStridedStore() local
1060 Start = getStartForNegStride(Start, BECount, IntIdxTy, StoreSize, SE); in processLoopStridedStore()
1094 getNumBytes(BECount, IntIdxTy, StoreSize, CurLoop, DL, SE); in processLoopStridedStore()
1102 Expander.expandCodeFor(NumBytesS, IntIdxTy, Preheader->getTerminator()); in processLoopStridedStore()
1115 Int8PtrTy, Int8PtrTy, IntIdxTy); in processLoopStridedStore()
1213 Type *IntIdxTy = Builder.getIntNTy(DL->getIndexSizeInBits(StrAS)); in processLoopStoreOfLoopLoad() local
1220 StrStart = getStartForNegStride(StrStart, BECount, IntIdxTy, StoreSize, SE); in processLoopStoreOfLoopLoad()
1276 LdStart = getStartForNegStride(LdStart, BECount, IntIdxTy, StoreSize, SE); in processLoopStoreOfLoopLoad()
1321 getNumBytes(BECount, IntIdxTy, StoreSize, CurLoop, DL, SE); in processLoopStoreOfLoopLoad()
1324 Expander.expandCodeFor(NumBytesS, IntIdxTy, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp838 Type *IntIdxTy = DL.getIndexType(ResultTy); in CastGEPIndices() local
839 Type *IntIdxScalarTy = IntIdxTy->getScalarType(); in CastGEPIndices()
850 ? IntIdxTy in CastGEPIndices()
915 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in SymbolicallyEvaluateGEP() local
921 assert((!CE || CE->getType() == IntIdxTy) && in SymbolicallyEvaluateGEP()
936 unsigned BitWidth = DL.getTypeSizeInBits(IntIdxTy); in SymbolicallyEvaluateGEP()
1017 NewIdxs.push_back(ConstantInt::get(IntIdxTy, 0)); in SymbolicallyEvaluateGEP()
1026 NewIdxs.push_back(ConstantInt::get(IntIdxTy, NewIdx)); in SymbolicallyEvaluateGEP()
H A DInstructionSimplify.cpp701 Type *IntIdxTy = DL.getIndexType(V->getType())->getScalarType(); in stripAndComputeConstantOffsets() local
702 APInt Offset = APInt::getNullValue(IntIdxTy->getIntegerBitWidth()); in stripAndComputeConstantOffsets()
707 IntIdxTy = DL.getIndexType(V->getType())->getScalarType(); in stripAndComputeConstantOffsets()
708 Offset = Offset.sextOrTrunc(IntIdxTy->getIntegerBitWidth()); in stripAndComputeConstantOffsets()
710 Constant *OffsetIntPtr = ConstantInt::get(IntIdxTy, Offset); in stripAndComputeConstantOffsets()
H A DScalarEvolution.cpp3595 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() local
3613 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr()
3629 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
3631 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp464 Type *IntIdxTy = DL.getIndexType(PTy); in expandAddToGEP() local
479 const SCEV *ElSize = SE.getSizeOfExpr(IntIdxTy, ElTy); in expandAddToGEP()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp3802 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy); in UpgradeIntrinsicCall() local
3803 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy); in UpgradeIntrinsicCall()