From: Matt Arsenault Date: Wed, 30 Jan 2019 17:52:25 +0000 (+0000) Subject: GlobalISel: Add simpler way of always specifying custom lowering X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=873d47dbf545b5c929408602dc874955e9ce0ce8;p=llvm GlobalISel: Add simpler way of always specifying custom lowering git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352637 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h index 3a9fbc3677c..393af1529f0 100644 --- a/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h +++ b/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h @@ -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,