[all-commits] [llvm/llvm-project] 350d68: [mlir] Print bbArgs of linalg.map/reduce/tranpose ...
Alexander Belyaev via All-commits
all-commits at lists.llvm.org
Thu Oct 27 01:19:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 350d68644445f53551df1a4ddd69bd4f54f09fff
https://github.com/llvm/llvm-project/commit/350d68644445f53551df1a4ddd69bd4f54f09fff
Author: Alexander Belyaev <pifon at google.com>
Date: 2022-10-27 (Thu, 27 Oct 2022)
Changed paths:
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
M mlir/lib/IR/AsmPrinter.cpp
M mlir/test/Dialect/Linalg/one-shot-bufferize.mlir
M mlir/test/Dialect/Linalg/roundtrip.mlir
Log Message:
-----------
[mlir] Print bbArgs of linalg.map/reduce/tranpose on the next line.
```
%mapped = linalg.map
ins(%arg0 : tensor<64xf32>)
outs(%arg1 : tensor<64xf32>)
(%in: f32) {
%0 = math.absf %in : f32
linalg.yield %0 : f32
}
%reduced = linalg.reduce
ins(%arg0 : tensor<16x32x64xf32>)
outs(%arg1 : tensor<16x64xf32>)
dimensions = [1]
(%in: f32, %init: f32) {
%0 = arith.addf %in, %init : f32
linalg.yield %0 : f32
}
%transposed = linalg.transpose
ins(%arg0 : tensor<16x32x64xf32>)
outs(%arg1 : tensor<32x64x16xf32>)
permutation = [1, 2, 0]
```
Differential Revision: https://reviews.llvm.org/D136818
More information about the All-commits
mailing list