LLVM
8.0.1
|
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, LLT > | determineMutation (const LegalityQuery &Query) const |
Determine the change to make. More... | |
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.
|
inline |
Definition at line 250 of file LegalizerInfo.h.
|
inline |
|
inline |
Definition at line 259 of file LegalizerInfo.h.
|
inline |
Test whether the LegalityQuery matches.
Definition at line 255 of file LegalizerInfo.h.