Displaying 5 results from an estimated 5 matches for "readerwriter_8h_sourc".
Did you mean:
readerwriter_8h_source
2014 Mar 13
2
[LLVMdev] load bytecode from string for jiting problem
...read and parse
this global variable for jiting the function.
1) I read the global variable with
StringRef sr (gv, gv_length);
2) I manually test this bytecode by
(inspired by inline bool isRawBitcode(const unsigned char *BufPtr,
const unsigned char *BufEnd) at
http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.html#l00067)
if (sr.str()[0] == 'B')
std::cout << "B ok\n";
if (sr.str()[1] == 'C')
std::cout << "C ok\n";
if (sr.str()[2] == (char) 0xc0)
std::cout << "0xc0 ok\n";
if (sr.str()[3] == (char) 0xde)
std::cout <...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
...I investigate more the source code of llvm.
>>>>
>>>> First, I change isRawBitcode function to print the content of
>>>> the parameter like this:
>>>> original:
>>>> http://llvm.org/docs/doxygen/__html/ReaderWriter_8h_source._
>>>> _html#l00081
>>>>
>>>> <http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.
>>>> html#l00081>
>>>>
>>>> inline bool isRawBitcode(const unsigned char *BufPtr,
>>>>...
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
I mad the change, and still have the problem.
I investigate more the source code of llvm.
First, I change isRawBitcode function to print the content of the
parameter like this:
original:
http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.html#l00081
inline bool isRawBitcode(const unsigned char *BufPtr,
const unsigned char *BufEnd) {
// These bytes sort of have a hidden message, but it's not in
// little-endian this time, and it's a little redundant.
errs()<< "isRawBitc...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
....unistra.fr> wrote:
>> I mad the change, and still have the problem.
>>
>> I investigate more the source code of llvm.
>>
>> First, I change isRawBitcode function to print the content of the parameter like this:
>> original: http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.html#l00081
>>
>> inline bool isRawBitcode(const unsigned char *BufPtr,
>> const unsigned char *BufEnd) {
>> // These bytes sort of have a hidden message, but it's not in
>> // little-endian this time, and it's a little re...
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
...F <willy.wolff at etu.unistra.fr> wrote:
> I mad the change, and still have the problem.
>
> I investigate more the source code of llvm.
>
> First, I change isRawBitcode function to print the content of the parameter like this:
> original: http://llvm.org/docs/doxygen/html/ReaderWriter_8h_source.html#l00081
>
> inline bool isRawBitcode(const unsigned char *BufPtr,
> const unsigned char *BufEnd) {
> // These bytes sort of have a hidden message, but it's not in
> // little-endian this time, and it's a little redundant.
>...