[all-commits] [llvm/llvm-project] 3a9c6c: [Matrix][HLSL] Add codegen support for Matrix Layo...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Wed Jun 3 07:35:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a9c6cdb5d99cbcbb98c8d3562c409ddc5822deb
      https://github.com/llvm/llvm-project/commit/3a9c6cdb5d99cbcbb98c8d3562c409ddc5822deb
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    A clang/include/clang/AST/MatrixUtils.h
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Sema/SemaHLSL.h
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/lib/CodeGen/CGHLSLBuiltins.cpp
    M clang/lib/CodeGen/CodeGenTypes.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/AST/HLSL/matrix_layout_attr.hlsl
    A clang/test/CodeGenHLSL/matrix-layout-attr-overrides-default.hlsl
    M clang/test/SemaHLSL/BuiltIns/logical-mat-operator-errors.hlsl
    M clang/test/SemaHLSL/MatrixElementOverloadResolution.hlsl
    M clang/test/SemaHLSL/Types/BuiltinMatrix/MatrixImplicitTruncCastWarnings.hlsl

  Log Message:
  -----------
  [Matrix][HLSL] Add codegen support for Matrix Layout keywords (#198887)

fixes #192262
    
- Wrap Matrix Type in a row or column major layout attribute
- Add Helper to know which Matrix Layout to apply in codegen or check
for in Sema
- Remove the Decl Atribute and only store on the type.

Assisted by Claud Opus 4.7



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list