LLVM  13.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::LegalizeActionStep Struct Reference

The result of a query. More...

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

Collaboration diagram for llvm::LegalizeActionStep:
Collaboration graph
[legend]

Public Member Functions

 LegalizeActionStep (LegalizeAction Action, unsigned TypeIdx, const LLT NewType)
 
 LegalizeActionStep (LegacyLegalizeActionStep Step)
 
bool operator== (const LegalizeActionStep &RHS) const
 

Public Attributes

LegalizeAction Action
 The action to take or the final answer. More...
 
unsigned TypeIdx
 If describing an action, the type index to change. Otherwise zero. More...
 
LLT NewType
 If describing an action, the new type for TypeIdx. Otherwise LLT{}. More...
 

Detailed Description

The result of a query.

It either indicates a final answer of Legal or Unsupported or describes an action that must be taken to make an operation more legal.

Definition at line 134 of file LegalizerInfo.h.

Constructor & Destructor Documentation

◆ LegalizeActionStep() [1/2]

llvm::LegalizeActionStep::LegalizeActionStep ( LegalizeAction  Action,
unsigned  TypeIdx,
const LLT  NewType 
)
inline

Definition at line 142 of file LegalizerInfo.h.

◆ LegalizeActionStep() [2/2]

llvm::LegalizeActionStep::LegalizeActionStep ( LegacyLegalizeActionStep  Step)
inline

Member Function Documentation

◆ operator==()

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

Definition at line 185 of file LegalizerInfo.h.

References Action, NewType, and TypeIdx.

Member Data Documentation

◆ Action

LegalizeAction llvm::LegalizeActionStep::Action

◆ NewType

LLT llvm::LegalizeActionStep::NewType

If describing an action, the new type for TypeIdx. Otherwise LLT{}.

Definition at line 140 of file LegalizerInfo.h.

Referenced by operator==().

◆ TypeIdx

unsigned llvm::LegalizeActionStep::TypeIdx

If describing an action, the type index to change. Otherwise zero.

Definition at line 138 of file LegalizerInfo.h.

Referenced by operator==(), and llvm::LegalizationArtifactCombiner::tryCombineUnmergeValues().


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