[LLVMdev] Specifying Additional Compilation Passes to lli

Thomas B. Jablin tjablin at CS.Princeton.EDU
Tue Sep 16 13:40:54 PDT 2008


----- "Thomas B. Jablin" <tjablin at CS.Princeton.EDU> wrote:

> 
> int power(int (*func)(int), int x, int n) {
>   int i;
>   for (i = 0; i < n; i++) {
>     x = power(x);
>   }
>   return x;
> }
> 

Sorry, the body of the loop should read: x = func(x);
Tom



More information about the llvm-dev mailing list