Home | History | Annotate | Download | only in GC
      1 ; RUN: llc < %s -O0
      2 
      3 define i32 @main() {
      4 entry:
      5   call void @f()
      6   ret i32 0
      7 }
      8 
      9 define void @f() gc "ocaml" {
     10 entry:
     11   %ptr.stackref = alloca i8*
     12   %gcroot = bitcast i8** %ptr.stackref to i8**
     13   call void @llvm.gcroot(i8** %gcroot, i8* null)
     14   ret void
     15 }
     16 
     17 declare void @llvm.gcroot(i8**, i8*) nounwind
     18