[clang] [Clang][Inliner] Enable module-local optimizer hints by default (PR #238529)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 10:17:38 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 64530 tests passed
* 840 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/CodeGenCUDA/launch-bounds.cu</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fclangir -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fclangir -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:160:20: warning: 'launch_bounds' attribute parameter 0 is negative and will be ignored [-Wcuda-compat]
# | 160 | __launch_bounds__( -MAX_THREADS_PER_BLOCK, MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:168:43: warning: 'launch_bounds' attribute parameter 1 is negative and will be ignored [-Wcuda-compat]
# | 168 | __launch_bounds__( MAX_THREADS_PER_BLOCK, -MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | 2 warnings generated when compiling for nvptx-unknown-unknown.
# `-----------------------------
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fclangir -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fclangir -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:160:20: warning: 'launch_bounds' attribute parameter 0 is negative and will be ignored [-Wcuda-compat]
# | 160 | __launch_bounds__( -MAX_THREADS_PER_BLOCK, MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:168:43: warning: 'launch_bounds' attribute parameter 1 is negative and will be ignored [-Wcuda-compat]
# | 168 | __launch_bounds__( MAX_THREADS_PER_BLOCK, -MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | 2 warnings generated when compiling for nvptx-unknown-unknown.
# `-----------------------------
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LLVM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LLVM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.cir.ll
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple nvptx-unknown-unknown -x cuda -fcuda-is-device -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:160:20: warning: 'launch_bounds' attribute parameter 0 is negative and will be ignored [-Wcuda-compat]
# | 160 | __launch_bounds__( -MAX_THREADS_PER_BLOCK, MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:168:43: warning: 'launch_bounds' attribute parameter 1 is negative and will be ignored [-Wcuda-compat]
# | 168 | __launch_bounds__( MAX_THREADS_PER_BLOCK, -MIN_BLOCKS_PER_MP )
# | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/Inputs/cuda.h:14:61: note: expanded from macro '__launch_bounds__'
# | 14 | #define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
# | | ^~~~~~~~~~~
# | 2 warnings generated when compiling for nvptx-unknown-unknown.
# `-----------------------------
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LLVM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LLVM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu:40:10: error: LLVM: expected string not found in input
# | // LLVM: @{{.*}}Kernel3{{.*}}() #[[ATTR1]]
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll:19:47: note: scanning from here
# | define dso_local ptx_kernel void @Kernel2() #1 {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll:19:47: note: with "ATTR1" equal to "1"
# | define dso_local ptx_kernel void @Kernel2() #1 {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll:43:32: note: possible intended match here
# | define dso_local ptx_kernel void @_Z7Kernel6v() #5 {
# | ^
# |
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/launch-bounds.cu.tmp.ogcg.ll
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/launch-bounds.cu
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 14: entry:
# | 15: ret void
# | 16: }
# | 17:
# | 18: ; Function Attrs: convergent mustprogress noinline norecurse nounwind optnone
# | 19: define dso_local ptx_kernel void @Kernel2() #1 {
# | check:40'0 { search range start (exclusive)
# | check:40'1 error: no match found in search range
# | check:40'2 with "ATTR1" equal to "1"
# | 20: entry:
# | 21: ret void
# | 22: }
# | 23:
# | 24: ; Function Attrs: convergent likely_module_local mustprogress noinline norecurse nounwind optnone
# | .
# | .
# | .
# | 38: entry:
# | 39: ret void
# | 40: }
# | 41:
# | 42: ; Function Attrs: convergent mustprogress noinline norecurse nounwind optnone
# | 43: define dso_local ptx_kernel void @_Z7Kernel6v() #5 {
# | check:40'3 ? possible intended match
# | 44: entry:
# | 45: ret void
# | 46: }
# | 47:
# | 48: ; Function Attrs: convergent mustprogress noinline norecurse nounwind optnone
# | .
# | .
# | .
# | 67:
# | 68: !llvm.module.flags = !{!0}
# | 69: !llvm.ident = !{!1}
# | 70:
# | 71: !0 = !{i32 4, !"nvvm-reflect-ftz", i32 0}
# | 72: !1 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project e01f7de8c5ba6403d420c65e21340a802de8587c)"}
# | check:40'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple amdgpu12.50-unknown-unknown -fcuda-is-device -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple amdgpu12.50-unknown-unknown -fcuda-is-device -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip:48:16: error: CHECK-SAME: expected string not found in input
# | // CHECK-SAME: ptr noundef [[GADDR:%.*]], i32 noundef [[VAL:%.*]]) #[[ATTR0]] comdat {
# | ^
# | <stdin>:29:81: note: scanning from here
# | define linkonce_odr void @_Z39template_cooperative_atomic_store_32x4BILj5EEvPii(ptr noundef %gaddr, i32 noundef %val) #1 comdat {
# | ^
# | <stdin>:29:81: note: with "ATTR0" equal to "0"
# | define linkonce_odr void @_Z39template_cooperative_atomic_store_32x4BILj5EEvPii(ptr noundef %gaddr, i32 noundef %val) #1 comdat {
# | ^
# | <stdin>:29:81: note: pattern attempts to capture variables: "GADDR", "VAL"
# | define linkonce_odr void @_Z39template_cooperative_atomic_store_32x4BILj5EEvPii(ptr noundef %gaddr, i32 noundef %val) #1 comdat {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip:79:16: error: CHECK-SAME: expected string not found in input
# | // CHECK-SAME: ptr noundef [[GADDR:%.*]]) #[[ATTR0]] comdat {
# | ^
# | <stdin>:60:86: note: scanning from here
# | define linkonce_odr noundef i32 @_Z38template_cooperative_atomic_load_32x4BILj5EEiPi(ptr noundef %gaddr) #1 comdat {
# | ^
# | <stdin>:60:86: note: with "ATTR0" equal to "0"
# | define linkonce_odr noundef i32 @_Z38template_cooperative_atomic_load_32x4BILj5EEiPi(ptr noundef %gaddr) #1 comdat {
# | ^
# | <stdin>:60:86: note: pattern attempts to capture variables: "GADDR"
# | define linkonce_odr noundef i32 @_Z38template_cooperative_atomic_load_32x4BILj5EEiPi(ptr noundef %gaddr) #1 comdat {
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 24: call void @_Z39template_cooperative_atomic_store_32x4BILj5EEvPii(ptr noundef %0, i32 noundef %1) #4
# | 25: ret void
# | 26: }
# | 27:
# | 28: ; Function Attrs: convergent likely_module_local mustprogress noinline nounwind optnone
# | 29: define linkonce_odr void @_Z39template_cooperative_atomic_store_32x4BILj5EEvPii(ptr noundef %gaddr, i32 noundef %val) #1 comdat {
# | same:48'0 { search range start (exclusive)
# | same:48'1 error: no match found in search range
# | same:48'2 with "ATTR0" equal to "0"
# | same:48'3 pattern attempts to capture variables: "GADDR", "VAL"
# | 30: entry:
# | 31: %gaddr.addr = alloca ptr, align 8, addrspace(5)
# | 32: %val.addr = alloca i32, align 4, addrspace(5)
# | 33: %gaddr.addr.ascast = addrspacecast ptr addrspace(5) %gaddr.addr to ptr
# | 34: %val.addr.ascast = addrspacecast ptr addrspace(5) %val.addr to ptr
# | .
# | .
# | .
# | 39: call void @llvm.amdgcn.cooperative.atomic.store.32x4B.p0(ptr %0, i32 %1, i32 5, metadata !3)
# | 40: ret void
# | 41: }
# | 42:
# | 43: ; Function Attrs: convergent mustprogress noinline nounwind optnone
# | 44: define dso_local void @_Z41test_amdgcn_cooperative_atomic_load_32x4BPiS_(ptr noundef %addr, ptr noundef %out) #0 {
# | same:48'4 } search range end (exclusive)
# | 45: entry:
# | 46: %addr.addr = alloca ptr, align 8, addrspace(5)
# | 47: %out.addr = alloca ptr, align 8, addrspace(5)
# | 48: %addr.addr.ascast = addrspacecast ptr addrspace(5) %addr.addr to ptr
# | 49: %out.addr.ascast = addrspacecast ptr addrspace(5) %out.addr to ptr
# | .
# | .
# | .
# | 55: store i32 %call, ptr %1, align 4
# | 56: ret void
# | 57: }
# | 58:
# | 59: ; Function Attrs: convergent likely_module_local mustprogress noinline nounwind optnone
# | 60: define linkonce_odr noundef i32 @_Z38template_cooperative_atomic_load_32x4BILj5EEiPi(ptr noundef %gaddr) #1 comdat {
# | same:79'0 { search range start (exclusive)
# | same:79'1 error: no match found in search range
# | same:79'2 with "ATTR0" equal to "0"
# | same:79'3 pattern attempts to capture variables: "GADDR"
# | 61: entry:
# | 62: %gaddr.addr = alloca ptr, align 8, addrspace(5)
# | 63: %gaddr.addr.ascast = addrspacecast ptr addrspace(5) %gaddr.addr to ptr
# | 64: store ptr %gaddr, ptr %gaddr.addr.ascast, align 8
# | 65: %0 = load ptr, ptr %gaddr.addr.ascast, align 8
# | .
# | .
# | .
# | 84:
# | 85: !0 = !{i32 1, !"amdhsa_code_object_version", i32 600}
# | 86: !1 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}
# | 87: !2 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project e01f7de8c5ba6403d420c65e21340a802de8587c)"}
# | 88: !3 = !{!"agent"}
# | 89: !4 = !{!""}
# | same:79'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple amdgpu12.50-amd-amdhsa -emit-llvm -fcuda-is-device -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple amdgpu12.50-amd-amdhsa -emit-llvm -fcuda-is-device -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip:37:16: error: CHECK-SAME: expected string not found in input
# | // CHECK-SAME: ptr noundef [[INPTR:%.*]]) #[[ATTR0]] comdat {
# | ^
# | <stdin>:28:103: note: scanning from here
# | define linkonce_odr noundef <4 x i32> @_Z39templated_amdgcn_flat_load_monitor_b128ILj5ELj0EEDv4_iPS0_(ptr noundef %inptr) #1 comdat {
# | ^
# | <stdin>:28:103: note: with "ATTR0" equal to "0"
# | define linkonce_odr noundef <4 x i32> @_Z39templated_amdgcn_flat_load_monitor_b128ILj5ELj0EEDv4_iPS0_(ptr noundef %inptr) #1 comdat {
# | ^
# | <stdin>:28:103: note: pattern attempts to capture variables: "INPTR"
# | define linkonce_odr noundef <4 x i32> @_Z39templated_amdgcn_flat_load_monitor_b128ILj5ELj0EEDv4_iPS0_(ptr noundef %inptr) #1 comdat {
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/builtins-amdgcn-gfx1250-load-monitor-templated.hip
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 23: store <4 x i32> %call, ptr %1, align 16
# | 24: ret void
# | 25: }
# | 26:
# | 27: ; Function Attrs: convergent likely_module_local mustprogress noinline nounwind optnone
# | 28: define linkonce_odr noundef <4 x i32> @_Z39templated_amdgcn_flat_load_monitor_b128ILj5ELj0EEDv4_iPS0_(ptr noundef %inptr) #1 comdat {
# | same:37'0 { search range start (exclusive)
# | same:37'1 error: no match found in search range
# | same:37'2 with "ATTR0" equal to "0"
# | same:37'3 pattern attempts to capture variables: "INPTR"
# | 29: entry:
# | 30: %inptr.addr = alloca ptr, align 8, addrspace(5)
# | 31: %inptr.addr.ascast = addrspacecast ptr addrspace(5) %inptr.addr to ptr
# | 32: store ptr %inptr, ptr %inptr.addr.ascast, align 8
# | 33: %0 = load ptr, ptr %inptr.addr.ascast, align 8
# | .
# | .
# | .
# | 47: !llvm.ident = !{!2}
# | 48:
# | 49: !0 = !{i32 1, !"amdhsa_code_object_version", i32 600}
# | 50: !1 = !{i32 1, !"amdgpu_printf_kind", !"hostcall"}
# | 51: !2 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project e01f7de8c5ba6403d420c65e21340a802de8587c)"}
# | 52: !3 = !{!""}
# | same:37'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHIP/hip_weak_alias.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgpu-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGenHIP/Output/hip_weak_alias.cpp.tmp-host.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgpu-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CodeGenHIP/Output/hip_weak_alias.cpp.tmp-host.bc
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgpu-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp --check-prefix=HOST
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgpu-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp --check-prefix=HOST
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp:74:15: error: HOST-SAME: expected string not found in input
# | // HOST-SAME: ) #[[ATTR0]] comdat {
# | ^
# | <stdin>:36:46: note: scanning from here
# | define linkonce_odr noundef i32 @_Z7__Threev() #1 comdat {
# | ^
# | <stdin>:36:46: note: with "ATTR0" equal to "0"
# | define linkonce_odr noundef i32 @_Z7__Threev() #1 comdat {
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenHIP/hip_weak_alias.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 31: entry:
# | 32: ret i32 2
# | 33: }
# | 34:
# | 35: ; Function Attrs: likely_module_local mustprogress noinline nounwind optnone
# | 36: define linkonce_odr noundef i32 @_Z7__Threev() #1 comdat {
# | same:74'0 { search range start (exclusive)
# | same:74'1 error: no match found in search range
# | same:74'2 with "ATTR0" equal to "0"
# | 37: entry:
# | 38: ret i32 5
# | 39: }
# | 40:
# | 41: ; Function Attrs: mustprogress noinline nounwind optnone
# | 42: define dso_local noundef i32 @_Z6__Fourv() #0 {
# | same:74'3 } search range end (exclusive)
# | 43: entry:
# | 44: ret i32 2
# | 45: }
# | 46:
# | 47: ; Function Attrs: mustprogress noinline nounwind optnone
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.OpenMP/amdgcn_target_global_constructor.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgpu-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/amdgcn_target_global_constructor.cpp.tmp-ppc-host.bc
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fopenmp-targets=amdgpu-amd-amdhsa -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/amdgcn_target_global_constructor.cpp.tmp-ppc-host.bc
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple amdgpu-amd-amdhsa -fopenmp-targets=amdgpu-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/amdgcn_target_global_constructor.cpp.tmp-ppc-host.bc -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -fopenmp -x c++ -std=c++11 -triple amdgpu-amd-amdhsa -fopenmp-targets=amdgpu-amd-amdhsa -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/amdgcn_target_global_constructor.cpp.tmp-ppc-host.bc -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp:100:11: error: CHECK: expected string not found in input
# | // CHECK: attributes #[[ATTR1]] = { convergent mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | ^
# | <stdin>:94:109: note: scanning from here
# | attributes #0 = { convergent noinline nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | ^
# | <stdin>:94:109: note: with "ATTR1" equal to "1"
# | attributes #0 = { convergent noinline nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | ^
# | <stdin>:95:21: note: possible intended match here
# | attributes #1 = { convergent likely_module_local mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 89: entry:
# | 90: call void @__cxx_global_var_init()
# | 91: ret void
# | 92: }
# | 93:
# | 94: attributes #0 = { convergent noinline nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | check:100'0 { search range start (exclusive)
# | check:100'1 error: no match found in search range
# | check:100'2 with "ATTR1" equal to "1"
# | 95: attributes #1 = { convergent likely_module_local mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | check:100'3 ? possible intended match
# | 96: attributes #2 = { convergent "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | 97: attributes #3 = { convergent }
# | 98: attributes #4 = { convergent nounwind }
# | 99:
# | 100: !omp_offload.info = !{!0}
# | 101: !llvm.module.flags = !{!1, !2, !3}
# | 102: !llvm.ident = !{!4}
# | 103:
# | 104: !0 = !{i32 1, !"A", i32 0, i32 0}
# | 105: !1 = !{i32 1, !"amdhsa_code_object_version", i32 600}
# | 106: !2 = !{i32 7, !"openmp", i32 51}
# | 107: !3 = !{i32 7, !"openmp-device", i32 51}
# | 108: !4 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project e01f7de8c5ba6403d420c65e21340a802de8587c)"}
# | check:100'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/238529
More information about the cfe-commits
mailing list