LLVM 22.0.0git
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 85 of file LegacyLegalizerInfo.h.

Constructor & Destructor Documentation

◆ InstrAspect() [1/2]

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

Definition at line 90 of file LegacyLegalizerInfo.h.

References Opcode, and Type.

Referenced by operator==().

◆ InstrAspect() [2/2]

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

Definition at line 91 of file LegacyLegalizerInfo.h.

References Idx, Opcode, and Type.

Member Function Documentation

◆ operator==()

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

Definition at line 94 of file LegacyLegalizerInfo.h.

References Idx, InstrAspect(), Opcode, RHS, and Type.

Member Data Documentation

◆ Idx

unsigned llvm::InstrAspect::Idx = 0

◆ Opcode

unsigned llvm::InstrAspect::Opcode

◆ Type

LLT llvm::InstrAspect::Type

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