aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-26 06:12:25 +0000
committerChris Lattner <sabre@nondot.org>2003-12-26 06:12:25 +0000
commitff65e36be0f4fbe776ee6bb39b7ab14ebe3895eb (patch)
tree59addab115e218ae6be17c7dde87963091574884 /include
parent7efea1dd98cd9e20ef160c838190f5249123f494 (diff)
downloadexternal_llvm-ff65e36be0f4fbe776ee6bb39b7ab14ebe3895eb.zip
external_llvm-ff65e36be0f4fbe776ee6bb39b7ab14ebe3895eb.tar.gz
external_llvm-ff65e36be0f4fbe776ee6bb39b7ab14ebe3895eb.tar.bz2
Rename 'run' to 'runFunction' to emphasize that it is usable to run any
function in a module, not just main git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ExecutionEngine/ExecutionEngine.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h
index ba6a6e1..b3f4f9f 100644
--- a/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -53,14 +53,16 @@ public:
Module &getModule() const { return CurMod; }
const TargetData &getTargetData() const { return *TD; }
- /// run - Start execution with the specified function, arguments, and
- /// environment.
- ///
- virtual GenericValue run(Function *F,
- const std::vector<GenericValue> &ArgValues) = 0;
-
+ /// create - This is the factory method for creating an execution engine which
+ /// is appropriate for the current machine.
static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter);
+ /// runFunction - Execute the specified function with the specified arguments,
+ /// and return the result.
+ ///
+ virtual GenericValue runFunction(Function *F,
+ const std::vector<GenericValue> &ArgValues) = 0;
+
void addGlobalMapping(const GlobalValue *GV, void *Addr) {
void *&CurVal = GlobalAddress[GV];
assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");