diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-17 18:27:12 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-17 18:27:12 +0000 |
commit | 55c0f02cbf4f3716c5fdba7e227c5c8b99bc89ff (patch) | |
tree | 3311b2adcac21e9da891151cf0c98ac792f83026 /lib/ExecutionEngine | |
parent | cd64ddfafe314f0a76d866f9bbb9466cc6d52b03 (diff) | |
download | llvm-55c0f02cbf4f3716c5fdba7e227c5c8b99bc89ff.tar.gz llvm-55c0f02cbf4f3716c5fdba7e227c5c8b99bc89ff.tar.bz2 llvm-55c0f02cbf4f3716c5fdba7e227c5c8b99bc89ff.tar.xz |
Tidy up doxygen comment for getPointerToFunction().
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.h | 10 | ||||
-rw-r--r-- | lib/ExecutionEngine/JIT/VM.h | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.h b/lib/ExecutionEngine/JIT/JIT.h index ddfd8964f8..d8fabc346f 100644 --- a/lib/ExecutionEngine/JIT/JIT.h +++ b/lib/ExecutionEngine/JIT/JIT.h @@ -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 diff --git a/lib/ExecutionEngine/JIT/VM.h b/lib/ExecutionEngine/JIT/VM.h index ddfd8964f8..d8fabc346f 100644 --- a/lib/ExecutionEngine/JIT/VM.h +++ b/lib/ExecutionEngine/JIT/VM.h @@ -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 |