[#llvm-GetPointerBaseWithConstantOffset-08] = xref:llvm.adoc[llvm]::GetPointerBaseWithConstantOffset :relfileprefix: ../ :mrdocs: `GetPointerBaseWithConstantOffset` overloads == Synopses Declared in `<llvm/Analysis/ValueTracking.h>` Analyze the specified pointer to see if it can be expressed as a base pointer plus a constant offset. Return the base and offset to the caller. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Value.adoc[Value]* xref:llvm/GetPointerBaseWithConstantOffset-038.adoc[GetPointerBaseWithConstantOffset]( xref:llvm/Value.adoc[Value]* Ptr, int64_t& Offset, xref:llvm/DataLayout.adoc[DataLayout] const& DL, bool AllowNonInbounds = true); ---- [.small]#xref:llvm/GetPointerBaseWithConstantOffset-038.adoc[_» more..._]# Const overload of GetPointerBaseWithConstantOffset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Value.adoc[Value] const* xref:llvm/GetPointerBaseWithConstantOffset-039.adoc[GetPointerBaseWithConstantOffset]( xref:llvm/Value.adoc[Value] const* Ptr, int64_t& Offset, xref:llvm/DataLayout.adoc[DataLayout] const& DL, bool AllowNonInbounds = true); ---- [.small]#xref:llvm/GetPointerBaseWithConstantOffset-039.adoc[_» more..._]# == Return Value Base pointer after stripping constant offsets. == Parameters [cols="1,4"] |=== | Name| Description | *Ptr* | Pointer to decompose into base plus offset. | *Offset* | Output constant offset from the returned base. | *DL* | Data layout used for pointer index sizes. | *AllowNonInbounds* | Whether non‐inbounds GEPs may contribute offsets. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#