[llvm] r357815 - [globalisel] Support 3-type legalForCartesianProduct()

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 13:47:13 PDT 2019


Author: dsanders
Date: Fri Apr  5 13:47:13 2019
New Revision: 357815

URL: http://llvm.org/viewvc/llvm-project?rev=357815&view=rev
Log:
[globalisel] Support 3-type legalForCartesianProduct()

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=357815&r1=357814&r2=357815&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h Fri Apr  5 13:47:13 2019
@@ -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() {




More information about the llvm-commits mailing list