ΒΆbool getIndexExpressionsFromGEP(
    llvm::ScalarEvolution& SE,
    const llvm::GetElementPtrInst* GEP,
    SmallVectorImpl<const llvm::SCEV*>&
        Subscripts,
    SmallVectorImpl<int>& Sizes)

Description

Gathers the individual index expressions from a GEP instruction. This function optimistically assumes the GEP references into a fixed size array. If this is actually true, this function returns a list of array subscript expressions in \p Subscripts and a list of integers describing the size of the individual array dimensions in \p Sizes. Both lists have either equal length or the size list is one element shorter in case there is no known size available for the outermost array dimension. Returns true if successful and false otherwise.

Declared at: llvm/include/llvm/Analysis/Delinearization.h:123

Parameters

llvm::ScalarEvolution& SE
const llvm::GetElementPtrInst* GEP
SmallVectorImpl<const llvm::SCEV*>& Subscripts
SmallVectorImpl<int>& Sizes