llvm-6502/include/llvm-c
Filip Pizlo 0e1327e4aa This exposes more MCJIT options via the C API:
CodeModel: It's now possible to create an MCJIT instance with any CodeModel you like.  Previously it was only possible to 
create an MCJIT that used CodeModel::JITDefault.

EnableFastISel: It's now possible to turn on the fast instruction selector.

The CodeModel option required some trickery.  The problem is that previously, we were ensuring future binary compatibility in 
the MCJITCompilerOptions by mandating that the user bzero's the options struct and passes the sizeof() that he saw; the 
bindings then bzero the remaining bits.  This works great but assumes that the bitwise zero equivalent of any field is a 
sensible default value.

But this is not the case for LLVMCodeModel, or its internal equivalent, llvm::CodeModel::Model.  In both of those, the default 
for a JIT is CodeModel::JITDefault (or LLVMCodeModelJITDefault), which is not bitwise zero.

Hence this change introduces LLVMInitializeMCJITCompilerOptions(), which will initialize the user's options struct with
defaults. The user will use this in the same way that they would have previously used memset() or bzero(). MCJITCAPITest.cpp
illustrates the change, as does the comment in ExecutionEngine.h.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180893 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-01 22:58:00 +00:00
..
Transforms Move C++ code out of the C headers and into either C++ headers 2013-04-22 22:47:22 +00:00
Analysis.h Organize LLVM C API docs into doxygen modules; add docs 2012-03-21 03:54:29 +00:00
BitReader.h Organize LLVM C API docs into doxygen modules; add docs 2012-03-21 03:54:29 +00:00
BitWriter.h Organize LLVM C API docs into doxygen modules; add docs 2012-03-21 03:54:29 +00:00
Core.h c vs c++ mistake in header file typedef for AtomicRMW fix in rev 180100. 2013-04-23 13:45:37 +00:00
Disassembler.h Add to the disassembler C API an option to print the disassembled 2012-12-18 23:47:28 +00:00
ExecutionEngine.h This exposes more MCJIT options via the C API: 2013-05-01 22:58:00 +00:00
Initialization.h Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00
Linker.h Supply a C interface to the "LinkModules" method. 2012-05-09 08:55:40 +00:00
LinkTimeOptimizer.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
lto.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
Object.h Move C++ code out of the C headers and into either C++ headers 2013-04-22 22:47:22 +00:00
Target.h Move C++ code out of the C headers and into either C++ headers 2013-04-22 22:47:22 +00:00
TargetMachine.h Rename 'struct LLVMTargetMachine' to 'struct LLVMOpaqueTargetMachine'. 2013-05-01 22:41:26 +00:00