Displaying 1 result from an estimated 1 matches for "992849".
Did you mean:
92849
2006 Apr 15
6
[LLVMdev] how to code a loop in llvm assembly
Hi,
I've read over the "LLVM Language Reference Manual"
a few times, and writing some ll code, but i'm stuck at
a very basic point. How to decrement a counter variable ?
int %count(int %n) {
EntryBlock:
%cond = seteq int %n, 0
br bool %cond, label %Exit, label %Next
Next:
; how to decrement n ?
%new_n = sub int %n, 1
br label %EntryBlock
Exit:
ret int 0
}
I guess I