Steven Perron
9f6cd56d5a
[HLSL] Use HLSLToolChain for Vulkan ( #110306 )
...
The options are not translated correctly when targeting Vulkan using the
dxc
driver mode. Resuing the translator used for HLSL.
Fixes problem 2 in https://github.com/llvm/llvm-project/issues/108567 .
2024-09-30 10:26:14 -04:00
Xiang Li
bad2e6c830
[HLSL] clang codeGen for HLSLNumThreadsAttr
...
Translate HLSLNumThreadsAttr into function attribute with name "dx.numthreads" and value format as "x,y,z".
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D131799
2022-09-22 15:30:52 -07:00
Xiang Li
8b2f8b3098
[NFC} update CodeGenHLSL tests to use cc1 instead of driver-mode
2022-09-17 00:11:44 -07:00
Chris Bieneman
9a478d5232
[NFC] Rename dx.shader to hlsl.shader
...
This metadata annotation is HLSL-specific not DirectX specific. It will
need to be attached for shaders regardless of whether they are targeting
DXIL.
2022-08-22 16:03:40 -05:00
Xiang Li
906e41f4e3
[HLSL] clang codeGen for HLSLShaderAttr.
...
Translate HLSLShaderAttr to IR level.
1. Skip mangle for hlsl entry functions.
2. Add function attribute for hlsl entry functions.
Reviewed By: Anastasia
Differential Revision: https://reviews.llvm.org/D124752
2022-08-04 21:23:57 -07:00