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

Match a load of type Class, matching its pointer operand and optionally binding 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)
template<typename OpTy>
bool match (const MachineRegisterInfo &MRI, OpTy &&Op)

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, matching its pointer operand and optionally binding the instruction and/or its MachineMemOperand.

Definition at line 582 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 587 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 588 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 589 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 590 of file MIPatternMatch.h.

References InstOut, MMOOut, and Ptr.

Member Function Documentation

◆ match()

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

Member Data Documentation

◆ InstOut

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

Definition at line 584 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 585 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 583 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: