[clang] [llvm] [HLSL] Add allresourcesbound option to DXC driver and set corresponding module flag (PR #173411)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 23 11:44:14 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 167442 tests passed
* 2974 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Options/all_resources_bound.hlsl</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=dxc -T lib_6_4 -all-resources-bound /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl 2>&1 -### | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ARB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=dxc -T lib_6_4 -all-resources-bound /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl '-###'
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ARB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl:4:9: error: ARB: expected string not found in input
# | // ARB: "-hlsl-all-resources-bound"
# |         ^
# | <stdin>:1:1: note: scanning from here
# | clang version 22.0.0git (https://github.com/llvm/llvm-project 4b9369fc92c8f550d53b8eaeee1acb107d2dd96b)
# | ^
# | <stdin>:7:754: note: possible intended match here
# |  "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-22" "-cc1" "-triple" "dxilv1.4-unknown-shadermodel6.4-library" "-O3" "-Wconversion" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "all_resources_bound.hlsl" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Options" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Options" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22" "-ferror-limit" "19" "/hlsl-all-resources-bound" "-O3" "-finclude-default-header" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-vectorize-loops" "-vectorize-slp" "-o" "-" "-x" "hlsl" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl"
# |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: clang version 22.0.0git (https://github.com/llvm/llvm-project 4b9369fc92c8f550d53b8eaeee1acb107d2dd96b) 
# | check:4'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            2: Target: dxilv1.4-unknown-shadermodel6.4-library 
# | check:4'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: Thread model: posix 
# | check:4'0     ~~~~~~~~~~~~~~~~~~~~
# |            4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin 
# | check:4'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: Build config: +assertions 
# | check:4'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  (in-process) 
# | check:4'0     ~~~~~~~~~~~~~~
# |            7:  "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-22" "-cc1" "-triple" "dxilv1.4-unknown-shadermodel6.4-library" "-O3" "-Wconversion" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "all_resources_bound.hlsl" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Options" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Options" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22" "-ferror-limit" "19" "/hlsl-all-resources-bound" "-O3" "-finclude-default-header" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-vectorize-loops" "-vectorize-slp" "-o" "-" "-x" "hlsl" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Options/all_resources_bound.hlsl" 
# | check:4'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:4'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ?                                                                                                                                                                                                                                                                              possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/173411


More information about the cfe-commits mailing list