[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 18 12:15:47 PST 2025


================
@@ -379,6 +379,8 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
 
   mlir::Value VisitExtVectorElementExpr(Expr *e) { return emitLoadOfLValue(e); }
 
+  mlir::Value VisitMatrixElementExpr(Expr *e) { return emitLoadOfLValue(e); }
----------------
bcardosolopes wrote:

Unless you add a CIR testcase for this, the current approach is to mark this as unimplemented with an errorNYI call

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


More information about the cfe-commits mailing list