Rename CLI flags -lower-gpu-ops-to-*-ops to -convert-gpu-to-*
authorAlex Zinenko <zinenko@google.com>
Mon, 18 Nov 2019 10:42:39 +0000 (02:42 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 18 Nov 2019 10:43:10 +0000 (02:43 -0800)
This makes the flags consistent with the naming scheme used elsewhere in the
codebase for dialect conversions.

PiperOrigin-RevId: 281027517

mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir

index e053ab4..f56508d 100644 (file)
@@ -501,5 +501,4 @@ std::unique_ptr<OpPassBase<ModuleOp>> mlir::createLowerGpuOpsToNVVMOpsPass() {
 }
 
 static PassRegistration<LowerGpuOpsToNVVMOpsPass>
-    pass("lower-gpu-ops-to-nvvm-ops",
-         "Generate NVVM operations for gpu operations");
+    pass("convert-gpu-to-nvvm", "Generate NVVM operations for gpu operations");
index ea421f5..59892db 100644 (file)
@@ -80,5 +80,5 @@ std::unique_ptr<OpPassBase<ModuleOp>> mlir::createLowerGpuOpsToROCDLOpsPass() {
 }
 
 static PassRegistration<LowerGpuOpsToROCDLOpsPass>
-    pass("lower-gpu-ops-to-rocdl-ops",
+    pass("convert-gpu-to-rocdl",
          "Generate ROCDL operations for gpu operations");
index 6ad6bec..30bba48 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: mlir-opt %s -lower-gpu-ops-to-nvvm-ops -split-input-file | FileCheck %s
+// RUN: mlir-opt %s -convert-gpu-to-nvvm -split-input-file | FileCheck %s
 
 module attributes {gpu.kernel_module} {
   // CHECK-LABEL: func @gpu_index_ops()
index ccb931c..f803266 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: mlir-opt %s -lower-gpu-ops-to-rocdl-ops -split-input-file | FileCheck %s
+// RUN: mlir-opt %s -convert-gpu-to-rocdl -split-input-file | FileCheck %s
 
 module attributes {gpu.kernel_module} {
   // CHECK-LABEL: func @gpu_index_ops()