[llvm] r352637 - GlobalISel: Add simpler way of always specifying custom lowering
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 30 09:52:25 PST 2019
Author: arsenm
Date: Wed Jan 30 09:52:25 2019
New Revision: 352637
URL: http://llvm.org/viewvc/llvm-project?rev=352637&view=rev
Log:
GlobalISel: Add simpler way of always specifying custom lowering
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=352637&r1=352636&r2=352637&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h Wed Jan 30 09:52:25 2019
@@ -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,
More information about the llvm-commits
mailing list