Translate HLSLShaderAttr to IR level.
- Skip mangle for hlsl entry functions.
- Add function attribute for hlsl entry functions.
Differential D124752
[HLSL] clang codeGen for HLSLShaderAttr. python3kgae on May 2 2022, 12:15 AM. Authored by
Details Translate HLSLShaderAttr to IR level.
Diff Detail
Event Timeline
|
Does HLSL shader entry inherits the same behavior as C-linkage functions (extern C) e.g. they can't be overloaded, templated, etc? If that's the case it might be easier to add C-linkage to it during parsing and then you can inherit the rest of logic including excluding it from mangling... This is how we implement kernel function handling in clang for OpenCL.