Tidy up doxygen comment for getPointerToFunction().
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 17 Oct 2003 18:27:12 +0000 (18:27 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 17 Oct 2003 18:27:12 +0000 (18:27 +0000)
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9200 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/JIT/VM.h

index ddfd8964f8b3aaa64d1a884842bd6a932001c604..d8fabc346f7642d6e1dbd4dd1abb66d2f301d940 100644 (file)
@@ -54,11 +54,21 @@ public:
 
   /// getPointerToFunction - This returns the address of the specified function,
   /// compiling it if necessary.
+  ///
   void *getPointerToFunction(Function *F);
 
+  /// recompileAndRelinkFunction - This method is used to force a function
+  /// which has already been compiled, to be compiled again, possibly
+  /// after it has been modified. Then the entry to the old copy is overwritten
+  /// with a branch to the new copy. If there was no old copy, this acts
+  /// just like VM::getPointerToFunction().
+  ///
+  void *recompileAndRelinkFunction(Function *F);
+
 private:
   static MachineCodeEmitter *createEmitter(VM &V);
   void setupPassManager();
+  void runJITOnFunction (Function *F);
 };
 
 #endif
index ddfd8964f8b3aaa64d1a884842bd6a932001c604..d8fabc346f7642d6e1dbd4dd1abb66d2f301d940 100644 (file)
@@ -54,11 +54,21 @@ public:
 
   /// getPointerToFunction - This returns the address of the specified function,
   /// compiling it if necessary.
+  ///
   void *getPointerToFunction(Function *F);
 
+  /// recompileAndRelinkFunction - This method is used to force a function
+  /// which has already been compiled, to be compiled again, possibly
+  /// after it has been modified. Then the entry to the old copy is overwritten
+  /// with a branch to the new copy. If there was no old copy, this acts
+  /// just like VM::getPointerToFunction().
+  ///
+  void *recompileAndRelinkFunction(Function *F);
+
 private:
   static MachineCodeEmitter *createEmitter(VM &V);
   void setupPassManager();
+  void runJITOnFunction (Function *F);
 };
 
 #endif