summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopTiling.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-01-25 22:14:04 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 15:39:38 -0700
commit75c21e1de01079cb65654d1c88007dba8772e6a1 (patch)
tree807b4c5e34b7eec09439b88b60aad6e727dc05df /mlir/lib/Transforms/LoopTiling.cpp
parent146ad7cf43cef0113c6161852fd0d6698d85d834 (diff)
downloadbcm5719-llvm-75c21e1de01079cb65654d1c88007dba8772e6a1.tar.gz
bcm5719-llvm-75c21e1de01079cb65654d1c88007dba8772e6a1.zip
Wrap cl::opt flags within passes in a category with the pass name. This improves the help output of tools like mlir-opt.
Example: dma-generate options: -dma-fast-mem-capacity - Set fast memory space ... -dma-fast-mem-space=<uint> - Set fast memory space ... loop-fusion options: -fusion-compute-tolerance=<number> - Fractional increase in ... -fusion-maximal - Enables maximal loop fusion loop-tile options: -tile-size=<uint> - Use this tile size for ... loop-unroll options: -unroll-factor=<uint> - Use this unroll factor ... -unroll-full - Fully unroll loops -unroll-full-threshold=<uint> - Unroll all loops with ... -unroll-num-reps=<uint> - Unroll innermost loops ... loop-unroll-jam options: -unroll-jam-factor=<uint> - Use this unroll jam factor ... PiperOrigin-RevId: 231019363
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
-rw-r--r--mlir/lib/Transforms/LoopTiling.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp
index ee66c9b17b1..2a4b7bcd262 100644
--- a/mlir/lib/Transforms/LoopTiling.cpp
+++ b/mlir/lib/Transforms/LoopTiling.cpp
@@ -31,10 +31,15 @@
using namespace mlir;
+#define DEBUG_TYPE "loop-tile"
+
+static llvm::cl::OptionCategory clOptionsCategory(DEBUG_TYPE " options");
+
// Tile size for all loops.
static llvm::cl::opt<unsigned>
clTileSize("tile-size", llvm::cl::Hidden,
- llvm::cl::desc("Use this tile size for all loops"));
+ llvm::cl::desc("Use this tile size for all loops"),
+ llvm::cl::cat(clOptionsCategory));
namespace {
OpenPOWER on IntegriCloud