summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86JITInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-20 23:53:56 +0000
committerChris Lattner <sabre@nondot.org>2004-11-20 23:53:56 +0000
commit89d64e262cb4eb075e039bcc10813f77d60f1ed8 (patch)
treed461db2a3a89b6e100d002f412bf4dd3b4f6507c /lib/Target/X86/X86JITInfo.h
parent3bf285a6765438ac1c73638814cae6201ae26a3a (diff)
downloadllvm-89d64e262cb4eb075e039bcc10813f77d60f1ed8.tar.gz
llvm-89d64e262cb4eb075e039bcc10813f77d60f1ed8.tar.bz2
llvm-89d64e262cb4eb075e039bcc10813f77d60f1ed8.tar.xz
We implement these interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86JITInfo.h')
-rw-r--r--lib/Target/X86/X86JITInfo.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/Target/X86/X86JITInfo.h b/lib/Target/X86/X86JITInfo.h
index 75efb19a52..e28cc00436 100644
--- a/lib/Target/X86/X86JITInfo.h
+++ b/lib/Target/X86/X86JITInfo.h
@@ -38,11 +38,19 @@ namespace llvm {
///
virtual void replaceMachineCodeForFunction(void *Old, void *New);
- /// getJITStubForFunction - Create or return a stub for the specified
- /// function. This stub acts just like the specified function, except that
- /// it allows the "address" of the function to be taken without having to
- /// generate code for it.
- virtual void *getJITStubForFunction(Function *F, MachineCodeEmitter &MCE);
+ /// emitFunctionStub - Use the specified MachineCodeEmitter object to emit a
+ /// small native function that simply calls the function at the specified
+ /// address.
+ virtual void *emitFunctionStub(void *Fn, MachineCodeEmitter &MCE);
+
+ /// getLazyResolverFunction - Expose the lazy resolver to the JIT.
+ virtual LazyResolverFn getLazyResolverFunction(JITCompilerFn);
+
+ /// relocate - Before the JIT can run a block of code that has been emitted,
+ /// it must rewrite the code to contain the actual addresses of any
+ /// referenced global symbols.
+ virtual void relocate(void *Function, MachineRelocation *MR,
+ unsigned NumRelocs);
};
}