forked from OSchip/llvm-project
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:
parent
e1a2a28d6b
commit
1400a35f71
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue