Displaying 7 results from an estimated 7 matches for "handledefinit".
2019 Aug 07
2
Trouble with ORCv2 Tutorial
...from the JIT tutorial is giving 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 wh...
2019 Aug 08
2
Trouble with ORCv2 Tutorial
...unteer 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 if Error is not handled correct...
2019 Aug 09
2
Trouble with ORCv2 Tutorial
...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 if Error is not handle...
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...ction->eraseFromParent();
return 0;
}
//===----------------------------------------------------------------------===//
// Top-Level parsing and JIT Driver
//===----------------------------------------------------------------------===//
static ExecutionEngine *TheExecutionEngine;
static void HandleDefinition() {
if (FunctionAST *F = ParseDefinition()) {
if (Function *LF = F->Codegen()) {
fprintf(stderr, "Read function definition:");
LF->dump();
}
} else {
// Skip token for error recovery.
getNextToken();
}
}
static void HandleExtern() {
if (Protot...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...>
> //===----------------------------------------------------------------------===//
> // Top-Level parsing and JIT Driver
>
> //===----------------------------------------------------------------------===//
>
> static ExecutionEngine *TheExecutionEngine;
>
> static void HandleDefinition() {
> if (FunctionAST *F = ParseDefinition()) {
> if (Function *LF = F->Codegen()) {
> fprintf(stderr, "Read function definition:");
> LF->dump();
> }
> } else {
> // Skip token for error recovery.
> getNextToken();
> }
> }
&...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...----------------------------------------------------------===//
>> // Top-Level parsing and JIT Driver
>>
>> //===----------------------------------------------------------------------===//
>>
>> static ExecutionEngine *TheExecutionEngine;
>>
>> static void HandleDefinition() {
>> if (FunctionAST *F = ParseDefinition()) {
>> if (Function *LF = F->Codegen()) {
>> fprintf(stderr, "Read function definition:");
>> LF->dump();
>> }
>> } else {
>> // Skip token for error recovery.
>> ...
2015 Jul 27
15
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
Hi Again,
I'm a little confused regarding what is the exact Orc's functions I should
use
in order to save the functions code in a code cache so it could be later
replaced with different versions of it and I appreciate your help.
Just a reminder I want to dynamically recompile the program based on
profile
collected at the run-time. I would like to start executing the program
from
the