mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 13:16:24 -04:00
GlobalISel: Fix missing version of customFor
Add the list of pairs analagous, like legalFor and customFor has. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user