[Mlir-commits] [mlir] [MLIR][XeGPU] XeVM lowering support for load_matrix/store_matrix (PR #162780)

Jianhui Li llvmlistbot at llvm.org
Tue Oct 14 09:03:03 PDT 2025


================
@@ -991,7 +991,8 @@ struct WgToSgLoadMatrixOp : public OpConversionPattern<xegpu::LoadMatrixOp> {
       return failure();
 
     ArrayRef<int64_t> wgShape = op.getDataShape();
-    VectorType valueTy = op.getRes().getType();
+    VectorType valueTy = llvm::dyn_cast<VectorType>(op.getRes().getType());
+    assert(valueTy && "the value type must be vector type!");
----------------
Jianhui-Li wrote:

Scalar type is not allowed at wg or sg level. 

https://github.com/llvm/llvm-project/pull/162780


More information about the Mlir-commits mailing list