[clang] [CIR][CUDA] Upstream device stub body emission and name mangling (PR #177790)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 00:24:45 PST 2026


github-actions[bot] wrote:

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

* 86970 tests passed
* 753 tests skipped
* 4 tests failed

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

### Clang
<details>
<summary>Clang.CIR/CodeGenCUDA/kernel-call.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 -target-sdk-version=9.2    -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-call.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2 -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-call.cu.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu:9:10: fatal error: 'cuda.h' file not found
# |     9 | #include "cuda.h"
# |       |          ^~~~~~~~
# | 1 error generated when compiling for host.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGenCUDA/kernel-stub-name.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2    -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-stub-name.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2 -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-stub-name.cu.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu:7:10: fatal error: 'cuda.h' file not found
# |     7 | #include "cuda.h"
# |       |          ^~~~~~~~
# | 1 error generated when compiling for host.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGenCUDA/kernel-call.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 -target-sdk-version=9.2    -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-call.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2 -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-call.cu.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-call.cu:9:10: fatal error: 'cuda.h' file not found
# |     9 | #include "cuda.h"
# |       |          ^~~~~~~~
# | 1 error generated when compiling for host.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGenCUDA/kernel-stub-name.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2    -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-stub-name.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/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -target-sdk-version=9.2 -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/../Inputs/ -x cuda -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenCUDA/Output/kernel-stub-name.cu.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenCUDA/kernel-stub-name.cu:7:10: fatal error: 'cuda.h' file not found
# |     7 | #include "cuda.h"
# |       |          ^~~~~~~~
# | 1 error generated when compiling for host.
# `-----------------------------
# 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/177790


More information about the cfe-commits mailing list