LLVM 24.0.0git
llvm::MIPatternMatch::LoadOp_match< Class, PtrP > Struct Template Reference

Match a load of type Class, binding its pointer operand (like IR's m_Load), and optionally the instruction and/or its MachineMemOperand. More...

#include "llvm/CodeGen/GlobalISel/MIPatternMatch.h"

Public Member Functions

 LoadOp_match (const PtrP &Ptr)
 LoadOp_match (const PtrP &Ptr, MMORef MMO)
 LoadOp_match (Class *&Inst, const PtrP &Ptr)
 LoadOp_match (Class *&Inst, const PtrP &Ptr, MMORef MMO)
bool match (const MachineRegisterInfo &MRI, Register Reg)

Public Attributes

PtrP Ptr
Class ** InstOut = nullptr
const MachineMemOperand ** MMOOut = nullptr

Detailed Description

template<typename Class, typename PtrP>
struct llvm::MIPatternMatch::LoadOp_match< Class, PtrP >

Match a load of type Class, binding its pointer operand (like IR's m_Load), and optionally the instruction and/or its MachineMemOperand.

Definition at line 592 of file MIPatternMatch.h.

Constructor & Destructor Documentation

◆ LoadOp_match() [1/4]

template<typename Class, typename PtrP>
llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::LoadOp_match ( const PtrP & Ptr)
inline

Definition at line 597 of file MIPatternMatch.h.

References Ptr.

◆ LoadOp_match() [2/4]

template<typename Class, typename PtrP>
llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::LoadOp_match ( const PtrP & Ptr,
MMORef MMO )
inline

Definition at line 598 of file MIPatternMatch.h.

References MMOOut, and Ptr.

◆ LoadOp_match() [3/4]

template<typename Class, typename PtrP>
llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::LoadOp_match ( Class *& Inst,
const PtrP & Ptr )
inline

Definition at line 599 of file MIPatternMatch.h.

References InstOut, and Ptr.

◆ LoadOp_match() [4/4]

template<typename Class, typename PtrP>
llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::LoadOp_match ( Class *& Inst,
const PtrP & Ptr,
MMORef MMO )
inline

Definition at line 600 of file MIPatternMatch.h.

References InstOut, MMOOut, and Ptr.

Member Function Documentation

◆ match()

template<typename Class, typename PtrP>
bool llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::match ( const MachineRegisterInfo & MRI,
Register Reg )
inline

Member Data Documentation

◆ InstOut

template<typename Class, typename PtrP>
Class** llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::InstOut = nullptr

Definition at line 594 of file MIPatternMatch.h.

Referenced by LoadOp_match(), LoadOp_match(), and match().

◆ MMOOut

template<typename Class, typename PtrP>
const MachineMemOperand** llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::MMOOut = nullptr

Definition at line 595 of file MIPatternMatch.h.

Referenced by LoadOp_match(), LoadOp_match(), and match().

◆ Ptr

template<typename Class, typename PtrP>
PtrP llvm::MIPatternMatch::LoadOp_match< Class, PtrP >::Ptr

Definition at line 593 of file MIPatternMatch.h.

Referenced by LoadOp_match(), LoadOp_match(), LoadOp_match(), LoadOp_match(), and match().


The documentation for this struct was generated from the following file: