LLVM 22.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 413 of file LegalizerInfo.h.
|
inline |
Definition at line 419 of file LegalizerInfo.h.
|
inline |
|
inline |
Definition at line 428 of file LegalizerInfo.h.
Referenced by hasNoSimpleLoops(), and mutationIsSane().
|
inline |
Test whether the LegalityQuery matches.
Definition at line 424 of file LegalizerInfo.h.