summaryrefslogtreecommitdiff
path: root/include/llvm/Target/TargetJITInfo.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 /include/llvm/Target/TargetJITInfo.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 'include/llvm/Target/TargetJITInfo.h')
-rw-r--r--include/llvm/Target/TargetJITInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetJITInfo.h b/include/llvm/Target/TargetJITInfo.h
index 6e1eb4396c..293e0d3840 100644
--- a/include/llvm/Target/TargetJITInfo.h
+++ b/include/llvm/Target/TargetJITInfo.h
@@ -94,6 +94,11 @@ namespace llvm {
assert(NumRelocs == 0 && "This target does not have relocations!");
}
+ /// 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) {}
+
/// needsGOT - Allows a target to specify that it would like the
// JIT to manage a GOT for it.
bool needsGOT() const { return useGOT; }