diff options
author | Javed Absar <javed.absar@gmail.com> | 2025-08-07 12:36:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 12:36:47 +0100 |
commit | ceda56be7f03a790ea777e8b98b419209c3bfa49 (patch) | |
tree | 484f25e403b89574ef02d126b6be217807a5d317 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f24c50a635cbdbd214e02866a8cb22232862c3ff (diff) | |
download | llvm-ceda56be7f03a790ea777e8b98b419209c3bfa49.zip llvm-ceda56be7f03a790ea777e8b98b419209c3bfa49.tar.gz llvm-ceda56be7f03a790ea777e8b98b419209c3bfa49.tar.bz2 |
[mlir][linalg] Morphism across linalg -- named, category and generic ops. (#148424)
Adds `linalg-morph-ops` pass to convert an op from one representation to another:
named-op <--> category_op (elementwise, contraction, ..) <--> generic
e.g.
```mlir
%exp = linalg.exp ins(%A : tensor<16x8xf32>) outs(%B : tensor<16x8xf32>) -> tensor<16x8xf32>
```
After `mlir-opt -linalg-morph-ops=named-to-category ..`
```mlir
%0 = linalg.elementwise kind=#linalg.elementwise_kind<exp> ins(%arg0 : tensor<16x8xf32> ..
Note: this is generalization of
`--linalg-generalize-named-ops` is the path `named-op --> generic-op`
`--linalg-specialize-generic-ops` is the path `named-op <-- generic-op`
email: quic_mabsar@quicinc.com
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions