Debian Codegraph @

llvm/test/CodeGen/SPIRV/ExecutionMode_Fragment.ll

raw
1 ; RUN: llc -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan1.3-pixel %s -o - -filetype=obj | spirv-val --target-env vulkan1.3 %}
3
4 ; CHECK-DAG: OpEntryPoint Fragment %[[#entry:]] "main" {{.*}}
5 ; CHECK-DAG: OpExecutionMode %[[#entry]] OriginUpperLeft
6
7 @.str.b0 = private unnamed_addr constant [3 x i8] c"B0\00", align 1
8
9 define void @main() #0 {
10 entry:
11 %0 = tail call target("spirv.VulkanBuffer", [0 x i32], 12, 1) @llvm.spv.resource.handlefrombinding.tspirv.VulkanBuffer_a0i32_12_1t(i32 0, i32 1, i32 1, i32 0, ptr nonnull @.str.b0)
12 %1 = tail call noundef align 4 dereferenceable(4) ptr addrspace(11) @llvm.spv.resource.getpointer.p11.tspirv.VulkanBuffer_a0i32_12_1t(target("spirv.VulkanBuffer", [0 x i32], 12, 1) %0, i32 0)
13 store i32 1, ptr addrspace(11) %1, align 4
14
15 ret void
16 }
17
18 attributes #0 = { "hlsl.shader"="pixel" }
19 attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(none) }