[PATCH] D134617: [HLSL] Support register binding attribute on global variable
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 25 17:42:57 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: beanz, pow2clk, bogner.
Herald added a reviewer: aaron.ballman.
Herald added a subscriber: Anastasia.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Allow register binding attribute on variables.
Report warning when register binding attribute applies to local variable or static variable.
It will be ignored in this case.
Type check for register binding is tracked with https://github.com/llvm/llvm-project/issues/57886.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134617
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/test/AST/HLSL/resource_binding_attr.hlsl
clang/test/SemaHLSL/resource_binding_attr_error.hlsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134617.462777.patch
Type: text/x-patch
Size: 5760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220926/5f5b0ebd/attachment.bin>
More information about the cfe-commits
mailing list