summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitad024c3de554882114b4c83bf3cc186a2ccf8462 (patch)
tree7c738398eb113db9ed1e7a165f23a4ff6be6c56a /llvm
parent141ea3a0525cd33408aaa6f19875bdddffa9a51c (diff)
downloadbcm5719-llvm-ad024c3de554882114b4c83bf3cc186a2ccf8462.tar.gz
bcm5719-llvm-ad024c3de554882114b4c83bf3cc186a2ccf8462.zip
Rename 'run' to 'runFunction' to emphasize that it is usable to run any
function in a module, not just main llvm-svn: 10608
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ExecutionEngine/ExecutionEngine.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h b/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
index ba6a6e1cc06..b3f4f9fb451 100644
--- a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/llvm/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!");
OpenPOWER on IntegriCloud