brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 810b578 Raw
48 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 datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-G1"5target triple = "spirv-unknown-vulkan1.3-compute"6 7; Function Attrs: convergent noinline norecurse nounwind optnone8define spir_func noundef i32 @_Z7processv() #0 {9 10; CHECK: %[[#entry:]] = OpLabel11; CHECK:                OpSelectionMerge %[[#merge:]] None12; CHECK:                OpBranchConditional %[[#]] %[[#left:]] %[[#merge]]13entry:14  %0 = call token @llvm.experimental.convergence.entry()15  %1 = alloca i32, align 416  br i1 true, label %left, label %end17 18; CHECK: %[[#left]] = OpLabel19; CHECK:              OpBranch %[[#merge]]20left:21  store i32 0, ptr %122  br label %end23 24; CHECK: %[[#merge]] = OpLabel25; CHECK:               OpReturnValue %[[#]]26end:27  ret i32 028}29 30; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)31declare token @llvm.experimental.convergence.entry() #132 33; Function Attrs: convergent nocallback nofree nosync nounwind willreturn memory(none)34declare token @llvm.experimental.convergence.loop() #135 36 37attributes #0 = { convergent noinline norecurse nounwind optnone "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }38attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }39attributes #2 = { convergent norecurse "frame-pointer"="all" "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }40attributes #3 = { convergent }41 42!llvm.module.flags = !{!0, !1, !2}43 44 45!0 = !{i32 1, !"wchar_size", i32 4}46!1 = !{i32 4, !"dx.disable_optimizations", i32 1}47!2 = !{i32 7, !"frame-pointer", i32 2}48