diff options
| author | Han-Chung Wang <hanhan0912@gmail.com> | 2025-07-01 14:15:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 14:15:27 -0700 |
| commit | 42578e8586e65fb9a3f9215d0f650eab26be92f0 (patch) | |
| tree | 09570211805e84f9182e544bba321d1a94d18c46 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 5d849d3a90857621ba93e46c6b6dc145fdee04fe (diff) | |
[mlir][linalg] Use hasPureTensorSemantics in TransposeMatmul methods. (#146438)
The issue is triggered by
https://github.com/llvm/llvm-project/commit/ee070d08163ac09842d9bf0c1315f311df39faf1
that checks `TensorLikeType` when downstream projects use the pattern
without registering bufferization::BufferizationDialect. The
registration is needed because the interface implementation for builtin
types locate at `BufferizationDialect::initialize()`. However, we do not
need to fix it by the registration. The proper fix is using the linalg
method, i.e., hasPureTensorSemantics.
No additional tests are added because the functionality is well tested
in
[transpose-matmul.mlir](https://github.com/llvm/llvm-project/blob/main/mlir/test/Dialect/Linalg/transpose-matmul.mlir).
To reproduce the issue, it requires a different setup, e.g., writing a
new C++ pass, which seems not worth it.
Signed-off-by: hanhanW <hanhan0912@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
