Displaying 10 results from an estimated 10 matches for "handletoplevelexpression".
2019 Aug 08
2
Trouble with ORCv2 Tutorial
...he same repl session and call
it, it uses the results of the first function call in that repl
session:
ready> def bar(x) x + 1;
...
ready> bar(1);
Evaluated to 102334155.000000
I suspect that this has to do with the fact that in ORCv2 we can no
longer remove modules meaning that the code in
HandleTopLevelExpression can't wrap up by removing the most recent
module it added. The tutorial does lookups by creating a function with
no arguments names "__anon_expr", calling it, then removing it AFIK
and because ORCv2 doesn't allow for the removal part as of yet, my
hunch is that the issue is there....
2019 Aug 09
2
Trouble with ORCv2 Tutorial
...repl
>> session:
>>
>> ready> def bar(x) x + 1;
>> ...
>> ready> bar(1);
>> Evaluated to 102334155.000000
>>
>> I suspect that this has to do with the fact that in ORCv2 we can no
>> longer remove modules meaning that the code in
>> HandleTopLevelExpression can't wrap up by removing the most recent
>> module it added. The tutorial does lookups by creating a function with
>> no arguments names "__anon_expr", calling it, then removing it AFIK
>> and because ORCv2 doesn't allow for the removal part as of yet, my
>&g...
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...getNextToken();
}
}
static void HandleExtern() {
if (PrototypeAST *P = ParseExtern()) {
if (Function *F = P->Codegen()) {
fprintf(stderr, "Read extern: ");
F->dump();
}
} else {
// Skip token for error recovery.
getNextToken();
}
}
static void HandleTopLevelExpression() {
// Evaluate a top level expression into an anonymous function.
if (FunctionAST *F = ParseTopLevelExpr()) {
if (Function *LF = F->Codegen()) {
// JIT the function, returning a function pointer.
void *FPtr = TheExecutionEngine->getPointerToFunction(LF);
// Cast it...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...) {
> if (PrototypeAST *P = ParseExtern()) {
> if (Function *F = P->Codegen()) {
> fprintf(stderr, "Read extern: ");
> F->dump();
> }
> } else {
> // Skip token for error recovery.
> getNextToken();
> }
> }
>
> static void HandleTopLevelExpression() {
> // Evaluate a top level expression into an anonymous function.
> if (FunctionAST *F = ParseTopLevelExpr()) {
> if (Function *LF = F->Codegen()) {
> // JIT the function, returning a function pointer.
> void *FPtr = TheExecutionEngine->getPointerToFunction(LF...
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
2007 Oct 23
0
[LLVMdev] me being stupid: me vs the llvm codebase...
...://llvm.org/docs/ProgrammersManual.html#coreclasses
[4] http://llvm.org/docs/LangRef.html
[5] http://llvm.org/docs/BitCodeFormat.html
[6] http://llvm.org/docs/CodeGenerator.html
[7] watch this space, currently under rapid construction: http://
llvm.org/docs/tutorial/
In particular, observe the HandleTopLevelExpression function in §3.3
"Implementing Code Generation to LLVM IR." That function will be
extended to handle the eval usage in §3.4 "Adding JIT and Optimizer
Support."
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...)) {
>> if (Function *F = P->Codegen()) {
>> fprintf(stderr, "Read extern: ");
>> F->dump();
>> }
>> } else {
>> // Skip token for error recovery.
>> getNextToken();
>> }
>> }
>>
>> static void HandleTopLevelExpression() {
>> // Evaluate a top level expression into an anonymous function.
>> if (FunctionAST *F = ParseTopLevelExpr()) {
>> if (Function *LF = F->Codegen()) {
>> // JIT the function, returning a function pointer.
>> void *FPtr = TheExecutionEngine->get...
2007 Oct 23
2
[LLVMdev] me being stupid: me vs the llvm codebase...
well, as it so seems I need to bother everyone on the list with my pointless
newb crap, but here goes.
maybe there was a FAQ for all this, but I missed it.
well, I am not trying to demean LLVM in any way here, only trying to
understand and evaluate things from my POV is all...
sorry if at all I seem arrogant or condescending...
well, running a linecounter, it is about 223 kloc (c++ ...), +
2019 Aug 07
2
Trouble with ORCv2 Tutorial
Hi folks,
I'm working on migrating a JIT compiler from the old ORCv1 JIT APIs to
the newer ORCv2 ones and am having some trouble getting the code from
chapter 1 of the "Building a JIT" [1] tutorial working properly. I
have previously walked through the "My First Langauge" [2] tutorial
and that went smoothly using the provided JIT class, but using the one
from the JIT
2007 Oct 23
2
[LLVMdev] me being stupid: me vs the llvm codebase...
...p://llvm.org/docs/ProgrammersManual.html#coreclasses
[4] http://llvm.org/docs/LangRef.html
[5] http://llvm.org/docs/BitCodeFormat.html
[6] http://llvm.org/docs/CodeGenerator.html
[7] watch this space, currently under rapid construction: http://
llvm.org/docs/tutorial/
In particular, observe the HandleTopLevelExpression function in §3.3
"Implementing Code Generation to LLVM IR." That function will be
extended to handle the eval usage in §3.4 "Adding JIT and Optimizer
Support."
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llv...