LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::InstrAspect Struct Reference

Legalization is decided based on an instruction's opcode, which type slot we're considering, and what the existing type is. More...

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

Public Member Functions

 InstrAspect (unsigned Opcode, LLT Type)
 
 InstrAspect (unsigned Opcode, unsigned Idx, LLT Type)
 
bool operator== (const InstrAspect &RHS) const
 

Public Attributes

unsigned Opcode
 
unsigned Idx = 0
 
LLT Type
 

Detailed Description

Legalization is decided based on an instruction's opcode, which type slot we're considering, and what the existing type is.

These aspects are gathered together for convenience in the InstrAspect class.

Definition at line 84 of file LegacyLegalizerInfo.h.

Constructor & Destructor Documentation

◆ InstrAspect() [1/2]

llvm::InstrAspect::InstrAspect ( unsigned  Opcode,
LLT  Type 
)
inline

Definition at line 89 of file LegacyLegalizerInfo.h.

◆ InstrAspect() [2/2]

llvm::InstrAspect::InstrAspect ( unsigned  Opcode,
unsigned  Idx,
LLT  Type 
)
inline

Definition at line 90 of file LegacyLegalizerInfo.h.

Member Function Documentation

◆ operator==()

bool llvm::InstrAspect::operator== ( const InstrAspect RHS) const
inline

Definition at line 93 of file LegacyLegalizerInfo.h.

References Idx, Opcode, and RHS.

Member Data Documentation

◆ Idx

unsigned llvm::InstrAspect::Idx = 0

Definition at line 86 of file LegacyLegalizerInfo.h.

Referenced by operator==(), and llvm::LegacyLegalizerInfo::setAction().

◆ Opcode

unsigned llvm::InstrAspect::Opcode

Definition at line 85 of file LegacyLegalizerInfo.h.

Referenced by operator==(), and llvm::LegacyLegalizerInfo::setAction().

◆ Type

LLT llvm::InstrAspect::Type

Definition at line 87 of file LegacyLegalizerInfo.h.

Referenced by llvm::LegacyLegalizerInfo::setAction().


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