Displaying 1 result from an estimated 1 matches for "bnative".
Did you mean:
native
2013 Mar 28
2
[LLVMdev] LLVM Execution engine: Native call vs LLVM IR function call
...ds = %bb1
ret i64 %1
cont: ; preds = %bb1
%3 = add i64 %0, 1
%res = call i64 @sqr(i64 %0)
br label %bb1
}
define i64 @sqr(i64 %arg1) {
entry:
%0 = mul i64 %arg1, %arg1
ret i64 %0
}
=============================================
define i64 @bnative() {
entry:
br label %bb1
bb1: ; preds = %cont, %entry
%0 = phi i64 [ 0, %entry ], [ %3, %cont ]
%1 = phi i64 [ 0, %entry ], [ %res, %cont ]
%2 = icmp ugt i64 %0, 1000000001
br i1 %2, label %exit, label %cont
exit:...