GlobalISel: Fix missing version of customFor

Add the list of pairs analagous, like legalFor and customFor has.

llvm-svn: 361020
This commit is contained in:
Matt Arsenault 2019-05-17 11:49:41 +00:00
parent e1a2a28d6b
commit 1400a35f71
1 changed files with 7 additions and 0 deletions

View File

@ -650,6 +650,13 @@ public:
LegalizeRuleSet &customFor(std::initializer_list<LLT> Types) {
return actionFor(LegalizeAction::Custom, Types);
}
/// The instruction is custom when type indexes 0 and 1 is any type pair in the
/// given list.
LegalizeRuleSet &customFor(std::initializer_list<std::pair<LLT, LLT>> Types) {
return actionFor(LegalizeAction::Custom, Types);
}
LegalizeRuleSet &customForCartesianProduct(std::initializer_list<LLT> Types) {
return actionForCartesianProduct(LegalizeAction::Custom, Types);
}