search for: run_funct

Displaying 2 results from an estimated 2 matches for "run_funct".

Did you mean: run_func
2007 Dec 23
0
[LLVMdev] Ocaml JIT example
...cat jithelloworld.ml (* jithelloworld.ml *) open Llvm open Llvm_executionengine let execute_function f m = (* Set up the JIT. *) let jit = ExecutionEngine.create (ModuleProvider.create m) in ExecutionEngine.run_static_ctors jit; (* Execute the function. *) ignore (ExecutionEngine.run_function f [| |] jit); (* Tear down the JIT. *) ExecutionEngine.run_static_dtors jit; ExecutionEngine.dispose jit let build_module = let m = create_module "jithelloworld" in (* @greeting = global [14 x i8] c"Hello, world!\00" *) let greeting = define_global "...
2009 Feb 19
6
[LLVMdev] Improving performance with optimization passes
...pm; (* reassociate expressions. *) add_reassociation pm; (* Eliminate Common SubExpressions. *) add_gvn pm; (* Simplify the control flow graph (deleting unreachable blocks, etc). *) add_cfg_simplification pm; add_memory_to_register_promotion pm; and then I apply "PassManager.run_function" to every function after it is validated. Any idea what I might be doing wrong? Has anyone else got this functionality giving performance boosts from OCaml? -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e