Home
last modified time | relevance | path

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

/external/compiler-rt/lib/esan/
Desan_circular_buffer.h50 uptr ArrayIdx = (StartIdx + Idx) % Capacity; variable
51 return Data[ArrayIdx];
55 uptr ArrayIdx = (StartIdx + Idx) % Capacity; variable
56 return Data[ArrayIdx];
60 uptr ArrayIdx = (StartIdx + Count) % Capacity; in push_back() local
61 Data[ArrayIdx] = Item; in push_back()
69 uptr ArrayIdx = (StartIdx + Count - 1) % Capacity; in back() local
70 return Data[ArrayIdx]; in back()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
447 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument
453 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
454 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
468 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
472 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
505 Value *ArrayIdx = GEP->getOperand(I); in allocateCandidatesAndFindBasisForGEP() local
507 if (ArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP()
511 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
517 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp221 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
483 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument
489 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
490 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
504 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
508 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
539 Value *ArrayIdx = GEP->getOperand(I); in allocateCandidatesAndFindBasisForGEP() local
541 if (ArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP()
545 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
551 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp234 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
496 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument
502 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
503 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
517 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
521 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
552 Value *ArrayIdx = GEP->getOperand(I); in allocateCandidatesAndFindBasisForGEP() local
554 if (ArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP()
558 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
564 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx))) && in allocateCandidatesAndFindBasisForGEP()
/external/llvm-project/polly/lib/Exchange/
DJSONExporter.cpp637 unsigned ArrayIdx = 0; in importArrays() local
641 if (ArrayIdx + 1 > Arrays.size()) { in importArrays()
645 if (!areArraysEqual(SAI, *Arrays[ArrayIdx].getAsObject())) { in importArrays()
649 ArrayIdx++; in importArrays()
652 for (; ArrayIdx < Arrays.size(); ArrayIdx++) { in importArrays()
653 const json::Object &Array = *Arrays[ArrayIdx].getAsObject(); in importArrays()
/external/llvm-project/polly/include/polly/
DScopInfo.h1871 long ArrayIdx = 0; variable
2625 long getNextArrayIdx() { return ArrayIdx++; } in getNextArrayIdx()