Displaying 5 results from an estimated 5 matches for "lto_module_is_object_file_in_memory".
2008 Feb 26
0
[LLVMdev] new LTO C interface
...ll the comments you have here be
doxygen-friendly? (N.B., I'm not an expert on doxygen.) One thing I
notice in other code is that the function or variable names are
repeated in the comments. There might also be a special C-style
comment quoting for doxygen. Something like this:
/**
* lto_module_is_object_file_in_memory - Checks if a buffer is a
loadable object file.
*/
extern bool
lto_module_is_object_file_in_memory(const void* mem, size_t length);
and so on.
-bw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080226/...
2008 Feb 26
2
[LLVMdev] new LTO C interface
...sign might be smarter still.
There are other things not thread safe about the API. Adding a
string return would complicate the API. And it is possible to make
the API thread safe in the future by making lto_get_error_message()
return a per-thread string.
>
>> extern bool
>> lto_module_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);
>>
>>...
2008 Feb 23
5
[LLVMdev] new LTO C interface
...dates if a file is a loadable object file compilable for
requested target
//
extern bool
lto_module_is_object_file_for_target(const char* path,
const char*
target_triplet_prefix);
//
// validates if a buffer is a loadable object file
//
extern bool
lto_module_is_object_file_in_memory(const uint8_t* mem, size_t length);
//
// validates if a buffer is a loadable object file compilable for
requested target
//
extern bool
lto_module_is_object_file_in_memory_for_target(const uint8_t* mem,
size_t length,
const char*
target_tripl...
2008 Feb 25
0
[LLVMdev] new LTO C interface
..._message();
I've tried not to create thread-unsafe designs in the rest of the
bindings. I return a malloced error message by optional output
parameters and provide a generic dispose function
(LLVMDisposeMessage). Copying CFError's design might be smarter still.
> extern bool
> lto_module_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...
2008 Feb 25
0
[LLVMdev] new LTO C interface
...; requested target
> //
> extern bool
> lto_module_is_object_file_for_target(const char* path,
> const char*
> target_triplet_prefix);
>
>
> //
> // validates if a buffer is a loadable object file
> //
> extern bool
> lto_module_is_object_file_in_memory(const uint8_t* mem, size_t
> length);
>
>
> //
> // validates if a buffer is a loadable object file compilable for
> requested target
> //
> extern bool
> lto_module_is_object_file_in_memory_for_target(const uint8_t* mem,
> size_t length,
>...