summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCJITInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-06-17 17:30:05 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-06-17 17:30:05 +0000
commit210539ebc466521e41e69b119649d59cc721b006 (patch)
treea97fbc706a4afc590db8ee83ffa3664ebd69c506 /lib/Target/PowerPC/PPCJITInfo.h
parentfc329f4fa18cf4e7b64c1813041d4895b19fa347 (diff)
downloadllvm-210539ebc466521e41e69b119649d59cc721b006.tar.gz
llvm-210539ebc466521e41e69b119649d59cc721b006.tar.bz2
llvm-210539ebc466521e41e69b119649d59cc721b006.tar.xz
Provide generic hooks for icache invalidation. Add PPC implementation.
Patch by Gary Benson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCJITInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCJITInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCJITInfo.h b/lib/Target/PowerPC/PPCJITInfo.h
index c93a84aca0..b7e6ff56ab 100644
--- a/lib/Target/PowerPC/PPCJITInfo.h
+++ b/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);
};
}