Displaying 3 results from an estimated 3 matches for "add_q".
2019 Aug 07
2
Trouble with ORCv2 Tutorial
...g me trouble.
Kaleidoscope builds fine using Clang and LLVM version 9, but fails on
an expression like this:
ready> fun foo(c) c;
Read function definition:
define double @foo(double %c) {
entry:
ret double %c
}
kaleidoscope: kaleidoscope_baseline.cpp:980: void HandleDefinition():
Assertion `add_q && "HandleDefinition: Error adding a module."'
failed.
Aborted
I'm using the exact source code from the tutorials to reproduce the
problem with some tiny changes to the front end to deal with some
slight API changes introduced in the JIT tutorial where some functions
retu...
2019 Aug 08
2
Trouble with ORCv2 Tutorial
...ke I'll happily volunteer to update the
tutorials as needed :)
Zeke
On Wed, Aug 7, 2019 at 8:38 PM Praveen Velliengiri
<praveenvelliengiri at gmail.com> wrote:
>
> Hi Zeke,
> Bool conversion of Error returns True for Failure States and False for Success States.
>
> assert(add_q && "HandleDefinition: Error adding a module."); - You're essentially checking against success state to assert the condition. Plus, Error have many handling APIs dealing with success and failure states, you can use them instead of assert.
> That will trigger a runtime error...
2019 Aug 09
2
Trouble with ORCv2 Tutorial
...e
>>
>> On Wed, Aug 7, 2019 at 8:38 PM Praveen Velliengiri
>> <praveenvelliengiri at gmail.com> wrote:
>> >
>> > Hi Zeke,
>> > Bool conversion of Error returns True for Failure States and False for Success States.
>> >
>> > assert(add_q && "HandleDefinition: Error adding a module."); - You're essentially checking against success state to assert the condition. Plus, Error have many handling APIs dealing with success and failure states, you can use them instead of assert.
>> > That will trigger a runti...