summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit7d7dcd52db479f122c2080600641064176fb8d43 (patch)
tree145aaffdac7eb3f92adc23b8f311f3a13709c6c1 /llvm/lib/Target/PowerPC/PPCJITInfo.h
parenta02e2f991b278885fd799a1486d84c4d1d7a70fc (diff)
downloadbcm5719-llvm-7d7dcd52db479f122c2080600641064176fb8d43.tar.gz
bcm5719-llvm-7d7dcd52db479f122c2080600641064176fb8d43.zip
Provide generic hooks for icache invalidation. Add PPC implementation.
Patch by Gary Benson! llvm-svn: 52418
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCJITInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCJITInfo.h5
1 files changed, 5 insertions, 0 deletions
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);
};
}
OpenPOWER on IntegriCloud