brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 75fe865 Raw
53 lines · plain
1; RUN: llc -mtriple=spirv-unknown-vulkan-compute -O0 %s -o - | FileCheck %s2; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}3 4target triple = "spirv-unknown-vulkan1.3-compute"5 6; Function Attrs: convergent noinline norecurse nounwind optnone7define spir_func noundef i32 @_Z7processv() #0 {8 9; CHECK: %[[#entry:]] = OpLabel10; CHECK:                OpSelectionMerge %[[#merge:]] None11; CHECK:                OpBranchConditional %[[#]] %[[#left:]] %[[#right:]]12entry:13  %0 = call token @llvm.experimental.convergence.entry()14  %1 = alloca i32, align 415  br i1 true, label %left, label %right16 17; CHECK: %[[#right]] = OpLabel18; CHECK:               OpBranch %[[#merge]]19right:20  store i32 0, ptr %121  br label %end22 23; CHECK: %[[#left]] = OpLabel24; CHECK:              OpBranch %[[#merge]]25left:26  store i32 0, ptr %127  br label %end28 29; CHECK: %[[#merge]] = OpLabel30; CHECK:               OpReturnValue %[[#]]31end:32  ret i32 033}34 35; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)36declare token @llvm.experimental.convergence.entry() #137 38; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)39declare token @llvm.experimental.convergence.loop() #140 41 42attributes #0 = { convergent noinline norecurse nounwind optnone "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }43attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }44attributes #2 = { convergent norecurse "frame-pointer"="all" "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }45attributes #3 = { convergent }46 47!llvm.module.flags = !{!0, !1, !2}48 49 50!0 = !{i32 1, !"wchar_size", i32 4}51!1 = !{i32 4, !"dx.disable_optimizations", i32 1}52!2 = !{i32 7, !"frame-pointer", i32 2}53