LLVM 22.0.0git
LegalizerInfo.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "legalizer-info"

Functions

static bool hasNoSimpleLoops (const LegalizeRule &Rule, const LegalityQuery &Q, const std::pair< unsigned, LLT > &Mutation)
static bool mutationIsSane (const LegalizeRule &Rule, const LegalityQuery &Q, std::pair< unsigned, LLT > Mutation)
static LLT getTypeFromTypeIdx (const MachineInstr &MI, const MachineRegisterInfo &MRI, unsigned OpIdx, unsigned TypeIdx)
 Helper function to get LLT for the given type index.

Variables

cl::opt< boolVerboseVerifyLegalizerInfo ("verbose-gisel-verify-legalizer-info", cl::desc("Print more information to dbgs about GlobalISel legalizer rules " "being verified"), cl::Hidden)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "legalizer-info"

Definition at line 30 of file LegalizerInfo.cpp.

Function Documentation

◆ getTypeFromTypeIdx()

LLT getTypeFromTypeIdx ( const MachineInstr & MI,
const MachineRegisterInfo & MRI,
unsigned OpIdx,
unsigned TypeIdx )
static

Helper function to get LLT for the given type index.

Definition at line 277 of file LegalizerInfo.cpp.

References assert(), MI, MRI, and OpIdx.

Referenced by llvm::LegalizerInfo::getAction().

◆ hasNoSimpleLoops()

◆ mutationIsSane()

Variable Documentation

◆ VerboseVerifyLegalizerInfo

cl::opt< bool > VerboseVerifyLegalizerInfo("verbose-gisel-verify-legalizer-info", cl::desc("Print more information to dbgs about GlobalISel legalizer rules " "being verified"), cl::Hidden) ( "verbose-gisel-verify-legalizer-info" ,
cl::desc("Print more information to dbgs about GlobalISel legalizer rules " "being verified") ,
cl::Hidden  )