Debian Codegraph @

llvm/test/CodeGen/SPIRV/transcoding/builtin_vars_gep.ll

raw
1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
3
4 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
5 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
6
7 ; CHECK: OpDecorate %[[#Id:]] BuiltIn GlobalInvocationId
8 ; CHECK: %[[#Id]] = OpVariable %[[#]] CrossWorkgroup
9
10 @__spirv_BuiltInGlobalInvocationId = external dso_local local_unnamed_addr addrspace(1) constant <3 x i64>, align 32
11
12 define spir_kernel void @f() {
13 entry:
14 %0 = load i64, ptr addrspace(1) @__spirv_BuiltInGlobalInvocationId, align 32
15 ret void
16 }