summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/GlobalISelEmitter.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2017-03-27 13:15:13 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2017-03-27 13:15:13 +0000
commit0848b23d5350ee5a28ffcee6bf51b440133cfa98 (patch)
tree4fb89e3fc2caf92185d047ffbdb50fff94f3e976 /llvm/utils/TableGen/GlobalISelEmitter.cpp
parentd2a97e0b7e2918532440bd6b3d32e68138a4dbf8 (diff)
downloadbcm5719-llvm-0848b23d5350ee5a28ffcee6bf51b440133cfa98.tar.gz
bcm5719-llvm-0848b23d5350ee5a28ffcee6bf51b440133cfa98.zip
[tablegen] Use categories on options that only matter to one emitter.
Summary: The categories are emitted in a strange order in this patch due to a bug in the CommandLine library. Reviewers: ab Reviewed By: ab Subscribers: ab, llvm-commits Differential Revision: https://reviews.llvm.org/D30995 llvm-svn: 298843
Diffstat (limited to 'llvm/utils/TableGen/GlobalISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/GlobalISelEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp
index 169dd32daa6..f97f5c99c5e 100644
--- a/llvm/utils/TableGen/GlobalISelEmitter.cpp
+++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp
@@ -52,11 +52,13 @@ STATISTIC(NumPatternImported, "Number of patterns imported from SelectionDAG");
STATISTIC(NumPatternImportsSkipped, "Number of SelectionDAG imports skipped");
STATISTIC(NumPatternEmitted, "Number of patterns emitted");
+cl::OptionCategory GlobalISelEmitterCat("Options for -gen-global-isel");
+
static cl::opt<bool> WarnOnSkippedPatterns(
"warn-on-skipped-patterns",
cl::desc("Explain why a pattern was skipped for inclusion "
"in the GlobalISel selector"),
- cl::init(false));
+ cl::init(false), cl::cat(GlobalISelEmitterCat));
namespace {
//===- Helper functions ---------------------------------------------------===//
OpenPOWER on IntegriCloud