LLVM  8.0.1
Public Member Functions | List of all members
llvm::LegalizeRule Class Reference

A single rule in a legalizer info ruleset. More...

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

Public Member Functions

 LegalizeRule (LegalityPredicate Predicate, LegalizeAction Action, LegalizeMutation Mutation=nullptr)
 
bool match (const LegalityQuery &Query) const
 Test whether the LegalityQuery matches. More...
 
LegalizeAction getAction () const
 
std::pair< unsigned, LLTdetermineMutation (const LegalityQuery &Query) const
 Determine the change to make. More...
 

Detailed Description

A single rule in a legalizer info ruleset.

The specified action is chosen when the predicate is true. Where appropriate for the action (e.g. for WidenScalar) the new type is selected using the given mutator.

Definition at line 244 of file LegalizerInfo.h.

Constructor & Destructor Documentation

◆ LegalizeRule()

llvm::LegalizeRule::LegalizeRule ( LegalityPredicate  Predicate,
LegalizeAction  Action,
LegalizeMutation  Mutation = nullptr 
)
inline

Definition at line 250 of file LegalizerInfo.h.

Member Function Documentation

◆ determineMutation()

std::pair<unsigned, LLT> llvm::LegalizeRule::determineMutation ( const LegalityQuery Query) const
inline

Determine the change to make.

Definition at line 262 of file LegalizerInfo.h.

References Mutation.

◆ getAction()

LegalizeAction llvm::LegalizeRule::getAction ( ) const
inline

Definition at line 259 of file LegalizerInfo.h.

◆ match()

bool llvm::LegalizeRule::match ( const LegalityQuery Query) const
inline

Test whether the LegalityQuery matches.

Definition at line 255 of file LegalizerInfo.h.


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