[Mlir-commits] [mlir] [MLIR] [AMX] Utilize x86_amx type for AMX dialect in MLIR. (PR #111197)
Renato Golin
llvmlistbot at llvm.org
Fri Oct 4 14:27:39 PDT 2024
================
@@ -88,14 +151,14 @@ def TileZeroOp : AMX_Op<"tile_zero", [Pure]> {
Example:
```mlir
- %0 = amx.tile_zero : vector<16x16xbf16>
+ %0 = amx.tile_zero : <16x16xbf16>
```
}];
let results = (outs
- VectorOfRankAndType<[2], [F32, BF16, I32, I8]>:$res);
+ AMX2DTileOf<[F32, F16, BF16, I32, I8]>:$res);
----------------
rengolin wrote:
`AMX2DTileOf` seems to always allow only a few sets of element types. Perhaps lift that to the type's declaration to avoid repetition? Like `AMXTileAll` and `AMXTileF16` (and assume they're all 2D)?
https://github.com/llvm/llvm-project/pull/111197
More information about the Mlir-commits
mailing list