search for: cppnat

Displaying 3 results from an estimated 3 matches for "cppnat".

Did you mean: xppnat
2013 Mar 28
1
[LLVMdev] LLVM Execution engine: Native call vs LLVM IR function call
Hi Óscar, Thank you for your response. I did not explicitly optimize the IR. I compile and run the two versions with ... GenericValue gv = EE->runFunction(bsqr, args); ... GenericValue gv2 = EE->runFunction(cppnat, args); I am calling method runFunction of ExecutionEngine. I am using the default code gen optimization level. Best regards, Nurudeen. On Thu, March 28, 2013 7:05 am, Óscar Fuentes wrote: > nlamee at cs.mcgill.ca writes: > >> I would like to understand why calling a native function...
2013 Mar 28
0
[LLVMdev] LLVM Execution engine: Native call vs LLVM IR function call
nlamee at cs.mcgill.ca writes: > I would like to understand why calling a native function from a function > in LLVM IR can be much faster than calling an equivalent function in LLVM > IR. Do you optimize the LLVM IR? The IR version can inline the call and just that would make it faster than the "native" version. Please describe how do you compile your LLVM IR. Once knowing
2013 Mar 28
2
[LLVMdev] LLVM Execution engine: Native call vs LLVM IR function call
...1 = phi i64 [ 0, %entry ], [ %res, %cont ] %2 = icmp ugt i64 %0, 1000000001 br i1 %2, label %exit, label %cont exit: ; preds = %bb1 ret i64 %1 cont: ; preds = %bb1 %3 = add i64 %0, 1 %res = call i64 @cppnative(i64 %0) br label %bb1 } C++: long cppNative(long data) { return data*data; } I am using g++ 4.5.2. I will appreciate any help. Thank you. Best regards, Nurudeen.