search for: getfunctionstub

Displaying 7 results from an estimated 7 matches for "getfunctionstub".

2005 Feb 20
3
[LLVMdev] HowToUseJIT: failed assertion on PPC/Mac OS X
.../llvm/ADT/ilist:440 #3 0x00011ae8 in llvm::JIT::runJITOnFunction(llvm::Function*) (this=0x51015c0, F=0x5101010) at JIT.cpp:217 #4 0x00011da4 in llvm::JIT::getPointerToFunction(llvm::Function*) (this=0x51015c0, F=0x5101010) at JIT.cpp:261 #5 0x000123e4 in (anonymous namespace)::JITResolver::getFunctionStub(llvm::Function*) (this=0x70be78, F=0x5101010) at JITEmitter.cpp:184 #6 0x00012a48 in (anonymous namespace)::JITEmitter::getPointerToGlobal(llvm::GlobalValue*, void*, bool) (this=0x5101670, V=0x5101010, Reference=0x5685010, DoesntNeedStub=false) at JITEmitter.cpp:334 #7 0x00012ccc in (anon...
2005 Feb 20
0
[LLVMdev] HowToUseJIT: failed assertion on PPC/Mac OS X
On Feb 20, 2005, at 11:12, Evan Jones wrote: > I can "fix" it by changing JITResolver::getFunctionStub to use > F->isExternal() instead of F->hasExternalLinkage(). However, this then > breaks when calling *real* external functions (native code). I obviously should not post to mailing lists before I've eaten. With my "fix" I get an assertion when taking an address of a f...
2008 Jun 16
0
[LLVMdev] PowerPC instruction cache invalidation
On Mon, 16 Jun 2008, Gary Benson wrote: > When you genetate code on PowerPC you need to explicitly invalidate > the instruction cache to force the processor to reread it. In LLVM > there is code to do this for function stubs on Macintosh, but not > for other platforms and not for JITted code generally. Applied, thanks!
2008 Jun 17
1
[LLVMdev] PowerPC instruction cache invalidation
...emitted code must be -/// explicitly refetched to ensure correct execution. -static void synchronizeICache(const void *Addr, size_t len) { -#if (defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)) && \ - defined(__APPLE__) - sys_icache_invalidate(Addr, len); -#endif -} - /// getFunctionStub - This returns a pointer to a function stub, creating /// one on demand as needed. void *JITResolver::getFunctionStub(Function *F) { @@ -756,7 +742,7 @@ } // Invalidate the icache if necessary. - synchronizeICache(FnStart, FnEnd-FnStart); + TheJIT->getJITInfo().InvalidateInstructionC...
2008 Jun 16
6
[LLVMdev] PowerPC instruction cache invalidation
Hi all, When you genetate code on PowerPC you need to explicitly invalidate the instruction cache to force the processor to reread it. In LLVM there is code to do this for function stubs on Macintosh, but not for other platforms and not for JITted code generally. The attached patch adds support for GNU platforms, but I can't figure out a nice way to call it for all generated code. Can
2009 Mar 09
0
[LLVMdev] Cross-Module Function Calls
...ort () from /lib/libc.so.6 #2 0x000000000056486e in llvm::JIT::getPointerToNamedFunction (this=0x2d4bb80, Name=@0x7fffe030e6e0, AbortOnFailure=true) at Intercept.cpp:142 #3 0x00000000005651a9 in llvm::JIT::getPointerToFunction (this=0x2d4bb80, F=0x2d45dd0) at JIT.cpp:538 #4 0x000000000056d3c5 in getFunctionStub (this=0x2d5a8b0, F=0x2d45dd0) at JITEmitter.cpp:181 #5 0x000000000056d79a in getPointerToGlobal (this=0x2d5a820, V=0x2d45dd0, Reference=0x7f25d605e01a, DoesntNeedStub=false) at JITEmitter.cpp:632 #6 0x000000000056daba in finishFunction (this=0x2d5a820, F=@0x2d76b00) at JITEmitter.cpp:924 #7 0x00...
2007 Dec 07
3
[LLVMdev] Calling functions defined in .o files in LLVM code executed in lli
...o.6(abort+0x110)[0x2ada87aca1c0] lli(llvm::JIT::getPointerToNamedFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0xde)[0x5c473e] lli(llvm::JIT::getPointerToFunction(llvm::Function*)+0xf3)[0x5c5183] lli((anonymous namespace)::JITResolver::getFunctionStub(llvm::Function*)+0x27f)[0x5c7c6f] lli((anonymous namespace)::JITEmitter::getPointerToGlobal(llvm::GlobalValue*, void*, bool)+0x192)[0x5c7f02] lli((anonymous namespace)::JITEmitter::finishFunction(llvm::MachineFunction&)+0x38d)[0x5c82bd] lli[0x4af284] lli(llvm::MachineFunctionPass::runOnFunction...