[Mlir-commits] [mlir] [MLIR][GPU] subgroup_mma fp64 extension (PR #165873)
Fabian Mora
llvmlistbot at llvm.org
Mon Nov 17 14:48:41 PST 2025
================
@@ -276,10 +283,16 @@ struct WmmaConstantOpToNVVMLowering
return failure();
Location loc = subgroupMmaConstantOp.getLoc();
Value cst = adaptor.getOperands()[0];
- LLVM::LLVMStructType type = convertMMAToLLVMType(
+ Type type = convertMMAToLLVMType(
cast<gpu::MMAMatrixType>(subgroupMmaConstantOp.getType()));
+ // If the element is not a struct, it means it's a scalar f64.
+ LLVM::LLVMStructType structType = dyn_cast<LLVM::LLVMStructType>(type);
----------------
fabianmcg wrote:
NIT:
```suggestion
auto structType = dyn_cast<LLVM::LLVMStructType>(type);
```
https://github.com/llvm/llvm-project/pull/165873
More information about the Mlir-commits
mailing list