Searched refs:IndexSize (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | VNCoercion.cpp | 390 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst() local 391 if (ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), DL)) in analyzeLoadFromClobberingMemInst() 561 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getMemInstValueForLoad() local 562 return ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), in getMemInstValueForLoad() 585 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getConstantMemInstValueForLoad() local 586 return ConstantFoldLoadFromConstPtr(Src, LoadTy, APInt(IndexSize, Offset), in getConstantMemInstValueForLoad()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BasicAliasAnalysis.cpp | 448 static APInt adjustToIndexSize(const APInt &Offset, unsigned IndexSize) { in adjustToIndexSize() argument 449 assert(IndexSize <= Offset.getBitWidth() && "Invalid IndexSize!"); in adjustToIndexSize() 450 unsigned ShiftBits = Offset.getBitWidth() - IndexSize; in adjustToIndexSize() 598 unsigned IndexSize = DL.getIndexSizeInBits(AS); in DecomposeGEPExpression() local 630 unsigned SExtBits = IndexSize > Width ? IndexSize - Width : 0; in DecomposeGEPExpression() 631 unsigned TruncBits = IndexSize < Width ? Width - IndexSize : 0; in DecomposeGEPExpression() 638 LE = LE.mul(APInt(IndexSize, TypeSize), GEPOp->isInBounds()); in DecomposeGEPExpression() 657 Scale = adjustToIndexSize(Scale, IndexSize); in DecomposeGEPExpression() 667 Decomposed.Offset = adjustToIndexSize(Decomposed.Offset, IndexSize); in DecomposeGEPExpression()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 340 unsigned IndexSize = PointerMemSize; in parseSpecifier() local 357 if (Error Err = getInt(Tok, IndexSize)) in parseSpecifier() 359 if (!IndexSize) in parseSpecifier() 365 assumeAligned(PointerPrefAlign), PointerMemSize, IndexSize)) in parseSpecifier()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 205 unsigned IndexSize = DL.getIndexTypeSizeInBits(I->getType()); in HasAddressTaken() local 206 APInt Offset(IndexSize, 0); in HasAddressTaken()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86TargetTransformInfo.cpp | 5060 unsigned IndexSize = DL.getPointerSizeInBits(); in getGSVectorCost() local 5062 if (IndexSize < 64 || !GEP) in getGSVectorCost() 5063 return IndexSize; in getGSVectorCost() 5068 return IndexSize; in getGSVectorCost() 5078 return IndexSize; // 64 in getGSVectorCost() 5085 unsigned IndexSize = (ST->hasAVX512() && VF >= 16) in getGSVectorCost() local 5090 IntegerType::get(SrcVTy->getContext(), IndexSize), VF); in getGSVectorCost()
|