[llvm-branch-commits] [clang] [CIR][CUDA][HIP] Add NVPTX target info and CUDA/HIP global emission filtering (PR #177827)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Jan 24 21:32:47 PST 2026


github-actions[bot] wrote:

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

* 86856 tests passed
* 752 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.CIR/CodeGen/CUDA/filter-decl.cu</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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -x cuda    -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/../inputs -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -x cuda -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/../inputs -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu --check-prefix=CHECK-HOST
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu --check-prefix=CHECK-HOST
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu:35:16: error: CHECK-HOST: expected string not found in input
# | // CHECK-HOST: cir.func {{.*}} @__device_stub__globalfunc()
# |                ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir:8:53: note: scanning from here
# |  cir.func no_inline dso_local @_Z14hostdevicefuncv() {
# |                                                     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir:11:21: note: possible intended match here
# |  cir.func no_inline dso_local @_Z25__device_stub__globalfuncv() {
# |                     ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: module @"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu" attributes {cir.lang = #cir.lang<cxx>, cir.module_asm = [], cir.triple = "x86_64-unknown-linux-gnu", dlti.dl_spec = #dlti.dl_spec<!llvm.ptr<270> = dense<32> : vector<4xi64>, !llvm.ptr<271> = dense<32> : vector<4xi64>, !llvm.ptr<272> = dense<64> : vector<4xi64>, i64 = dense<64> : vector<2xi64>, i128 = dense<128> : vector<2xi64>, f80 = dense<128> : vector<2xi64>, !llvm.ptr = dense<64> : vector<4xi64>, i1 = dense<8> : vector<2xi64>, i8 = dense<8> : vector<2xi64>, i16 = dense<16> : vector<2xi64>, i32 = dense<32> : vector<2xi64>, f16 = dense<16> : vector<2xi64>, f64 = dense<64> : vector<2xi64>, f128 = dense<128> : vector<2xi64>, "dlti.endianness" = "little", "dlti.mangling_mode" = "e", "dlti.legal_int_widths" = array<i32: 8, 16, 32, 64>, "dlti.stack_alignment" = 128 : i64>} { 
# |             2:  cir.func no_inline dso_local @_Z20implicithostonlyfuncv() { 
# |             3:  cir.return loc(#loc2) 
# |             4:  } loc(#loc9) 
# |             5:  cir.func no_inline dso_local @_Z20explicithostonlyfuncv() { 
# |             6:  cir.return loc(#loc4) 
# |             7:  } loc(#loc10) 
# |             8:  cir.func no_inline dso_local @_Z14hostdevicefuncv() { 
# | check:35'0                                                         X~~ error: no match found
# |             9:  cir.return loc(#loc6) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~
# |            10:  } loc(#loc11) 
# | check:35'0     ~~~~~~~~~~~~~~~
# |            11:  cir.func no_inline dso_local @_Z25__device_stub__globalfuncv() { 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:35'1                         ?                                              possible intended match
# |            12:  cir.return loc(#loc8) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~
# |            13:  } loc(#loc12) 
# | check:35'0     ~~~~~~~~~~~~~~~
# |            14: } loc(#loc) 
# | check:35'0     ~~~~~~~~~~~~
# |            15: #loc = loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu":0:0) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            16: #loc1 = loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu":17:1) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGen/CUDA/filter-decl.cu</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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -x cuda    -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/../inputs -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -x cuda -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/../inputs -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu --check-prefix=CHECK-HOST
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu --check-prefix=CHECK-HOST
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu:35:16: error: CHECK-HOST: expected string not found in input
# | // CHECK-HOST: cir.func {{.*}} @__device_stub__globalfunc()
# |                ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir:8:53: note: scanning from here
# |  cir.func no_inline dso_local @_Z14hostdevicefuncv() {
# |                                                     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir:11:21: note: possible intended match here
# |  cir.func no_inline dso_local @_Z25__device_stub__globalfuncv() {
# |                     ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/CUDA/Output/filter-decl.cu.tmp.host.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: module @"/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu" attributes {cir.lang = #cir.lang<cxx>, cir.module_asm = [], cir.triple = "x86_64-unknown-linux-gnu", dlti.dl_spec = #dlti.dl_spec<!llvm.ptr<270> = dense<32> : vector<4xi64>, !llvm.ptr<271> = dense<32> : vector<4xi64>, !llvm.ptr<272> = dense<64> : vector<4xi64>, i64 = dense<64> : vector<2xi64>, i128 = dense<128> : vector<2xi64>, f80 = dense<128> : vector<2xi64>, !llvm.ptr = dense<64> : vector<4xi64>, i1 = dense<8> : vector<2xi64>, i8 = dense<8> : vector<2xi64>, i16 = dense<16> : vector<2xi64>, i32 = dense<32> : vector<2xi64>, f16 = dense<16> : vector<2xi64>, f64 = dense<64> : vector<2xi64>, f128 = dense<128> : vector<2xi64>, "dlti.endianness" = "little", "dlti.mangling_mode" = "e", "dlti.legal_int_widths" = array<i32: 8, 16, 32, 64>, "dlti.stack_alignment" = 128 : i64>} { 
# |             2:  cir.func no_inline dso_local @_Z20implicithostonlyfuncv() { 
# |             3:  cir.return loc(#loc2) 
# |             4:  } loc(#loc9) 
# |             5:  cir.func no_inline dso_local @_Z20explicithostonlyfuncv() { 
# |             6:  cir.return loc(#loc4) 
# |             7:  } loc(#loc10) 
# |             8:  cir.func no_inline dso_local @_Z14hostdevicefuncv() { 
# | check:35'0                                                         X~~ error: no match found
# |             9:  cir.return loc(#loc6) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~
# |            10:  } loc(#loc11) 
# | check:35'0     ~~~~~~~~~~~~~~~
# |            11:  cir.func no_inline dso_local @_Z25__device_stub__globalfuncv() { 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:35'1                         ?                                              possible intended match
# |            12:  cir.return loc(#loc8) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~
# |            13:  } loc(#loc12) 
# | check:35'0     ~~~~~~~~~~~~~~~
# |            14: } loc(#loc) 
# | check:35'0     ~~~~~~~~~~~~
# |            15: #loc = loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu":0:0) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            16: #loc1 = loc("/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/CUDA/filter-decl.cu":17:1) 
# | check:35'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# 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/177827


More information about the llvm-branch-commits mailing list