Home
last modified time | relevance | path

Searched refs:ConstIdx (Results 1 – 3 of 3) sorted by relevance

/external/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h421 const ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in getGEPCost() local
422 if (!ConstIdx) in getGEPCost()
424 ConstIdx = dyn_cast<ConstantInt>(Splat); in getGEPCost()
427 if (ConstIdx) in getGEPCost()
428 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in getGEPCost()
439 assert(ConstIdx && "Unexpected GEP index"); in getGEPCost()
440 uint64_t Field = ConstIdx->getZExtValue(); in getGEPCost()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp255 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable() local
256 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()
298 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex() local
299 if (ConstIdx == nullptr || !ConstIdx->isZero()) in hasOnlyOneNonZeroIndex()
DNaryReassociate.cpp320 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable() local
321 BaseOffset += ConstIdx->getSExtValue() * ElementSize; in isGEPFoldable()