[PATCH] D57396: GlobalISel: Add simpler way of always specifying custom lowering

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 29 09:46:06 PST 2019


arsenm created this revision.
arsenm added reviewers: aemerson, aditya_nandakumar, volkan, paquette, dsanders.
Herald added subscribers: Petar.Avramovic, kristof.beyls, rovka, wdng.

https://reviews.llvm.org/D57396

Files:
  include/llvm/CodeGen/GlobalISel/LegalizerInfo.h


Index: include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
===================================================================
--- include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
+++ include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
@@ -608,6 +608,11 @@
     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,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57396.184114.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190129/fd2b1584/attachment.bin>


More information about the llvm-commits mailing list