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

Matches a G_CONSTANT and binds the defining instruction. More...

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

Public Member Functions

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

Public Attributes

Class *& Inst

Detailed Description

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

Matches a G_CONSTANT and binds the defining instruction.

Unlike m_ICst, this returns the instruction (not the value) and does not look through vector splats.

Definition at line 477 of file MIPatternMatch.h.

Constructor & Destructor Documentation

◆ GConstantMatch()

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

Definition at line 480 of file MIPatternMatch.h.

References Inst.

Member Function Documentation

◆ match()

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

Member Data Documentation

◆ Inst

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

Definition at line 478 of file MIPatternMatch.h.

Referenced by GConstantMatch(), and match().


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