[all-commits] [llvm/llvm-project] 1fdf95: [HLSL] Add Semantic syntax, and SV_GroupIndex

Chris B via All-commits all-commits at lists.llvm.org
Thu Apr 14 08:22:17 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fdf952deeb9a02aa34794af3c1a7d13a30e068e
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/AttributeCommonInfo.h
    M clang/include/clang/Basic/Attributes.h
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/CMakeLists.txt
    M clang/lib/Parse/ParseDecl.cpp
    A clang/lib/Parse/ParseHLSL.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/ParserHLSL/lit.local.cfg
    A clang/test/ParserHLSL/semantic_parsing.hlsl
    A clang/test/SemaHLSL/Semantics/entry_parameter.hlsl
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  [HLSL] Add Semantic syntax, and SV_GroupIndex

HLSL has a language feature called Semantics which get attached to
declarations like attributes and are used in a variety of ways.

One example of semantic use is here with the `SV_GroupIndex` semantic
which, when applied to an input for a compute shader is pre-populated
by the driver with a flattened thread index.

Differential Revision: https://reviews.llvm.org/D122699

# Conflicts:
#	clang/include/clang/Basic/Attr.td
#	clang/include/clang/Basic/AttrDocs.td

More information about the All-commits mailing list