[globalisel] Support 3-type legalForCartesianProduct()

llvm-svn: 357815
This commit is contained in:
Daniel Sanders 2019-04-05 20:47:13 +00:00
parent c4225e124f
commit d7489c38f9
1 changed files with 8 additions and 0 deletions

View File

@ -485,6 +485,14 @@ public:
std::initializer_list<LLT> Types1) {
return actionForCartesianProduct(LegalizeAction::Legal, Types0, Types1);
}
/// The instruction is legal when type indexes 0, 1, and 2 are both their
/// respective lists.
LegalizeRuleSet &legalForCartesianProduct(std::initializer_list<LLT> Types0,
std::initializer_list<LLT> Types1,
std::initializer_list<LLT> Types2) {
return actionForCartesianProduct(LegalizeAction::Legal, Types0, Types1,
Types2);
}
/// The instruction is lowered.
LegalizeRuleSet &lower() {