Consolidate the type conversion in a single function to make it simpler to use. This allow to re-use the type conversion for up-coming ops.
Details
Diff Detail
Event Timeline
Nice cleanup and fixes. Thanks!
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp | ||
---|---|---|
253 | Can you use an SubgroupMmaStoreMatrixOp::Adapter here instead of operands[0]? There are other instances in this pattern that read operands from the original op instead of using the passed in operands via an adapter. Those likely should also be fixed. |
Address review comments
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp | ||
---|---|---|
253 | Good point, I fixed those. |
Nice cleanup!
mlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp | ||
---|---|---|
54 | As another step, we should perhaps have "AOp" and "BOp" defined as constant strings somewhere in MMAMatrixType or in GPUDialect instead of hardcoding at several places. |
As another step, we should perhaps have "AOp" and "BOp" defined as constant strings somewhere in MMAMatrixType or in GPUDialect instead of hardcoding at several places.