search for: replacemachinecodeforfunct

Displaying 6 results from an estimated 6 matches for "replacemachinecodeforfunct".

2006 Jan 26
0
[LLVMdev] VS2005 patch
....cpp 26 Jan 2006 15:28:54 -0000 > @@ -20,6 +20,11 @@ > #include <iostream> > using namespace llvm; > > +#ifdef _MSC_VER > + extern "C" void *_AddressOfReturnAddress(void); > + #pragma intrinsic(_AddressOfReturnAddress) > +#endif > + > void X86JITInfo::replaceMachineCodeForFunction(void *Old, void *New) { > unsigned char *OldByte = (unsigned char *)Old; > *OldByte++ = 0xE9; // Emit JMP opcode. > @@ -64,9 +69,6 @@ > "popl %ebp\n" > "ret\n"); > #else > - extern "C" void *_AddressOfReturnAddress...
2006 Jan 26
4
[LLVMdev] VS2005 patch
OK, fixed the problem with the intrin.h header that doesn't exist in previous versions of VS... -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: JIT.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060126/7e55b0d0/attachment.ksh>
2006 Jan 26
2
[LLVMdev] VS2005 patch
...@@ -20,6 +20,11 @@ >> #include <iostream> >> using namespace llvm; >> >> +#ifdef _MSC_VER >> + extern "C" void *_AddressOfReturnAddress(void); >> + #pragma intrinsic(_AddressOfReturnAddress) >> +#endif >> + >> void X86JITInfo::replaceMachineCodeForFunction(void *Old, void *New) { >> unsigned char *OldByte = (unsigned char *)Old; >> *OldByte++ = 0xE9; // Emit JMP opcode. >> @@ -64,9 +69,6 @@ >> "popl %ebp\n" >> "ret\n"); >> #else >> - extern "C" v...
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
...= Reloc::Static) && Index: lib/Target/PowerPC/PPCJITInfo.h =================================================================== --- lib/Target/PowerPC/PPCJITInfo.h (revision 52391) +++ lib/Target/PowerPC/PPCJITInfo.h (working copy) @@ -41,6 +41,11 @@ /// code. /// virtual void replaceMachineCodeForFunction(void *Old, void *New); + + /// InvalidateInstructionCache - Before the JIT can run a block of code + // that has been emitted it must invalidate the instruction cache on some + // platforms. + virtual void InvalidateInstructionCache(const void *Addr, unsigned len); }; } Index:...
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