From 7d7dcd52db479f122c2080600641064176fb8d43 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 17 Jun 2008 17:30:05 +0000 Subject: Provide generic hooks for icache invalidation. Add PPC implementation. Patch by Gary Benson! llvm-svn: 52418 --- llvm/lib/Target/PowerPC/PPCJITInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/PowerPC/PPCJITInfo.h') diff --git a/llvm/lib/Target/PowerPC/PPCJITInfo.h b/llvm/lib/Target/PowerPC/PPCJITInfo.h index c93a84aca05..b7e6ff56ab1 100644 --- a/llvm/lib/Target/PowerPC/PPCJITInfo.h +++ b/llvm/lib/Target/PowerPC/PPCJITInfo.h @@ -41,6 +41,11 @@ namespace llvm { /// 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); }; } -- cgit v1.2.3