Displaying 9 results from an estimated 9 matches for "tostringunsigned".
2008 Aug 19
7
[LLVMdev] Please help with LLVM C++ integration
...;< "We just constructed this LLVM module:\n\n" << *M;
std::cout << "\n\nRunning foo: " << std::flush;
std::vector<GenericValue> noargs;
GenericValue gv = EE->runFunction(FooF, noargs);
std::cout << "Result: " << gv.IntVal.toStringUnsigned(10) << "\n";
return 0;
}
2008/8/19, Gordon Henriksen <gordonhenriksen at me.com>:
>
> On Aug 19, 2008, at 13:36, kirill havok wrote:
>
> I got very interested in LLVM project, and I decided to start writing my own
> scripting language based on it. By studyin...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...ot; << *M;
> std::cout << "\n\nRunning foo: " << std::flush;
>
> std::vector<GenericValue> noargs;
> GenericValue gv = EE->runFunction(FooF, noargs);
>
> std::cout << "Result: " << gv.IntVal.toStringUnsigned(10) <<
> "\n";
> return 0;
> }
>
>
>
> 2008/8/19, Gordon Henriksen <gordonhenriksen at me.com>:
> >
> > On Aug 19, 2008, at 13:36, kirill havok wrote:
> >
> > I got very interested in LLVM project, and I decided to start wri...
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
...ot; << *M;
> std::cout << "\n\nRunning foo: " << std::flush;
>
> std::vector<GenericValue> noargs;
> GenericValue gv = EE->runFunction(FooF, noargs);
>
> std::cout << "Result: " << gv.IntVal.toStringUnsigned(10) << "\n";
> return 0;
> }
>
>
>
> 2008/8/19, Gordon Henriksen <gordonhenriksen at me.com>:
>
>> On Aug 19, 2008, at 13:36, kirill havok wrote:
>>
>> I got very interested in LLVM project, and I decided to start writing my ow...
2007 Nov 08
3
[LLVMdev] Newbie JITter
...; "\n\nRunning main: " << std::flush;
// Call the function with no arguments:
std::vector<GenericValue> noargs;
GenericValue gv = EE->runFunction(MainFunction, noargs);
// Import result of execution:
std::cout << "Result: " << gv.IntVal.toStringUnsigned(10) << "\n";
} catch (const std::string& msg) {
cerr << "exception: " << msg << "\n";
exitCode = 1;
} catch (...) {
cerr << "exception: Unexpected unknown exception occurred.\n";
exitCode = 1;
}
return exitCo...
2012 Dec 04
0
[LLVMdev] Assert with getZExtValue()?
So is there a way to return the value as a string instead?
On Fri, Nov 16, 2012 at 3:00 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Was hoping it might get some help or a better explanation of this:
>
> /ADT/APInt.h:1217: uint64_t llvm::APInt::getZExtValue() const: Assertion
> `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed.
>
2008 Aug 19
0
[LLVMdev] Please help with LLVM C++ integration
On Aug 19, 2008, at 13:36, kirill havok wrote:
> I got very interested in LLVM project, and I decided to start
> writing my own scripting language based on it. By studying the
> documentation, I could not find how to call external function,
> written in C. That is, I have a set of functions written in C/C++, I
> generate code, using LLVM C++ interface, how can I call(or
2007 Nov 09
0
[LLVMdev] Newbie JITter
...t;< std::flush;
>
> // Call the function with no arguments:
> std::vector<GenericValue> noargs;
> GenericValue gv = EE->runFunction(MainFunction, noargs);
>
> // Import result of execution:
> std::cout << "Result: " << gv.IntVal.toStringUnsigned(10) << "\n";
>
> } catch (const std::string& msg) {
> cerr << "exception: " << msg << "\n";
> exitCode = 1;
> } catch (...) {
> cerr << "exception: Unexpected unknown exception occurred.\n";
>...
2008 Aug 19
5
[LLVMdev] Please help with LLVM C++ integration
Hello,
I got very interested in LLVM project, and I decided to start writing
my own scripting language based on it. By studying the documentation,
I could not find how to call external function, written in C. That is,
I have a set of functions written in C/C++, I generate code, using
LLVM C++ interface, how can I call(or register in machine in run-time)
my external functions? Maybe I just missed
2012 Nov 16
5
[LLVMdev] Assert with getZExtValue()?
Was hoping it might get some help or a better explanation of this:
/ADT/APInt.h:1217: uint64_t llvm::APInt::getZExtValue() const: Assertion
`getActiveBits() <= 64 && "Too many bits for uint64_t"' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff6eb4d05 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64