[llvm-commits] CVS: llvm/lib/Target/X86/X86JITInfo.h

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 20 15:54:08 PST 2004



Changes in directory llvm/lib/Target/X86:

X86JITInfo.h updated: 1.3 -> 1.4
---
Log message:

We implement these interfaces


---
Diffs of the changes:  (+13 -5)

Index: llvm/lib/Target/X86/X86JITInfo.h
diff -u llvm/lib/Target/X86/X86JITInfo.h:1.3 llvm/lib/Target/X86/X86JITInfo.h:1.4
--- llvm/lib/Target/X86/X86JITInfo.h:1.3	Sun Dec 28 15:23:38 2003
+++ llvm/lib/Target/X86/X86JITInfo.h	Sat Nov 20 17:53:56 2004
@@ -38,11 +38,19 @@
     ///
     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);
   };
 }
 






More information about the llvm-commits mailing list