aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-07-19Fix indentation.Duncan Sands1-1/+1
llvm-svn: 108691
2010-07-19Expose JIT::recompileAndRelinkFunction for use through the C API.Duncan Sands1-0/+4
Patch by Benjamin Saunders. llvm-svn: 108690
2010-03-02Add Module functions in place of module providers.Erick Tryzelaar1-18/+59
llvm-svn: 97608
2010-01-27Kill ModuleProvider and ghost linkage by inverting the relationship betweenJeffrey Yasskin1-9/+5
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. llvm-svn: 94686
2010-01-09"In order to ease automatic bindings generation, it would be helpful if ↵Chris Lattner1-17/+17
boolean values were distinguishable from integers. The attached patch introduces "typedef int LLVMBool;", and uses LLVMBool instead of int throughout the C API, wherever a boolean value is called for." Patch by James Y Knight! llvm-svn: 93079
2009-07-18Add EngineBuilder to ExecutionEngine in favor of the five optional argument ↵Reid Kleckner1-6/+13
EE::create(). Also a test commit. llvm-svn: 76276
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin1-2/+2
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
2009-07-11assert(0) -> LLVM_UNREACHABLE.Torok Edwin1-3/+3
Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
2009-06-16Fix the EE bindings to use the proper EE interfaces for creating a JIT.Chris Lattner1-1/+1
Calling into createJIT directly creates a circular dependency between libjit and lib ee. llvm-svn: 73567
2009-04-30Fix the JIT bindings for ocaml.Bill Wendling1-3/+4
llvm-svn: 70454
2009-04-29Instead of passing in an unsigned value for the optimization level, use an enum,Bill Wendling1-1/+1
which better identifies what the optimization is doing. And is more flexible for future uses. llvm-svn: 70440
2009-04-29The second part of the change from -fast to -O#. This changes the JIT to acceptBill Wendling1-2/+2
an optimization level instead of a simple boolean telling it to generate code "fast" or the other type of "fast". llvm-svn: 70347
2009-01-21add getPointerToGlobal to the C bindings, patch by Lennart Augustsson!Chris Lattner1-0/+4
PR3364 llvm-svn: 62697
2008-08-08Fix the LLVMCreateJITCompiler C binding.Gordon Henriksen1-3/+3
Evan broke it in r54523 by adding a parameter in the implementation without updating the header correspondingly. llvm-svn: 54555
2008-08-08Add new parameter Fast to createJIT to enable the fast codegen path.Evan Cheng1-2/+4
llvm-svn: 54523
2008-06-20Add C binding for ExecutionEngine::addGlobalMapping.Gordon Henriksen1-0/+5
llvm-svn: 52523
2008-04-25PR2202: LLVMCreateInterpreter creates a JITGordon Henriksen1-1/+1
Applying fix by Frits van Bommel. llvm-svn: 50249
2008-03-30Fix "Control reaches the end of non-void function" warnings, Chris Lattner1-0/+1
patch by David Chisnall. llvm-svn: 48963
2008-03-27Expose ExecutionEngine::getTargetData() to c and ocaml bindings.Erick Tryzelaar1-0/+4
llvm-svn: 48851
2008-02-20Unbreak build with gcc 4.3: provide missed includes and silence most ↵Anton Korobeynikov1-0/+1
annoying warnings. llvm-svn: 47367
2008-01-07I doubt the address of the Error string was intendedDuncan Sands1-1/+2
to be used for the force_interpreter parameter... Spotted by gcc-4.2. llvm-svn: 45714
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
llvm-svn: 45418
2007-12-23C and Ocaml bindings for ExecutionEngine (i.e., the JIT compiler).Gordon Henriksen1-0/+187
llvm-svn: 45335