search for: lto_code_gen_t

Displaying 4 results from an estimated 4 matches for "lto_code_gen_t".

2008 Feb 23
5
[LLVMdev] new LTO C interface
...C = 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 // extern const char* lto_get_error_message(); // // validates if a file is a loadable objec...
2008 Feb 25
0
[LLVMdev] new LTO C interface
..._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 > // > exte...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...t; // On sucess returns a pointer to a generated mach-o buffer and > // length set to the buffer size. Client must free() the buffer > // when done. > // On failure, returns NULL (check 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*. 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_targe...
2008 Feb 26
2
[LLVMdev] new LTO C interface
...inter to a generated mach-o buffer and >> // length set to the buffer size. Client must free() the buffer >> // when done. >> // On failure, returns NULL (check 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...