Displaying 6 results from an estimated 6 matches for "lto_codegen_create".
2016 Sep 30
7
libLTO C API stability policy
Hi all,
libLTO is exposing a very “stable” (in the sense of immutable) C API to be used by linkers (and binutils tools) that manipulate bitcode (like when performing LTO).
I’m looking into relaxing the stability concern and design a policy for this API that would allow to deprecate and remove some the APIs exposed here. The MacOS linker (ld64) is one the users of libLTO, but there are others
2013 Nov 13
0
[LLVMdev] Proposal: release MDNodes for source modules (LTO+debug info)
On Tue, Nov 12, 2013 at 6:07 PM, Manman Ren <manman.ren at gmail.com> wrote:
> Hi Chandler,
>
> I don't quite get why you think sharing is not buying us anything...
> It reduces the memory footprint of the source modules (there is sharing
> among the source modules) and the number of MDNodes created for the
> destination module (we do not need to re-create the MDNodes
2008 Feb 23
5
[LLVMdev] new LTO C interface
...module_t mod, uint32_t index);
//
// returns the attributes of the ith symbol in the object module
//
extern lto_symbol_attributes
lto_module_get_symbol_attribute(lto_module_t mod, uint32_t index);
//
// instantiates a code generator
// returns NULL if there is an error
//
extern lto_code_gen_t
lto_codegen_create();
//
// frees all memory for a code generator
// upon return the lto_code_gen_t is no longer valid
//
extern void
lto_codegen_release(lto_code_gen_t);
//
// add an object module to the set of modules for which code will be
generated
// returns true on error (check lto_get_error_message() fo...
2013 Nov 13
2
[LLVMdev] Proposal: release MDNodes for source modules (LTO+debug info)
...put file. If it is a bitcode file, it calls
lto_module_create_from_memory()
then lto_module_get_num_symbols() and lto_module_get_symbol_*() to discover what the module provides and needs.
2) After all object files are loaded (which means no undefined symbols are left), the linker then calls:
lto_codegen_create() and then in a for-loop calls lto_codegen_add_module() on each module previously loaded.
3) After lto_codegen_compile() has returned, the linker does clean up and deletes each module with lto_module_dispose().
It sounds like the linker could call lto_module_dispose() right after lto_codegen_add_...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...tributes of the ith symbol in the object module
> //
> extern lto_symbol_attributes
> lto_module_get_symbol_attribute(lto_module_t mod, uint32_t index);
>
>
> //
> // instantiates a code generator
> // returns NULL if there is an error
> //
> extern lto_code_gen_t
> lto_codegen_create();
>
>
> //
> // frees all memory for a code generator
> // upon return the lto_code_gen_t is no longer valid
> //
> extern void
> lto_codegen_release(lto_code_gen_t);
>
>
>
> //
> // add an object module to the set of modules for which code will be
> gen...
2013 Nov 13
2
[LLVMdev] Proposal: release MDNodes for source modules (LTO+debug info)
On Tue, Nov 12, 2013 at 4:59 PM, Chandler Carruth <chandlerc at google.com>wrote:
> On Tue, Nov 12, 2013 at 4:46 PM, Manman Ren <manman.ren at gmail.com> wrote:
>
>>
>>
>>
>> On Tue, Nov 12, 2013 at 4:38 PM, Chandler Carruth <chandlerc at google.com>wrote:
>>
>>>
>>> On Tue, Nov 12, 2013 at 4:29 PM, Manman Ren <manman.ren