search for: gv_length

Displaying 5 results from an estimated 5 matches for "gv_length".

2014 Mar 13
2
[LLVMdev] load bytecode from string for jiting problem
...File for this. For debuging, after this write, I try to load the exported module with parseBitcodeFile. This two step works. After, while the compiled program is running, I try to 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(...
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
...gt;> parseBitcodeFile. >> This two step works. >> >> >> >> After, while the compiled program is running, I try to 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') &g...
2014 Mar 19
2
[LLVMdev] load bytecode from string for jiting problem
...y to load the exported module with > parseBitcodeFile. > This two step works. > > > > After, while the compiled program is running, I try to 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 <&...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
...gt; parseBitcodeFile. >> This two step works. >> >> >> >> After, while the compiled program is running, I try to 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') &...
2014 Mar 20
2
[LLVMdev] load bytecode from string for jiting problem
...iled program is running, I try >>>> to 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 >>>...