[#llvm-createSeparateConstOffsetFromGEPPass] = xref:llvm.adoc[llvm]::createSeparateConstOffsetFromGEPPass :relfileprefix: ../ :mrdocs: Create a pass that splits GEPs into a base and constant offset. == Synopsis Declared in `<llvm/Transforms/Scalar.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/FunctionPass.adoc[FunctionPass]* createSeparateConstOffsetFromGEPPass(bool LowerGEP = false); ---- == Description Improves CSE by separating constant offsets from GEP address calculations. == Return Value The newly created FunctionPass. == Parameters [cols="1,4"] |=== | Name| Description | *LowerGEP* | If true, also lower multi‐index GEPs to single‐index GEPs and extract struct‐field offsets. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#