[#llvm-PatternMatch-PtrAdd_match] = xref:llvm.adoc[llvm]::xref:llvm/PatternMatch.adoc[PatternMatch]::PtrAdd_match :relfileprefix: ../../ :mrdocs: Matches a GEP of i8 (ptradd) against pointer and offset patterns. == Synopsis Declared in `<llvm/IR/PatternMatch.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename PointerOpTy, typename OffsetOpTy> struct PtrAdd_match; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/PtrAdd_match/2constructor.adoc[`PtrAdd_match`] [.small]#[constructor]# | Construct a matcher for the pointer and offset. | xref:llvm/PatternMatch/PtrAdd_match/match.adoc[`match`] | Match `V` as an i8 GEP with matching pointer and offset. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/PtrAdd_match/OffsetOp.adoc[`OffsetOp`] | Sub‐pattern for the byte offset. | xref:llvm/PatternMatch/PtrAdd_match/PointerOp.adoc[`PointerOp`] | Sub‐pattern for the pointer operand. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/m_PtrAdd.adoc[`m_PtrAdd`] | Matches GEP with i8 source element type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#