search for: interpctor

Displaying 11 results from an estimated 11 matches for "interpctor".

2008 Feb 21
3
[LLVMdev] LLVM Win32 Issue
...onEngine::create returning a NULL. I traced it to these lines: // Unless the interpreter was explicitly selected, try making a JIT. if (!ForceInterpreter && JITCtor) EE = JITCtor(MP, ErrorStr); // If we can't make a JIT, make an interpreter instead. if (EE == 0 && InterpCtor) EE = InterpCtor(MP, ErrorStr); JITCtor and InterpCtor are both NULL, so it's obvious why I'm getting back a NULL execution engine. I am pretty sure it's because I'm missing a few llvm .lib or .obj files. What is the set of llvm object files needed at link time for Win32 on X...
2008 Nov 20
2
[LLVMdev] compiling the tutorial
...I'm having issues when trying to compile the Kaleidoscope tutorial* under MSVC 2008. In particular, the problem is that in main() when this line is executed > // Create the JIT. > TheExecutionEngine = ExecutionEngine::create(TheModule); create returns null, because both JITCtor and InterpCtor are null. I found this comment in ExecutionEngine.h > // To avoid having libexecutionengine depend on the JIT and interpreter > // libraries, the JIT and Interpreter set these functions to ctor > pointers > // at startup time if they are linked in. > typedef ExecutionEngine...
2008 Nov 21
1
[LLVMdev] compiling the tutorial
...er >> MSVC 2008. >> In particular, the problem is that in main() when this line is executed >> >>> // Create the JIT. >>> TheExecutionEngine = ExecutionEngine::create(TheModule); >>> >> create returns null, because both JITCtor and InterpCtor are null. >> I found this comment in ExecutionEngine.h >> > > Does it work if you add to the link command > /INCLUDE:_X86TargetMachineModule > > ? > > [snip] I tried linking the tutorial adding that command but JITCtor and InterpCtor are still null, both in de...
2009 Sep 23
1
[LLVMdev] [PATCH] Set error message if JIT/Interpreter not linked in.
Hi, In ExecutionEngine.cpp, when the JIT or the Interpreter have not been linked in then EngineBuilder::create fails without setting ErrorStr. I've attached a patch to fix this. Warm Regards KS Sreeram -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ee-not-linked-in-msg.diff URL:
2008 Nov 20
0
[LLVMdev] compiling the tutorial
...when trying to compile the Kaleidoscope tutorial* under > MSVC 2008. > In particular, the problem is that in main() when this line is executed >> // Create the JIT. >> TheExecutionEngine = ExecutionEngine::create(TheModule); > create returns null, because both JITCtor and InterpCtor are null. > I found this comment in ExecutionEngine.h Does it work if you add to the link command /INCLUDE:_X86TargetMachineModule ? [snip] -- Oscar
2008 Feb 21
0
[LLVMdev] LLVM Win32 Issue
"Aaron Dwyer" <llvmification at gmail.com> writes: [snip] > JITCtor and InterpCtor are both NULL, so it's obvious why I'm getting > back a NULL execution engine. I am pretty sure it's because I'm > missing a few llvm .lib or .obj files. What is the set of llvm object > files needed at link time for Win32 on X86 JIT? This is what I use on MinGW. It is f...
2009 Jun 23
3
[LLVMdev] X86 JIT
...variable static struct RegisterJIT { RegisterJIT() { JIT::Register(); } } JITRegistrator; in lib/ExecutionEngine/JIT/JIT.cpp is only called if either JIT.h or Interpreter.h is included. When they are not included, JIT::Register() is not called, and ExecutionEngine::JITCtor and ExecutionEngine::InterpCtor are both NULL, and ExecutionEngine::create() returns NULL. This is not caught by (in lli.cpp): if (!EE && !ErrorMsg.empty()) { std::cerr << argv[0] << ":error creating EE: " << ErrorMsg << "\n"; exit(1); } as ErrorMsg is empty. Then...
2009 Jun 22
0
[LLVMdev] X86 JIT
On Jun 22, 2009, at 2:19 PM, Kasra wrote: > Hi, > > for some reason I could not get the machine code generator for x86 > working. The interpreter is the only thing that works, is there > anything that I am missing here? This recently changed. In your main program, please #include "llvm/ Target/TargetSelect.h" and call InitializeNativeTarget(); before setting up
2009 Jun 22
2
[LLVMdev] X86 JIT
Hi, for some reason I could not get the machine code generator for x86 working. The interpreter is the only thing that works, is there anything that I am missing here? -- Kasra -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090622/89dca208/attachment.html>
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...================================ > --- lib/ExecutionEngine/ExecutionEngine.cpp (revision 46612) > +++ lib/ExecutionEngine/ExecutionEngine.cpp (working copy) > @@ -34,7 +34,9 @@ > > ExecutionEngine::EECtorFn ExecutionEngine::JITCtor = 0; > ExecutionEngine::EECtorFn ExecutionEngine::InterpCtor = 0; > +ExecutionEngine::EERegisterFn > ExecutionEngine::ExceptionTableRegister = 0; > > + > ExecutionEngine::ExecutionEngine(ModuleProvider *P) : > LazyFunctionCreator(0) { > LazyCompilationDisabled = false; > Modules.push_back(P); > Index: lib/ExecutionEngine/JI...
2008 Feb 01
2
[LLVMdev] Exception handling in JIT
Dear all, Here's a new patch with Evan's comments (thx Evan!) and some cleanups. Now the (duplicated) exception handling code is in a new file: lib/ExecutionEngine/JIT/JITDwarfEmitter. This patch should work on linux/x86 and linux/ppc (tested). Nicolas -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: jit-exceptions.patch URL: