From 258e8d9ce2e7da290dbda335771d5e84e04c813a Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Fri, 3 May 2019 11:07:37 -0700 Subject: Prepend an "affine-" prefix to Affine pass option names - NFC Trying to activate both LLVM and MLIR passes in mlir-cpu-runner showed name collisions when registering pass names. One possible way of disambiguating that should also work across dialects is to prepend the dialect name to the passes that specifically operate on that dialect. With this CL, mlir-cpu-runner tests still run when both LLVM and MLIR passes are registered -- PiperOrigin-RevId: 246539917 --- mlir/lib/Transforms/LoopUnroll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir/lib/Transforms/LoopUnroll.cpp') diff --git a/mlir/lib/Transforms/LoopUnroll.cpp b/mlir/lib/Transforms/LoopUnroll.cpp index 1e92ebec655..236ef81ebd2 100644 --- a/mlir/lib/Transforms/LoopUnroll.cpp +++ b/mlir/lib/Transforms/LoopUnroll.cpp @@ -34,7 +34,7 @@ using namespace mlir; -#define DEBUG_TYPE "loop-unroll" +#define DEBUG_TYPE "affine-loop-unroll" static llvm::cl::OptionCategory clOptionsCategory(DEBUG_TYPE " options"); @@ -188,4 +188,4 @@ FunctionPassBase *mlir::createLoopUnrollPass( unrollFull == -1 ? None : Optional(unrollFull), getUnrollFactor); } -static PassRegistration pass("loop-unroll", "Unroll loops"); +static PassRegistration pass("affine-loop-unroll", "Unroll loops"); -- cgit v1.2.3