Added keyword, LangAS and TypeAttrbute for groupshared.
Tanslate it to LangAS with asHLSLLangAS.
Make sure it translated into address space 3 for DirectX target.
Paths
| Differential D135060
[HLSL] Add groupshare address space. ClosedPublic Authored by python3kgae on Oct 2 2022, 11:58 PM.
Details Summary Added keyword, LangAS and TypeAttrbute for groupshared. Tanslate it to LangAS with asHLSLLangAS. Make sure it translated into address space 3 for DirectX target.
Diff Detail
Event TimelineComment Actions At a high-level: can you make sure that functional changes all have corresponding test coverage?
python3kgae marked 12 inline comments as done. Comment ActionsCode cleanup to match comments.
python3kgae added inline comments.
python3kgae added inline comments.
python3kgae marked an inline comment as done. Comment ActionsAdd hlsl202x test for C++ 11 features like lambda.
python3kgae added inline comments.
This revision is now accepted and ready to land.Oct 20 2022, 4:58 AM Closed by commit rG7e04c0ad6325: [HLSL] Add groupshare address space. (authored by python3kgae). · Explain WhyOct 20 2022, 9:29 AM This revision was automatically updated to reflect the committed changes. python3kgae marked an inline comment as done.
Revision Contents
Diff 469048 clang/include/clang/Basic/AddressSpaces.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TokenKinds.def
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/ParsedAttr.h
clang/lib/AST/ASTContext.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/Basic/Targets/AMDGPU.cpp
clang/lib/Basic/Targets/DirectX.h
clang/lib/Basic/Targets/NVPTX.h
clang/lib/Basic/Targets/SPIR.h
clang/lib/Basic/Targets/TCE.h
clang/lib/Basic/Targets/X86.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Parse/ParseTentative.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaType.cpp
clang/test/AST/HLSL/group_shared.hlsl
clang/test/CodeGenHLSL/group_shared.hlsl
clang/test/Parser/opencl-cxx-keywords.cl
clang/test/ParserHLSL/group_shared.hlsl
clang/test/ParserHLSL/group_shared_202x.hlsl
clang/test/SemaHLSL/group_shared.hlsl
clang/test/SemaHLSL/group_shared_202x.hlsl
clang/test/SemaOpenCL/address-spaces.cl
clang/test/SemaOpenCL/invalid-kernel.cl
clang/test/SemaTemplate/address_space-dependent.cpp
|
So this is being exposed as both a keyword and an attribute? Why? (No tests are using it as an attribute.)