mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-17 03:07:06 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
362 B
LLVM
15 lines
362 B
LLVM
; RUN: llc < %s -asm-verbose | grep {frame size} | grep -v 0x0
|
|
|
|
declare void @llvm.gcroot(i8** %value, i8* %tag)
|
|
declare void @g() gc "ocaml"
|
|
|
|
define void @f(i8* %arg.0, void()* %arg.1) gc "ocaml" {
|
|
entry:
|
|
%gcroot.0 = alloca i8*
|
|
call void @llvm.gcroot(i8** %gcroot.0, i8* null)
|
|
store i8* %arg.0, i8** %gcroot.0
|
|
call void @g()
|
|
call void %arg.1()
|
|
ret void
|
|
}
|