LLVM 24.0.0git
llvm::MIPatternMatch::GInstrBind< Class > Struct Template Reference

Binds the defining instruction of Reg if it is a Class. More...

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

Public Member Functions

 GInstrBind (Class *&Inst)
bool match (const MachineRegisterInfo &MRI, Register Reg)

Public Attributes

Class *& Inst

Detailed Description

template<typename Class>
struct llvm::MIPatternMatch::GInstrBind< Class >

Binds the defining instruction of Reg if it is a Class.

Prefer the named helpers below so the opcode is spelled out at the call site.

Definition at line 510 of file MIPatternMatch.h.

Constructor & Destructor Documentation

◆ GInstrBind()

template<typename Class>
llvm::MIPatternMatch::GInstrBind< Class >::GInstrBind ( Class *& Inst)
inline

Definition at line 513 of file MIPatternMatch.h.

References Inst.

Member Function Documentation

◆ match()

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

Member Data Documentation

◆ Inst

template<typename Class>
Class*& llvm::MIPatternMatch::GInstrBind< Class >::Inst

Definition at line 511 of file MIPatternMatch.h.

Referenced by GInstrBind(), and match().


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