[PATCH] D124790: [HLSL] Enable half type for hlsl.
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 19 15:41:00 PDT 2022
python3kgae updated this revision to Diff 438220.
python3kgae added a comment.
Change CXXABI to Microsoft to match dxc behavior.
The mangle name for half is "$f16@" when half is treat as native half type and "$halff@" when treat as float.
And now in AST, half is still half. Only in clang codeGen half will translated into float when enable-16bit-types is flase.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124790/new/
https://reviews.llvm.org/D124790
Files:
clang/include/clang/Driver/Options.td
clang/lib/AST/ASTContext.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/Basic/LangOptions.cpp
clang/lib/Basic/Targets/DirectX.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/test/CodeGenHLSL/basic_types.hlsl
clang/test/CodeGenHLSL/half.hlsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124790.438220.patch
Type: text/x-patch
Size: 9511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220619/298b3ddf/attachment-0001.bin>
More information about the cfe-commits
mailing list