]> granicus.if.org Git - llvm/commitdiff
GlobalISel: Add simpler way of always specifying custom lowering
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Jan 2019 17:52:25 +0000 (17:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Jan 2019 17:52:25 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352637 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/GlobalISel/LegalizerInfo.h

index 3a9fbc3677c58ba1ae2b9a08813fe41a2de711d5..393af1529f06bc6c87c2052ccb0b5d6e743cf6d1 100644 (file)
@@ -606,6 +606,11 @@ public:
     return actionForCartesianProduct(LegalizeAction::Custom, Types0, Types1);
   }
 
+  /// Unconditionally custom lower.
+  LegalizeRuleSet &custom() {
+    return customIf(always);
+  }
+
   /// Widen the scalar to the next power of two that is at least MinSize.
   /// No effect if the type is not a scalar or is a power of two.
   LegalizeRuleSet &widenScalarToNextPow2(unsigned TypeIdx,