[clang] [HLSL][Matrix] Add support for single subscript accessor (PR #170779)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 10:55:42 PST 2025
================
@@ -486,6 +496,16 @@ class LValue {
return R;
}
+ static LValue MakeMatrixRow(Address Addr, llvm::Value *RowIdx,
+ QualType MatrixTy, LValueBaseInfo BaseInfo,
+ TBAAAccessInfo TBAAInfo) {
+ LValue LV;
+ LV.LVType = MatrixRow;
+ LV.VectorIdx = RowIdx; // store the row index here
----------------
farzonl wrote:
```suggestion
LV.MatrixRowIdx = RowIdx; // store the row index here
```
https://github.com/llvm/llvm-project/pull/170779
More information about the cfe-commits
mailing list