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
This commit is contained in:
Anton Korobeynikov
2008-06-17 17:30:05 +00:00
parent fc329f4fa1
commit 210539ebc4
5 changed files with 16 additions and 29 deletions

View File

@@ -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; }