From 4c74f1bf38d9b738009e40be05015b565f53c33d Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sun, 28 Apr 2019 10:54:06 -0700 Subject: [PATCH] Rename "convert-to-llvmir" to "lower-to-llvm" (NFC) -- PiperOrigin-RevId: 245649493 --- mlir/g3doc/ConversionToLLVMDialect.md | 2 +- mlir/g3doc/Passes.md | 2 +- mlir/g3doc/WritingAPass.md | 6 +++--- mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp | 2 +- mlir/test/LLVMIR/convert-argattrs.mlir | 2 +- mlir/test/LLVMIR/convert-funcs.mlir | 2 +- mlir/test/LLVMIR/convert-memref-ops.mlir | 2 +- mlir/test/LLVMIR/convert-to-llvmir.mlir | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mlir/g3doc/ConversionToLLVMDialect.md b/mlir/g3doc/ConversionToLLVMDialect.md index 0ddf842..9da27c4 100644 --- a/mlir/g3doc/ConversionToLLVMDialect.md +++ b/mlir/g3doc/ConversionToLLVMDialect.md @@ -4,7 +4,7 @@ Conversion to the [LLVM IR Dialect](Dialects/LLVM.md) can be performed by the specialized dialect conversion pass by running ```sh -mlir-opt -convert-to-llvmir +mlir-opt -lower-to-llvm ``` It performs type and operation conversions for a subset of operations from diff --git a/mlir/g3doc/Passes.md b/mlir/g3doc/Passes.md index 33ea6b4..baf585a 100644 --- a/mlir/g3doc/Passes.md +++ b/mlir/g3doc/Passes.md @@ -51,7 +51,7 @@ already present before the pass. they do not depend on the loop iterator value or on the result of `affine.apply`. -## Conversion from Standard to LLVM IR dialect (`-convert-to-llvmir`) +## Conversion from Standard to LLVM IR dialect (`-lower-to-llvm`) Convert standard operations into the LLVM IR dialect operations. diff --git a/mlir/g3doc/WritingAPass.md b/mlir/g3doc/WritingAPass.md index 7202153..fe11b5f 100644 --- a/mlir/g3doc/WritingAPass.md +++ b/mlir/g3doc/WritingAPass.md @@ -417,7 +417,7 @@ pipeline. This display mode is available in mlir-opt via `-pass-timing-display=list`. ```shell -$ mlir-opt foo.mlir -cse -canonicalize -convert-to-llvmir -pass-timing -pass-timing-display=list +$ mlir-opt foo.mlir -cse -canonicalize -lower-to-llvm -pass-timing -pass-timing-display=list ===-------------------------------------------------------------------------=== ... Pass execution timing report ... @@ -443,7 +443,7 @@ the most time, and can also be used to identify when analyses are being invalidated and recomputed. This is the default display mode. ```shell -$ mlir-opt foo.mlir -cse -canonicalize -convert-to-llvmir -pass-timing +$ mlir-opt foo.mlir -cse -canonicalize -lower-to-llvm -pass-timing ===-------------------------------------------------------------------------=== ... Pass execution timing report ... @@ -474,7 +474,7 @@ perceived time, or clock time, whereas the `User Time` will display the total cpu time. ```shell -$ mlir-opt foo.mlir -experimental-mt-pm -cse -canonicalize -convert-to-llvmir -pass-timing +$ mlir-opt foo.mlir -experimental-mt-pm -cse -canonicalize -lower-to-llvm -pass-timing ===-------------------------------------------------------------------------=== ... Pass execution timing report ... diff --git a/mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp b/mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp index 86f03e6..2771fd4 100644 --- a/mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp +++ b/mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp @@ -1168,4 +1168,4 @@ std::unique_ptr mlir::createStdToLLVMConverter() { } static PassRegistration - pass("convert-to-llvmir", "Convert all functions to the LLVM IR dialect"); + pass("lower-to-llvm", "Convert all functions to the LLVM IR dialect"); diff --git a/mlir/test/LLVMIR/convert-argattrs.mlir b/mlir/test/LLVMIR/convert-argattrs.mlir index 8be7b0e..983967e 100644 --- a/mlir/test/LLVMIR/convert-argattrs.mlir +++ b/mlir/test/LLVMIR/convert-argattrs.mlir @@ -1,4 +1,4 @@ -// RUN: mlir-opt -convert-to-llvmir %s | FileCheck %s +// RUN: mlir-opt -lower-to-llvm %s | FileCheck %s // CHECK-LABEL: func @check_attributes(%arg0: !llvm<"float*"> {dialect.a: true, dialect.b: 4}) { diff --git a/mlir/test/LLVMIR/convert-funcs.mlir b/mlir/test/LLVMIR/convert-funcs.mlir index 9c959c7..43f1470 100644 --- a/mlir/test/LLVMIR/convert-funcs.mlir +++ b/mlir/test/LLVMIR/convert-funcs.mlir @@ -1,4 +1,4 @@ -// RUN: mlir-opt -convert-to-llvmir %s | FileCheck %s +// RUN: mlir-opt -lower-to-llvm %s | FileCheck %s //CHECK: func @second_order_arg(!llvm<"void ()*">) func @second_order_arg(%arg0 : () -> ()) diff --git a/mlir/test/LLVMIR/convert-memref-ops.mlir b/mlir/test/LLVMIR/convert-memref-ops.mlir index 5da4d5c..e188b28 100644 --- a/mlir/test/LLVMIR/convert-memref-ops.mlir +++ b/mlir/test/LLVMIR/convert-memref-ops.mlir @@ -1,4 +1,4 @@ -// RUN: mlir-opt -convert-to-llvmir %s | FileCheck %s +// RUN: mlir-opt -lower-to-llvm %s | FileCheck %s // CHECK-LABEL: func @check_arguments(%arg0: !llvm<"float*">, %arg1: !llvm<"{ float*, i64, i64 }">, %arg2: !llvm<"{ float*, i64 }">) diff --git a/mlir/test/LLVMIR/convert-to-llvmir.mlir b/mlir/test/LLVMIR/convert-to-llvmir.mlir index d50ba22..89250db 100644 --- a/mlir/test/LLVMIR/convert-to-llvmir.mlir +++ b/mlir/test/LLVMIR/convert-to-llvmir.mlir @@ -1,4 +1,4 @@ -// RUN: mlir-opt -convert-to-llvmir %s | FileCheck %s +// RUN: mlir-opt -lower-to-llvm %s | FileCheck %s // CHECK-LABEL: func @empty() { // CHECK-NEXT: llvm.return -- 2.7.4