[llvm-branch-commits] [llvm] AMDGPU: Start using subarch in attributor instead of subtarget (PR #212207)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 27 03:15:27 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 139006 tests passed
* 3588 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.Driver/amdgpu-subarch-resource-dir.cl</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=amdgpu10.30-amd-amdhsa-llvm      -resource-dir=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/resource_dir_amdgpu_subarch_triples C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=TOPLEVEL-SUBARCH C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=amdgpu10.30-amd-amdhsa-llvm '-resource-dir=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/resource_dir_amdgpu_subarch_triples' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=TOPLEVEL-SUBARCH 'C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl:32:22: error: TOPLEVEL-SUBARCH: expected string not found in input
# | // TOPLEVEL-SUBARCH: "-cc1" "-triple" "amdgpu10.30-amd-amdhsa-llvm" "{{.*}}/resource_dir_amdgpu_subarch_triples/lib/amdgpu10.30-amd-amdhsa-llvm/libclc.bc"
# |                      ^
# | <stdin>:1:1: note: scanning from here
# | clang version 24.0.0git (https://github.com/llvm/llvm-project 094512e0339de9ef88d8b2cb1ab45b2a16ec9ca4)
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Driver\amdgpu-subarch-resource-dir.cl
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: clang version 24.0.0git (https://github.com/llvm/llvm-project 094512e0339de9ef88d8b2cb1ab45b2a16ec9ca4) 
# | check:32'0    {                                                                                                          search range start (exclusive)
# | check:32'1                                                                                                               error: no match found in search range
# |             2: Target: amdgpu10.30-amd-amdhsa-llvm 
# |             3: Thread model: posix 
# |             4: InstalledDir: C:\_work\llvm-project\llvm-project\build\bin 
# |             5: Build config: +assertions 
# |             6:  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amdgpu10.30-amd-amdhsa-llvm" "-Werror=atomic-alignment" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "amdgpu-subarch-resource-dir.cl" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-fvisibility=hidden" "-fapply-global-visibility-to-externs" "-mlink-builtin-bitcode" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir_amdgpu_subarch_triples\\lib\\amdgpu10.30-amd-amdhsa-llvm\\libclc.bc" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir_amdgpu_subarch_triples" "-ferror-limit" "19" "-finclude-default-header" "-fdeclare-opencl-builtins" "-fgnuc-version=4.2.1" "-fno-threadsafe-statics" "-fskip-odr-check-in-gmf" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-5xwfnap5\\amdgpu-subarch-resource-dir-fbd18c.o" "-x" "cl" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\amdgpu-subarch-resource-dir.cl" 
# |             7:  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\ld.lld" "--no-undefined" "-shared" "-LC:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir_amdgpu_subarch_triples\\lib\\amdgpu10.30-amd-amdhsa-llvm" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-5xwfnap5\\amdgpu-subarch-resource-dir-fbd18c.o" "-o" "a.out" 
# | check:32'2                                                                                                                                                                                                                                                                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Driver/hip-windows-filename.hip</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=x86_64-pc-windows-msvc    -x hip    --offload-arch=gfx908:xnack+    -nogpuinc -nogpulib -save-temps    C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=x86_64-pc-windows-msvc -x hip --offload-arch=gfx908:xnack+ -nogpuinc -nogpulib -save-temps 'C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip:9:11: error: CHECK: expected string not found in input
# | // CHECK: "-o" "hip-windows-filename-hip-amdgcn-amd-amdhsa-gfx908 at xnack+.hipi"
# |           ^
# | <stdin>:1:1: note: scanning from here
# | clang version 24.0.0git (https://github.com/llvm/llvm-project 094512e0339de9ef88d8b2cb1ab45b2a16ec9ca4)
# | ^
# | <stdin>:6:3263: note: possible intended match here
# |  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amdgpu9.08-amd-amdhsa" "-aux-triple" "x86_64-pc-windows-msvc" "-Werror=atomic-alignment" "-E" "-dumpdir" "a-" "-save-temps=cwd" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "hip-windows-filename.hip" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all" "-relaxed-aliasing" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-fno-threadsafe-statics" "-mllvm" "-amdgpu-internalize-symbols" "-fvisibility=hidden" "-fapply-global-visibility-to-externs" "-target-cpu" "gfx908" "-mxnack" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\ATLMFC\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Auxiliary\\VS\\include" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.26100.0\\ucrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\shared" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\winrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\cppwinrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\ATLMFC\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Auxiliary\\VS\\include" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.26100.0\\ucrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\shared" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\winrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\cppwinrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fhip-new-launch-api" "--no-offloadlib" "-fms-extensions" "-fms-compatibility" "-fwrapv" "-fms-compatibility-version=19.44.35228" "-std=c++14" "-fskip-odr-check-in-gmf" "-fdelayed-template-parsing" "-fcxx-exceptions" "-fexceptions" "-cuid=60d488529f1b2538" "-fcuda-allow-variadic-functions" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "hip-windows-filename-hip-amdgpu9.08-amd-amdhsa-gfx908 at xnack+.hipi" "-x" "hip" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\hip-windows-filename.hip"
# |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Driver\hip-windows-filename.hip
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: clang version 24.0.0git (https://github.com/llvm/llvm-project 094512e0339de9ef88d8b2cb1ab45b2a16ec9ca4) 
# | check:9'0    {                                                                                                          search range start (exclusive)
# | check:9'1                                                                                                               error: no match found in search range
# |            2: Target: x86_64-pc-windows-msvc 
# |            3: Thread model: posix 
# |            4: InstalledDir: C:\_work\llvm-project\llvm-project\build\bin 
# |            5: Build config: +assertions 
# |            6:  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amdgpu9.08-amd-amdhsa" "-aux-triple" "x86_64-pc-windows-msvc" "-Werror=atomic-alignment" "-E" "-dumpdir" "a-" "-save-temps=cwd" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "hip-windows-filename.hip" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all" "-relaxed-aliasing" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-fno-threadsafe-statics" "-mllvm" "-amdgpu-internalize-symbols" "-fvisibility=hidden" "-fapply-global-visibility-to-externs" "-target-cpu" "gfx908" "-mxnack" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\ATLMFC\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Auxiliary\\VS\\include" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.26100.0\\ucrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\shared" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\winrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.26100.0\\\\cppwinrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\24\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\ATLMFC\\include" "-internal-isystem" "C:\\BuildTools\\VC\\Auxiliary\\VS\\include" "-internal-isystem"
# | ...
# `---data was truncated (10240/26335) (change limit with -D output_limit=N)
# 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/212207


More information about the llvm-branch-commits mailing list