[HLSL] Add TableGen-generated header files to the HLSL distribution (#190222)

This PR adds the TableGen-generated headers from
https://github.com/llvm/llvm-project/pull/187610 to the HLSL
distribution.

Currently the HLSL distribution is incomplete due to missing these
generated headers, preventing successful compilation:
```
Command Output (stderr):
--
In file included from <built-in>:1:

In file included from D:\a\_work\1\ClangHLSL\Binaries\lib\clang\23\include\hlsl.h:24:

D:\a\_work\1\ClangHLSL\Binaries\lib\clang\23\include\hlsl/hlsl_alias_intrinsics.h:42:10: fatal error: 'hlsl_alias_intrinsics_gen.inc' file not found

   42 | #include "hlsl_alias_intrinsics_gen.inc"

      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.
```
This PR fixes the error by including `hlsl_alias_intrinsics_gen.inc` and
`hlsl_inline_intrinsics_gen.inc` in the HLSL distribution.
This commit is contained in:
Deric C. 2026-04-02 14:38:58 -07:00 committed by GitHub
parent b1ef47f459
commit 72cc5a670e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -808,6 +808,12 @@ install(
${EXCLUDE_HLSL}
COMPONENT hlsl-resource-headers)
install(
FILES ${hlsl_generated_files}
DESTINATION ${header_install_dir}/hlsl
${EXCLUDE_HLSL}
COMPONENT hlsl-resource-headers)
install(
FILES ${spirv_files}
DESTINATION ${header_install_dir}