Searched refs:ArrayIdx (Results 1 – 2 of 2) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 233 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize, 489 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument 495 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex() 496 ArrayIdx, ElementSize, GEP); in factorArrayIndex() 510 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 514 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 545 Value *ArrayIdx = GEP->getOperand(I); in allocateCandidatesAndFindBasisForGEP() local 547 if (ArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP() 551 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP() 557 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 939 if (int64_t ArrayIdx = cast<ConstantInt>(Idx)->getSExtValue()) in getIndexedOffsetInType() local 940 Result += ArrayIdx * GTI.getSequentialElementStride(*this); in getIndexedOffsetInType()
|