[all-commits] [llvm/llvm-project] b8239e: [HLSL] Add StructuredBuffer to external sema sourc...

Joshua Batista via All-commits all-commits at lists.llvm.org
Wed Sep 11 13:03:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8239e1201f5871bed5b633b76fa9536672f287f
      https://github.com/llvm/llvm-project/commit/b8239e1201f5871bed5b633b76fa9536672f287f
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2024-09-11 (Wed, 11 Sep 2024)

  Changed paths:
    M clang/lib/Sema/HLSLExternalSemaSource.cpp
    A clang/test/AST/HLSL/StructuredBuffer-AST.hlsl
    A clang/test/CodeGenHLSL/builtins/StructuredBuffer-annotations.hlsl
    A clang/test/CodeGenHLSL/builtins/StructuredBuffer-constructor.hlsl
    A clang/test/CodeGenHLSL/builtins/StructuredBuffer-elementtype.hlsl
    A clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
    A clang/test/SemaHLSL/BuiltIns/StructuredBuffers.hlsl

  Log Message:
  -----------
  [HLSL] Add StructuredBuffer to external sema source (#106316)

This PR adds `StructuredBuffer` to `HLSLExternalSemaSource.cpp`, by
copying the logic from RWBuffer but just replacing the name with
StructuredBuffer. The change now allows StructuredBuffers to be defined
in HLSL, though they function the same as RWBuffers.

Further work to apply the appropriate attributes that distinguish
StructuredBuffers from other Buffer types will be deferred.
This improves our position on
https://github.com/llvm/llvm-project/issues/106189



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