llvm/include/llvm-c
Shuxin Yang e3427a5815 Add new API lto_codegen_compile_parallel().
This API is proposed by Nick Kledzik. The semantic is:

  --------------------------------------------------------------------------
   Generate code for merged module into an array of native object files. On 
   success returns a pointer to an array of NativeObjectFile.  The count 
   parameter returns the number of elements in the array.  Each element is 
   a pointer/length for a generated mach-o/ELF buffer.  The buffer is owned
   by the lto_code_gen_t and will be freed when lto_codegen_dispose() is called, 
   or lto_codegen_compile() is called again. On failure, returns NULL 
   (check lto_get_error_message() for details).

   extern const struct  NativeObjectFile*
   lto_codegen_compile_parallel(lto_code_gen_t cg, size_t *count);
  ---------------------------------------------------------------------------

  This API is currently only called on OSX platform. Linux or other Unixes
using GNU gold are not supposed to call this function, because on these systems, 
object files are fed back to linker via disk file instead of memory buffer.

  In this commit, lto_codegen_compile_parallel() simply calls
lto_codegen_compile() to return a single object file. In the near future,
this function is the entry point for compilation with partition. Linker can
blindly call this function even if partition is turned off; in this case,
compiler will return only one object file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189297 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-27 00:03:23 +00:00
..
Transforms Turn MipsOptimizeMathLibCalls into a target-independent scalar transform 2013-08-23 10:27:02 +00:00
Analysis.h
BitReader.h
BitWriter.h
Core.h Add function attribute 'optnone'. 2013-08-23 11:53:55 +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 Expose the RTDyldMemoryManager through the C API. This allows clients of 2013-05-22 02:46:43 +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
LinkTimeOptimizer.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
lto.h Add new API lto_codegen_compile_parallel(). 2013-08-27 00:03:23 +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