[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:31:51 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/29906
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll # RUN: at line 3
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=infer-address-spaces -S --mtriple=spirv64-unknown-unknown
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: WARNING: failed to create target machine for 'spirv64-unknown-unknown': unable to get target for 'spirv64-unknown-unknown', see --version and --triple.
[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll:11:11: [0m[0;1;31merror: [0m[1mCHECK: expected string not found in input
[0m ; CHECK: %b1 = icmp eq ptr addrspace(1) %global, null
[0;1;32m ^
[0m[1m<stdin>:5:45: [0m[0;1;30mnote: [0m[1mscanning from here
[0mdefine i1 @kernel1(ptr addrspace(1) %global) {
[0;1;32m ^
[0m[1m<stdin>:8:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m %b1 = icmp eq ptr addrspace(1) %c2, null
[0;1;32m ^
[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InferAddressSpaces/SPIRV/generic-cast-explicit.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
[1m[0m[0;1;30m 1: [0m[1m[0;1;46m; ModuleID = '<stdin>' [0m
[0;1;30m 2: [0m[1m[0;1;46msource_filename = "<stdin>" [0m
[0;1;30m 3: [0m[1m[0;1;46mtarget triple = "spirv64-unknown-unknown" [0m
[0;1;30m 4: [0m[1m[0;1;46m [0m
[0;1;30m 5: [0m[1m[0;1;46mdefine i1 [0m at kernel1(ptr addrspace(1) %global)[0;1;46m { [0m
[0;1;32mcheck:7 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;31mcheck:11'0 X~~ error: no match found
[0m[0;1;30m 6: [0m[1m[0;1;46m %c1 = addrspacecast ptr addrspace(1) %global to ptr addrspace(4) [0m
[0;1;31mcheck:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 7: [0m[1m[0;1;46m %c2 = call ptr addrspace(1) @llvm.spv.generic.cast.to.ptr.explicit.p1(ptr addrspace(4) %c1) [0m
[0;1;31mcheck:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 8: [0m[1m[0;1;46m %b1 = icmp eq ptr addrspace(1) %c2, null [0m
[0;1;31mcheck:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;35mcheck:11'1 ? possible intended match
[0m[0;1;30m 9: [0m[1m[0;1;46m ret i1 %b1 [0m
[0;1;31mcheck:11'0 ~~~~~~~~~~~~
[0m[0;1;30m 10: [0m[1m[0;1;46m} [0m
[0;1;31mcheck:11'0 ~~
[0m[0;1;30m 11: [0m[1m[0;1;46m [0m
[0;1;31mcheck:11'0 ~
[0m[0;1;30m 12: [0m[1m[0;1;46mdefine i1 @kernel2(ptr addrspace(1) %global) { [0m
[0;1;31mcheck:11'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 13: [0m[1m[0;1;46m %c1 = addrspacecast ptr addrspace(1) %global to ptr addrspace(4) [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/146596
More information about the llvm-commits
mailing list