projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Arrange to print constants that match "n" and "i" constraints
[oota-llvm.git]
/
test
/
CodeGen
/
Generic
/
GC
/
argpromotion.ll
1
; RUN: llvm-as < %s | opt -anders-aa -argpromotion
2
3
declare void @llvm.gcroot(i8**, i8*)
4
5
define i32 @g() {
6
entry:
7
%var = alloca i32
8
store i32 1, i32* %var
9
%x = call i32 @f(i32* %var)
10
ret i32 %x
11
}
12
13
define internal i32 @f(i32* %xp) gc "example" {
14
entry:
15
%var = alloca i8*
16
call void @llvm.gcroot(i8** %var, i8* null)
17
%x = load i32* %xp
18
ret i32 %x
19
}