[clang] [WIP] Advance the merger progress of #211963 (PR #216611)

via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 16 16:20:08 PDT 2026


github-actions[bot] wrote:

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

* 90879 tests passed
* 1798 tests skipped
* 2 tests failed

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

### Clang
<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:31:11: error: CHECK: expected string not found in input
# | // CHECK: @llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @__dtor_A, ptr null }]
# |           ^
# | <stdin>:23:164: note: scanning from here
# | @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_amdgcn_target_global_constructor.cpp, ptr null }]
# |                                                                                                                                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp:37:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: ret void
# |                ^
# | <stdin>:30:2: note: 'next' match was here
# |  ret void
# |  ^
# | <stdin>:28:116: note: previous match ended here
# |  call void @_ZN1SC1Ev(ptr noundef nonnull align 4 dereferenceable(4) addrspacecast (ptr addrspace(1) @A to ptr)) #4
# |                                                                                                                    ^
# | <stdin>:29:1: note: non-matching line after previous match is here
# |  %0 = call i32 @__cxa_atexit(ptr @_ZN1SD1Ev, ptr addrspacecast (ptr addrspace(1) @A to ptr), ptr addrspacecast (ptr addrspace(1) @__dso_handle to ptr)) #2
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/amdgcn_target_global_constructor.cpp:62:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: define {{[^@]+}}@__dtor_A
# |                 ^
# | <stdin>:45:43: note: scanning from here
# | define linkonce_odr hidden void @_ZN1SD1Ev(ptr noundef nonnull align 4 dead_on_return(4) dereferenceable(4) %this) unnamed_addr #1 comdat align 2 {
# |                                           ^
# | <stdin>:59:1: note: possible intended match here
# | define linkonce_odr hidden void @_ZN1SC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %this) unnamed_addr #1 comdat align 2 {
# | ^
# | 
# | 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:
# | <<<<<<
# |             .
# |             .
# |             .
# |            18: @__omp_rtl_assume_threads_oversubscription = weak_odr hidden addrspace(1) constant i32 0 
# |            19: @__omp_rtl_assume_no_thread_state = weak_odr hidden addrspace(1) constant i32 0 
# |            20: @__omp_rtl_assume_no_nested_parallelism = weak_odr hidden addrspace(1) constant i32 0 
# |            21: @A = addrspace(1) global %struct.S zeroinitializer, align 4 
# |            22: @__dso_handle = external hidden addrspace(1) global i8 
# |            23: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_amdgcn_target_global_constructor.cpp, ptr null }] 
# | check:31'0                                                                                                                                                                       {   search range start (exclusive)
# | check:31'1                                                                                                                                                                           error: no match found in search range
# |            24:  
# |            25: ; Function Attrs: convergent noinline nounwind 
# |            26: define internal void @__cxx_global_var_init() #0 { 
# | check:31'2                                                }         search range end (exclusive)
# |            27: entry: 
# |            28:  call void @_ZN1SC1Ev(ptr noundef nonnull align 4 dereferenceable(4) addrspacecast (ptr addrspace(1) @A to ptr)) #4 
# | next:37'0                                                                                                                        {   search range start (exclusive)
# |            29:  %0 = call i32 @__cxa_atexit(ptr @_ZN1SD1Ev, ptr addrspacecast (ptr addrspace(1) @A to ptr), ptr addrspacecast (ptr addrspace(1) @__dso_handle to ptr)) #2 
# |            30:  ret void 
# | next:37'1       !~~~~~~~   error: match on wrong line
# |            31: } 
# |            32:  
# |            33: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# |            34: define linkonce_odr hidden void @_ZN1SC1Ev(ptr noundef nonnull align 4 dereferenceable(4) %this) unnamed_addr #1 comdat align 2 { 
# | next:37'2                                                }                                                                                         search range end (exclusive)
# |            35: entry: 
# |            36:  %this.addr = alloca ptr, align 8, addrspace(5) 
# |            37:  %this.addr.ascast = addrspacecast ptr addrspace(5) %this.addr to ptr 
# |            38:  store ptr %this, ptr %this.addr.ascast, align 8 
# |            39:  %this1 = load ptr, ptr %this.addr.ascast, align 8 
# |            40:  call void @_ZN1SC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %this1) #4 
# |            41:  ret void 
# |            42: } 
# |            43:  
# |            44: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# |            45: define linkonce_odr hidden void @_ZN1SD1Ev(ptr noundef nonnull align 4 dead_on_return(4) dereferenceable(4) %this) unnamed_addr #1 comdat align 2 { 
# | label:62'0                                              {                                                                                                            search range start (exclusive)
# | label:62'1                                                                                                                                                           error: no match found in search range
# |            46: entry: 
# |            47:  %this.addr = alloca ptr, align 8, addrspace(5) 
# |            48:  %this.addr.ascast = addrspacecast ptr addrspace(5) %this.addr to ptr 
# |            49:  store ptr %this, ptr %this.addr.ascast, align 8 
# |            50:  %this1 = load ptr, ptr %this.addr.ascast, align 8 
# |            51:  call void @_ZN1SD2Ev(ptr noundef nonnull align 4 dead_on_return(4) dereferenceable(4) %this1) #5 
# |            52:  ret void 
# |            53: } 
# |            54:  
# |            55: ; Function Attrs: nounwind 
# |            56: declare i32 @__cxa_atexit(ptr, ptr, ptr) #2 
# |            57:  
# |            58: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# |            59: define linkonce_odr hidden void @_ZN1SC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %this) unnamed_addr #1 comdat align 2 { 
# | label:62'2     ?                                                                                                                                   possible intended match
# |            60: entry: 
# |            61:  %this.addr = alloca ptr, align 8, addrspace(5) 
# |            62:  %this.addr.ascast = addrspacecast ptr addrspace(5) %this.addr to ptr 
# |            63:  store ptr %this, ptr %this.addr.ascast, align 8 
# |            64:  %this1 = load ptr, ptr %this.addr.ascast, align 8 
# |             .
# |             .
# |             .
# |           101:  
# |           102: !0 = !{i32 1, !"A", i32 0, i32 0} 
# |           103: !1 = !{i32 1, !"amdhsa_code_object_version", i32 600} 
# |           104: !2 = !{i32 7, !"openmp", i32 51} 
# |           105: !3 = !{i32 7, !"openmp-device", i32 51} 
# |           106: !4 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 41c4c8bcd3c5549c07b5d5a6c164eb420100514e)"} 
# | label:62'3                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/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++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp -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/nvptx_declare_target_var_ctor_dtor_codegen.cpp --check-prefix HOST --check-prefix CHECK
# 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++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.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 --allow-unused-prefixes /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp --check-prefix HOST --check-prefix CHECK
# note: command had no output on stdout or stderr
# RUN: at line 2
/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++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_declare_target_var_ctor_dtor_codegen.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++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_declare_target_var_ctor_dtor_codegen.cpp.tmp-ppc-host.bc
# note: command had no output on stdout or stderr
# 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 -fopenmp -x c++ -triple nvptx64-nvidia-cuda -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp -fopenmp-is-target-device -fvisibility=protected -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_declare_target_var_ctor_dtor_codegen.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/nvptx_declare_target_var_ctor_dtor_codegen.cpp --check-prefix DEVICE --check-prefix CHECK
# 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++ -triple nvptx64-nvidia-cuda -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp -fopenmp-is-target-device -fvisibility=protected -fopenmp-host-ir-file-path /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/OpenMP/Output/nvptx_declare_target_var_ctor_dtor_codegen.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/nvptx_declare_target_var_ctor_dtor_codegen.cpp --check-prefix DEVICE --check-prefix CHECK
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp:24:16: error: DEVICE-DAG: expected string not found in input
# | // DEVICE-DAG: @llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @[[DTOR:.+]], ptr null }]
# |                ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp'
# | ^
# | <stdin>:1:1: note: pattern attempts to capture variables: "DTOR"
# | ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp'
# | ^
# | <stdin>:33:1: note: possible intended match here
# | @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_nvptx_declare_target_var_ctor_dtor_codegen.cpp, ptr null }]
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp' 
# | dag:24'0    {                                                                                                                                           search range start (exclusive)
# | dag:24'1                                                                                                                                                error: no match found in search range
# | dag:24'2                                                                                                                                                pattern attempts to capture variables: "DTOR"
# |           2: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp" 
# |           3: target datalayout = "e-p6:32:32-i64:64-i128:128-i256:256-v16:16-v32:32-n16:32:64" 
# |           4: target triple = "nvptx64-nvidia-cuda" 
# |           5:  
# |           6: %struct.ident_t = type { i32, i32, i32, i32, ptr } 
# |           .
# |           .
# |           .
# |          28: @1 = private unnamed_addr constant %struct.ident_t { i32 0, i32 2, i32 0, i32 22, ptr @0 }, align 8 
# |          29: @__omp_offloading_9c_ff873__Z6maini1v_l63_dynamic_environment = weak_odr protected global %struct.DynamicEnvironmentTy zeroinitializer 
# |          30: @__omp_offloading_9c_ff873__Z6maini1v_l63_kernel_environment = weak_odr protected constant %struct.KernelEnvironmentTy { %struct.ConfigurationEnvironmentTy { i8 1, i8 1, i8 1, i32 1, i32 128, i32 -1, i32 -1, i32 0 }, ptr @1, ptr @__omp_offloading_9c_ff873__Z6maini1v_l63_dynamic_environment } 
# |          31: @cd = protected global %struct.S zeroinitializer, align 4 
# |          32: @__dso_handle = external hidden global i8 
# |          33: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_nvptx_declare_target_var_ctor_dtor_codegen.cpp, ptr null }] 
# | dag:24'3     ?                                                                                                                                                                               possible intended match
# |          34: @llvm.compiler.used = appending global [1 x ptr] [ptr @"__ZL1c$ref"], section "llvm.metadata" 
# |          35:  
# |          36: ; Function Attrs: convergent mustprogress noinline nounwind optnone 
# |          37: define hidden noundef i32 @_Z3barv() #0 { 
# |          38: entry: 
# |           .
# |           .
# |           .
# |         197: !2 = !{i32 1, !"cd", i32 0, i32 1} 
# |         198: !3 = !{i32 7, !"openmp", i32 51} 
# |         199: !4 = !{i32 7, !"openmp-device", i32 51} 
# |         200: !5 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project 41c4c8bcd3c5549c07b5d5a6c164eb420100514e)"} 
# |         201: !6 = !{} 
# |         202: !7 = !{i64 4} 
# | dag:24'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/216611


More information about the cfe-commits mailing list