Re: [rust-dev] Make use of the LLVM ExecutionEngine

2014-04-28 Thread Benjamin Gudehus
Is it possible to link to the missing LLVM methods from a custom rust file by defining the external methods? The external LLVM methods are linked with `#[link(name = "rustllvm", kind = "static")]` in librustc and I suppose that LLVM is linked statically into the rustc library, e.g. rustc.dll (on W

Re: [rust-dev] Make use of the LLVM ExecutionEngine

2014-04-28 Thread Benjamin Gudehus
Hi Alex! Thanks for the answer. I see it was removed in [1]. There once was llvm::LLVMRustBuildJIT() [2] to create an ExecutionEngine. Hopefully there will be plans to provide a complete binding for LLVM in Rust, a convenient object-oriented API for usage of LLVM (like llvm-py) and a Rust REPL [3

Re: [rust-dev] Make use of the LLVM ExecutionEngine

2014-04-28 Thread Alex Crichton
This used to be present for the JIT support that the old rusti provided, but the internal support for this has been removed. You may be able to resurrect it outside the compiler with these LLVM apis, but it may also require exposing more LLVM details from the compiler itself. There is currently no

[rust-dev] Make use of the LLVM ExecutionEngine

2014-04-28 Thread Benjamin Gudehus
Hi! Will there be a way to make usage of ExecutionEngine and call LLVM functions via a TypeRef to them? I saw there is even a LLVMDisposeExecutionEngine in rustc::lib::llvm::llvm. pub fn LLVMDisposeExecutionEngine(EE: ExecutionEngineRef); --Benjamin _