Skip to content

Commit a0e8c1f

Browse files
committed
rename option
1 parent 2a0327e commit a0e8c1f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

mlir/include/mlir/Conversion/Passes.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def ConvertGpuOpsToNVVMOps : Pass<"convert-gpu-to-nvvm", "gpu::GPUModuleOp"> {
558558
/*default=*/"false",
559559
"Replace memref arguments in GPU functions with bare pointers. "
560560
"All memrefs must have static shape.">,
561-
ListOption<"filterDialects", "filter-dialects", "std::string",
561+
ListOption<"allowedDialects", "allowed-dialects", "std::string",
562562
"Run conversion patterns of only the specified dialects">,
563563
];
564564
}
@@ -589,14 +589,14 @@ def ConvertGpuOpsToROCDLOps : Pass<"convert-gpu-to-rocdl", "gpu::GPUModuleOp"> {
589589
Option<"runtime", "runtime", "::mlir::gpu::amd::Runtime",
590590
"::mlir::gpu::amd::Runtime::Unknown",
591591
"Runtime code will be run on (default is Unknown, can also use HIP "
592-
"or OpenCl)",
592+
"or OpenCL)",
593593
[{::llvm::cl::values(
594594
clEnumValN(::mlir::gpu::amd::Runtime::Unknown, "unknown",
595595
"Unknown (default)"),
596596
clEnumValN(::mlir::gpu::amd::Runtime::HIP, "HIP", "HIP"),
597597
clEnumValN(::mlir::gpu::amd::Runtime::OpenCL, "OpenCL",
598598
"OpenCL"))}]>,
599-
ListOption<"filterDialects", "filter-dialects", "std::string",
599+
ListOption<"allowedDialects", "allowed-dialects", "std::string",
600600
"Run conversion patterns of only the specified dialects">,
601601
];
602602
}

mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ struct LowerGpuOpsToNVVMOpsPass
378378
RewritePatternSet llvmPatterns(m.getContext());
379379
LLVMConversionTarget target(getContext());
380380

381-
if (!filterDialects.empty()) {
382-
for (StringRef dialectName : filterDialects) {
381+
if (!allowedDialects.empty()) {
382+
for (StringRef dialectName : allowedDialects) {
383383
Dialect *dialect = getContext().getLoadedDialect(dialectName);
384384
// Dialect may not be loaded if it wasn't used in source module, ignore.
385385
if (!dialect)

mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ struct LowerGpuOpsToROCDLOpsPass
293293
RewritePatternSet llvmPatterns(ctx);
294294
LLVMConversionTarget target(getContext());
295295

296-
if (!filterDialects.empty()) {
297-
for (StringRef dialectName : filterDialects) {
296+
if (!allowedDialects.empty()) {
297+
for (StringRef dialectName : allowedDialects) {
298298
Dialect *dialect = ctx->getLoadedDialect(dialectName);
299299
// Dialect may not be loaded if it wasn't used in source module, ignore.
300300
if (!dialect)

mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: mlir-opt %s -convert-gpu-to-nvvm='has-redux=1' -split-input-file | FileCheck %s
2-
// RUN: mlir-opt %s -convert-gpu-to-nvvm='has-redux=1 filter-dialects=func,arith,cf' -split-input-file | FileCheck %s
2+
// RUN: mlir-opt %s -convert-gpu-to-nvvm='has-redux=1 allowed-dialects=func,arith,cf' -split-input-file | FileCheck %s
33
// RUN: mlir-opt %s -convert-gpu-to-nvvm='has-redux=1 use-bare-ptr-memref-call-conv=1' -split-input-file | FileCheck %s --check-prefix=CHECK-BARE
44
// RUN: mlir-opt %s -transform-interpreter | FileCheck %s
55

mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: mlir-opt %s -convert-gpu-to-rocdl -split-input-file | FileCheck %s
2-
// RUN: mlir-opt %s -convert-gpu-to-rocdl='filter-dialects=func,arith,math' -split-input-file | FileCheck %s
2+
// RUN: mlir-opt %s -convert-gpu-to-rocdl='allowed-dialects=func,arith,math' -split-input-file | FileCheck %s
33
// RUN: mlir-opt %s -convert-gpu-to-rocdl='index-bitwidth=32' -split-input-file | FileCheck --check-prefix=CHECK32 %s
44

55
// CHECK-LABEL: @test_module

0 commit comments

Comments
 (0)