Displaying 4 results from an estimated 4 matches for "lto_module_t".
2008 Feb 23
5
[LLVMdev] new LTO C interface
...ODEL_DWARF = 1
} lto_debug_model;
typedef enum {
LTO_CODEGEN_PIC_MODEL_STATIC = 0,
LTO_CODEGEN_PIC_MODEL_DYNAMIC = 1,
LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC = 2
} lto_codegen_model;
// opaque reference to a loaded object module
typedef struct LTOModule* lto_module_t;
// opaque reference to a code generator
typedef struct LTOCodeGenerator* lto_code_gen_t;
#ifdef __cplusplus
extern "C" {
#endif
//
// returns a printable string
//
extern const char*
lto_get_version();
//
// returns the last error string or NULL if last operation was sucessful
//...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...ule_is_object_file_in_memory(const uint8_t* mem, size_t
> length);
>
> extern bool
> lto_module_is_object_file_in_memory_for_target(const uint8_t* mem,
> size_t length,
> const char*
> target_triplet_prefix);
>
> extern lto_module_t
> lto_module_create_from_memory(const uint8_t* mem, size_t length);
Why not void*? Saves casting.
> //
> // generates code for all added modules into one object file
> // On sucess returns a pointer to a generated mach-o buffer and
> // length set to the buffer size. Client must f...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...;
> typedef enum {
> LTO_CODEGEN_PIC_MODEL_STATIC = 0,
> LTO_CODEGEN_PIC_MODEL_DYNAMIC = 1,
> LTO_CODEGEN_PIC_MODEL_DYNAMIC_NO_PIC = 2
> } lto_codegen_model;
>
>
> // opaque reference to a loaded object module
> typedef struct LTOModule* lto_module_t;
>
> // opaque reference to a code generator
> typedef struct LTOCodeGenerator* lto_code_gen_t;
>
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> //
> // returns a printable string
> //
> extern const char*
> lto_get_version();
>
>
>...
2008 Feb 26
2
[LLVMdev] new LTO C interface
...int8_t* mem, size_t
>> length);
>>
>> extern bool
>> lto_module_is_object_file_in_memory_for_target(const uint8_t* mem,
>> size_t length,
>> const char*
>> target_triplet_prefix);
>>
>> extern lto_module_t
>> lto_module_create_from_memory(const uint8_t* mem, size_t length);
>
> Why not void*? Saves casting.
Fixed.
>> //
>> // generates code for all added modules into one object file
>> // On sucess returns a pointer to a generated mach-o buffer and
>> // length se...