Displaying 4 results from an estimated 4 matches for "lto_module_get_target_triplet".
2008 Feb 23
5
[LLVMdev] new LTO C interface
...module_create_from_memory(const uint8_t* mem, size_t length);
//
// frees all memory for a module
// upon return the lto_module_t is no longer valid
//
extern void
lto_module_release(lto_module_t mod);
//
// returns triplet string which the object module was compiled under
//
extern const char*
lto_module_get_target_triplet(lto_module_t mod);
//
// returns the number of symbols in the object module
//
extern uint32_t
lto_module_get_num_symbols(lto_module_t mod);
//
// returns the name of the ith symbol in the object module
//
extern const char*
lto_module_get_symbol_name(lto_module_t mod, uint32_t index);
//
//...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...mpile(lto_code_gen_t cg, size_t* length);
The return value should be non-const. free takes a void*, not a const
void*.
Windows people like to play hideous macro tricks with malloc, so I'd
provide a corresponding dispose method, keeping the API self-contained.
> extern const char*
> lto_module_get_target_triplet(lto_module_t mod);
LLVM nomenclature is triple, not triplet.
> extern uint32_t
> lto_module_get_num_symbols(lto_module_t mod);
>
> extern const char*
> lto_module_get_symbol_name(lto_module_t mod, uint32_t index);
>
> extern lto_symbol_attributes
> lto_module_get_symbol_at...
2008 Feb 26
2
[LLVMdev] new LTO C interface
...heck lto_get_error_message() for
>> details)
>> //
>> extern const uint8_t*
>> lto_codegen_compile(lto_code_gen_t cg, size_t* length);
>
> The return value should be non-const. free takes a void*, not a
> const void*.
Fixed.
>> extern const char*
>> lto_module_get_target_triplet(lto_module_t mod);
>
> LLVM nomenclature is triple, not triplet.
Fixed.
>
>> extern uint32_t
>> lto_module_get_num_symbols(lto_module_t mod);
>>
>> extern const char*
>> lto_module_get_symbol_name(lto_module_t mod, uint32_t index);
>>
>> extern l...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...> //
> // frees all memory for a module
> // upon return the lto_module_t is no longer valid
> //
> extern void
> lto_module_release(lto_module_t mod);
>
>
> //
> // returns triplet string which the object module was compiled under
> //
> extern const char*
> lto_module_get_target_triplet(lto_module_t mod);
>
>
> //
> // returns the number of symbols in the object module
> //
> extern uint32_t
> lto_module_get_num_symbols(lto_module_t mod);
>
>
> //
> // returns the name of the ith symbol in the object module
> //
> extern const char*
> lto_...