[llvm] r361020 - GlobalISel: Fix missing version of customFor

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 04:49:41 PDT 2019


Author: arsenm
Date: Fri May 17 04:49:41 2019
New Revision: 361020

URL: http://llvm.org/viewvc/llvm-project?rev=361020&view=rev
Log:
GlobalISel: Fix missing version of customFor

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

Modified:
    llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h?rev=361020&r1=361019&r2=361020&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h Fri May 17 04:49:41 2019
@@ -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);
   }




More information about the llvm-commits mailing list