[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/VM.h
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Oct 17 13:29:16 PDT 2003
Changes in directory llvm/lib/ExecutionEngine/JIT:
VM.h updated: 1.14 -> 1.15
---
Log message:
Tidy up doxygen comment for getPointerToFunction().
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction().
---
Diffs of the changes: (+10 -0)
Index: llvm/lib/ExecutionEngine/JIT/VM.h
diff -u llvm/lib/ExecutionEngine/JIT/VM.h:1.14 llvm/lib/ExecutionEngine/JIT/VM.h:1.15
--- llvm/lib/ExecutionEngine/JIT/VM.h:1.14 Tue Oct 14 16:37:41 2003
+++ llvm/lib/ExecutionEngine/JIT/VM.h Fri Oct 17 13:27:12 2003
@@ -54,11 +54,21 @@
/// 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
More information about the llvm-commits
mailing list