[llvm] [NVPTX] Do not permit calls to ptx_kernel CC (PR #190434)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 05:51:38 PDT 2026
================
@@ -1,5 +1,4 @@
; RUN: llvm-dis < %s.bc| FileCheck %s
-; RUN: verify-uselistorder < %s.bc
----------------
jhuber6 wrote:
It fails if you don't change it.
```
FAIL: LLVM :: Bitcode/calling-conventions.3.2.ll (1 of 1)
******************** TEST 'LLVM :: Bitcode/calling-conventions.3.2.ll' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/jhuber/Documents/llvm/llvm-project/build/bin/llvm-dis < /home/jhuber/Documents/llvm/llvm-project/llvm/test/Bitcode/calling-conventions.3.2.ll.bc| /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck /home/jhuber/Documents/llvm/llvm-project/llvm/test/Bitcode/calling-conventions.3.2.ll
# executed command: /home/jhuber/Documents/llvm/llvm-project/build/bin/llvm-dis
# executed command: /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck /home/jhuber/Documents/llvm/llvm-project/llvm/test/Bitcode/calling-conventions.3.2.ll
# RUN: at line 2
/home/jhuber/Documents/llvm/llvm-project/build/bin/verify-uselistorder < /home/jhuber/Documents/llvm/llvm-project/llvm/test/Bitcode/calling-conventions.3.2.ll.bc
# executed command: /home/jhuber/Documents/llvm/llvm-project/build/bin/verify-uselistorder
# .---command stderr------------
# | calling convention does not permit calls
# | call ptx_kernel void @ptx_kernel()
# | /home/jhuber/Documents/llvm/llvm-project/build/bin/verify-uselistorder: -: error: input module is broken!
# `-----------------------------
# error: command failed with exit status: 1
--
```
https://github.com/llvm/llvm-project/pull/190434
More information about the llvm-commits
mailing list