LLVM 18.0.0git
|
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. | |
LegalizeAction | getAction () const |
std::pair< unsigned, LLT > | determineMutation (const LegalityQuery &Query) const |
Determine the change to make. | |
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 393 of file LegalizerInfo.h.
|
inline |
Definition at line 399 of file LegalizerInfo.h.
References Mutation.
|
inline |
|
inline |
Definition at line 408 of file LegalizerInfo.h.
Referenced by hasNoSimpleLoops(), and mutationIsSane().
|
inline |
Test whether the LegalityQuery matches.
Definition at line 404 of file LegalizerInfo.h.