brintos

brintos / llvm-project-archived public Read only

0
0
Text · 453 B · 47145bc Raw
24 lines · plain
1; RUN: opt -S -passes=place-safepoints < %s | FileCheck %s2 3declare void @callee()4 5define void @test() gc "statepoint-example" {6; CHECK-LABEL: test(7entry:8; CHECK: entry:9; CHECK: call void @do_safepoint()10  br label %other11 12other:13; CHECK: other:14  call void @callee() "gc-leaf-function"15; CHECK: call void @do_safepoint()16  br label %other17}18 19declare void @do_safepoint()20define void @gc.safepoint_poll() {21  call void @do_safepoint()22  ret void23}24