repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
X86
/
GC
/
cg-O0.ll
blob
1a390c9eb1c1b10f39174ccb7b86a053e7331e02
1
; RUN: llc < %s -O0
2
; REQUIRES: default_triple
3
4
define i32 @main() {
5
entry:
6
call void @f()
7
ret i32 0
8
}
9
10
define void @f() gc "ocaml" {
11
entry:
12
%ptr.stackref = alloca i8*
13
%gcroot = bitcast i8** %ptr.stackref to i8**
14
call void @llvm.gcroot(i8** %gcroot, i8* null)
15
ret void
16
}
17
18
declare void @llvm.gcroot(i8**, i8*) nounwind