Displaying 2 results from an estimated 2 matches for "joiniflabel3".
2009 Nov 20
3
[LLVMdev] llvm code working on linux but not mac, 64 bit problem?
...status
--------
@s = internal constant [4 x i8] c"%d\0A\00"
declare i32 @printf(i8 *, ...)
define i32 @main() nounwind {
entry:
%x = alloca i32
%x.0 = add i32 0, 5
%t1 = icmp sgt i32 %x.0, 0
br i1 %t1, label %thenLabel1, label %elseLabel2
thenLabel1:
%x.1 = add i32 2, %x.0
br label %joinIfLabel3
elseLabel2:
%x.2 = add i32 3, %x.0
br label %joinIfLabel3
joinIfLabel3:
%x.3 = phi i32 [%x.1, %thenLabel1],[%x.2, %elseLabel2]
tail call i32 (i8*, ...)* @printf(i8* getelementptr ([4 x i8]* @s, i64
0, i64 0), i32 %x.3) nounwind
ret i32 0
}
-------------- next part --------------
An HTML attachme...
2009 Nov 20
0
[LLVMdev] llvm code working on linux but not mac, 64 bit problem?
...0"
> declare i32 @printf(i8 *, ...)
>
> define i32 @main() nounwind {
>
> entry:
> %x = alloca i32
> %x.0 = add i32 0, 5
> %t1 = icmp sgt i32 %x.0, 0
> br i1 %t1, label %thenLabel1, label %elseLabel2
>
> thenLabel1:
> %x.1 = add i32 2, %x.0
> br label %joinIfLabel3
>
> elseLabel2:
> %x.2 = add i32 3, %x.0
> br label %joinIfLabel3
>
> joinIfLabel3:
> %x.3 = phi i32 [%x.1, %thenLabel1],[%x.2, %elseLabel2]
> tail call i32 (i8*, ...)* @printf(i8* getelementptr ([4 x i8]* @s, i64
> 0, i64 0), i32 %x.3) nounwind
> ret i32 0
> }
&...