Home
last modified time | relevance | path

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

/freebsd/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()
78 return Result ? Result : Constant::getNullValue(IntIdxTy); in emitGEPOffset()
H A DConstantFolding.cpp848 Type *IntIdxTy = DL.getIndexType(ResultTy); in CastGEPIndices() local
849 Type *IntIdxScalarTy = IntIdxTy->getScalarType(); in CastGEPIndices()
860 Ops[i]->getType()->isVectorTy() ? IntIdxTy : IntIdxScalarTy; in CastGEPIndices()
897 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in SymbolicallyEvaluateGEP() local
903 unsigned BitWidth = DL.getTypeSizeInBits(IntIdxTy); in SymbolicallyEvaluateGEP()
1512 Type *IntIdxTy = DL.getIndexType(Ptr->getType()); in ConstantFoldCastOperand() local
1513 if (Sub && Sub->getType() == IntIdxTy && in ConstantFoldCastOperand()
1517 ConstantExpr::getPtrToInt(Ptr, IntIdxTy), Sub->getOperand(1)); in ConstantFoldCastOperand()
H A DScalarEvolution.cpp3730 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() local
3758 const SCEV *FieldOffset = getOffsetOfExpr(IntIdxTy, STy, FieldNo); in getGEPExpr()
3774 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
3776 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h230 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); in visitPtr() local
232 Offset = APInt(IntIdxTy->getBitWidth(), 0); in visitPtr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp741 Type *IntIdxTy = DL->getIndexType(StorePtr->getType()); in processLoopStores() local
742 const SCEV *StoreSizeSCEV = SE->getConstant(IntIdxTy, StoreSize); in processLoopStores()
1037 Type *IntIdxTy = DL->getIndexType(DestPtr->getType()); in processLoopStridedStore() local
1043 Start = getStartForNegStride(Start, BECount, IntIdxTy, StoreSizeSCEV, SE); in processLoopStridedStore()
1087 SE->getTripCountFromExitCount(BECount, IntIdxTy, CurLoop); in processLoopStridedStore()
1093 Value *TripCount = Expander.expandCodeFor(TripCountS, IntIdxTy, in processLoopStridedStore()
1105 Builder.getIntN(IntIdxTy->getIntegerBitWidth(), in processLoopStridedStore()
1113 getNumBytes(BECount, IntIdxTy, StoreSizeSCEV, CurLoop, DL, SE); in processLoopStridedStore()
1120 Expander.expandCodeFor(NumBytesS, IntIdxTy, Preheader->getTerminator()); in processLoopStridedStore()
1145 {DestInt8PtrTy, PatternValue->getType(), IntIdxTy}, in processLoopStridedStore()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp428 IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(A.getType())); in visitArgPtr() local
430 Offset = APInt(IntIdxTy->getBitWidth(), 0); in visitArgPtr()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp4952 VectorType *IntIdxTy = VectorType::getInteger(FltIdxTy); in UpgradeIntrinsicCall() local
4953 Args[2] = Builder.CreateBitCast(Args[2], IntIdxTy); in UpgradeIntrinsicCall()