From b8dc3fd81273b5928bfe98519cf10ce5bf9c565d Mon Sep 17 00:00:00 2001 From: Alex Zinenko Date: Mon, 18 Nov 2019 02:42:39 -0800 Subject: [PATCH] Rename CLI flags -lower-gpu-ops-to-*-ops to -convert-gpu-to-* 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 | 3 +-- mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp | 2 +- mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir | 2 +- mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp b/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp index e053ab4df350..f56508dfeba1 100644 --- a/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp +++ b/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp @@ -501,5 +501,4 @@ std::unique_ptr> mlir::createLowerGpuOpsToNVVMOpsPass() { } static PassRegistration - pass("lower-gpu-ops-to-nvvm-ops", - "Generate NVVM operations for gpu operations"); + pass("convert-gpu-to-nvvm", "Generate NVVM operations for gpu operations"); diff --git a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp index ea421f552b83..59892dbcee8a 100644 --- a/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp +++ b/mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp @@ -80,5 +80,5 @@ std::unique_ptr> mlir::createLowerGpuOpsToROCDLOpsPass() { } static PassRegistration - pass("lower-gpu-ops-to-rocdl-ops", + pass("convert-gpu-to-rocdl", "Generate ROCDL operations for gpu operations"); diff --git a/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir b/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir index 6ad6becce393..30bba48114c6 100644 --- a/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir +++ b/mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir @@ -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() diff --git a/mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir b/mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir index ccb931c7298d..f803266ad28e 100644 --- a/mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir +++ b/mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir @@ -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()