forked from OSchip/llvm-project
Rename "convert-to-llvmir" to "lower-to-llvm" (NFC)
-- PiperOrigin-RevId: 245649493
This commit is contained in:
parent
c9b0540b9c
commit
4c74f1bf38
|
@ -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 <filename.mlir>
|
||||
mlir-opt -lower-to-llvm <filename.mlir>
|
||||
```
|
||||
|
||||
It performs type and operation conversions for a subset of operations from
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 ...
|
||||
|
|
|
@ -1168,4 +1168,4 @@ std::unique_ptr<DialectConversion> mlir::createStdToLLVMConverter() {
|
|||
}
|
||||
|
||||
static PassRegistration<LLVMLoweringPass>
|
||||
pass("convert-to-llvmir", "Convert all functions to the LLVM IR dialect");
|
||||
pass("lower-to-llvm", "Convert all functions to the LLVM IR dialect");
|
||||
|
|
|
@ -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}) {
|
||||
|
|
|
@ -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 : () -> ())
|
||||
|
|
|
@ -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 }">)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue