Returns true if the memory operations A and B are consecutive. This is a simple API that does not depend on the analysis pass.
Declared in <llvm/Analysis/LoopAccessAnalysis.h>
bool
isConsecutiveAccess(
Value* A,
Value* B,
DataLayout const& DL,
ScalarEvolution& SE,
bool CheckType = true);
True if the memory operations are consecutive.
| Name | Description |
|---|---|
| A | First memory operation or pointer value. |
| B | Second memory operation or pointer value. |
| DL | Data layout used to compute type sizes and offsets. |
| SE | ScalarEvolution used to compare the addresses. |
| CheckType | When true, require the accessed types to match. |