[llvm] [SPIRV] Add logic for OpGenericCastToPtrExplicit rewriting (PR #146596)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 07:46:19 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/19241
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
Passed : 46362 (97.77%)
Expectedly Failed: 27 (0.06%)
[1386/1388] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
[1387/1388] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/wasm-ld
-- Testing: 60066 tests, 60 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: LLVM :: Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll (44299 of 60066)
******************** TEST 'LLVM :: Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt < /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll # RUN: at line 3
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt: warning: failed to infer data layout: unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt: WARNING: failed to create target machine for 'spirv64-unknown-unknown': unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll:11:11: error: CHECK: expected string not found in input
; CHECK: %b1 = icmp eq ptr addrspace(1) %global, null
^
<stdin>:5:45: note: scanning from here
define i1 @kernel1(ptr addrspace(1) %global) {
^
<stdin>:8:2: note: possible intended match here
%b1 = icmp eq ptr addrspace(1) %c2, null
^
Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ; ModuleID = '<stdin>'
2: source_filename = "<stdin>"
3: target triple = "spirv64-unknown-unknown"
4:
5: define i1 @kernel1(ptr addrspace(1) %global) {
check:11'0 X~~ error: no match found
6: %c1 = addrspacecast ptr addrspace(1) %global to ptr addrspace(4)
check:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: %c2 = call ptr addrspace(1) @llvm.spv.generic.cast.to.ptr.explicit.p1(ptr addrspace(4) %c1)
check:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: %b1 = icmp eq ptr addrspace(1) %c2, null
Step 7 (check) failure: check (failure)
...
Passed : 46362 (97.77%)
Expectedly Failed: 27 (0.06%)
[1386/1388] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
[1387/1388] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/wasm-ld
-- Testing: 60066 tests, 60 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: LLVM :: Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll (44299 of 60066)
******************** TEST 'LLVM :: Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt < /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll # RUN: at line 3
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt: warning: failed to infer data layout: unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-6c66b4dc/bin/opt: WARNING: failed to create target machine for 'spirv64-unknown-unknown': unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll:11:11: error: CHECK: expected string not found in input
; CHECK: %b1 = icmp eq ptr addrspace(1) %global, null
^
<stdin>:5:45: note: scanning from here
define i1 @kernel1(ptr addrspace(1) %global) {
^
<stdin>:8:2: note: possible intended match here
%b1 = icmp eq ptr addrspace(1) %c2, null
^
Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ; ModuleID = '<stdin>'
2: source_filename = "<stdin>"
3: target triple = "spirv64-unknown-unknown"
4:
5: define i1 @kernel1(ptr addrspace(1) %global) {
check:11'0 X~~ error: no match found
6: %c1 = addrspacecast ptr addrspace(1) %global to ptr addrspace(4)
check:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: %c2 = call ptr addrspace(1) @llvm.spv.generic.cast.to.ptr.explicit.p1(ptr addrspace(4) %c1)
check:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8: %b1 = icmp eq ptr addrspace(1) %c2, null
```
</details>
https://github.com/llvm/llvm-project/pull/146596
More information about the llvm-commits
mailing list