[PATCH] D122699: [HLSL] Add Semantic syntax, and SV_GroupIndex

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 18:10:56 PDT 2022


beanz created this revision.
beanz added reviewers: MaskRay, jdoerfert, kuhar, rnk, aaron.ballman, rsmith.
Herald added subscribers: StephenFan, arphaman, mgorny.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122699

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/include/clang/Basic/AttributeCommonInfo.h
  clang/include/clang/Basic/Attributes.h
  clang/include/clang/Parse/Parser.h
  clang/lib/Parse/CMakeLists.txt
  clang/lib/Parse/ParseDecl.cpp
  clang/lib/Parse/ParseHLSL.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/SemaHLSL/Semantics/entry_parameter.hlsl
  clang/utils/TableGen/ClangAttrEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122699.419027.patch
Type: text/x-patch
Size: 12147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220330/e8946850/attachment-0001.bin>


More information about the cfe-commits mailing list