Pass that splits GEPs into a variadic base and a constant offset.
Synopsis
Declared in <llvm/Transforms/Scalar/SeparateConstOffsetFromGEP.h>
class SeparateConstOffsetFromGEPPass
: public OptionalPassInfoMixin<SeparateConstOffsetFromGEPPass>
Description
Improves CSE and reg+immediate addressing by separating constant offsets from GEP address calculations. When LowerGEP is enabled, also lowers multi‐index GEPs to single‐index GEPs and extracts struct‐field offsets.
Base Classes
Name |
Description |
A CRTP mix‐in for passes that can be skipped. |
Member Functions
Name |
Description |
|
Construct a SeparateConstOffsetFromGEP pass. |
Print this pass's pipeline representation to |
|
Run SeparateConstOffsetFromGEP over the function. |
Static Member Functions
Name |
Description |
Return false; optional passes may be skipped. |
Created with MrDocs