summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-01-30 17:52:25 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-01-30 17:52:25 +0000
commitd2f83ab34c78590fbf39cda576d124ce8c1aeb1e (patch)
tree1accc33e2ed778f411b5fcfd41065bb7c6f5d1ae /llvm
parentdc8258c4aa70a7c931ddcdea8f0e6a1d7db97d5c (diff)
downloadbcm5719-llvm-d2f83ab34c78590fbf39cda576d124ce8c1aeb1e.tar.gz
bcm5719-llvm-d2f83ab34c78590fbf39cda576d124ce8c1aeb1e.zip
GlobalISel: Add simpler way of always specifying custom lowering
llvm-svn: 352637
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
index 3a9fbc3677c..393af1529f0 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
+++ b/llvm/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,
OpenPOWER on IntegriCloud