Rename 'run' to 'runFunction' to emphasize that it is usable to run any
function in a module, not just main llvm-svn: 10608
This commit is contained in:
parent
141ea3a052
commit
ad024c3de5
|
@ -53,14 +53,16 @@ public:
|
||||||
Module &getModule() const { return CurMod; }
|
Module &getModule() const { return CurMod; }
|
||||||
const TargetData &getTargetData() const { return *TD; }
|
const TargetData &getTargetData() const { return *TD; }
|
||||||
|
|
||||||
/// run - Start execution with the specified function, arguments, and
|
/// create - This is the factory method for creating an execution engine which
|
||||||
/// environment.
|
/// is appropriate for the current machine.
|
||||||
///
|
|
||||||
virtual GenericValue run(Function *F,
|
|
||||||
const std::vector<GenericValue> &ArgValues) = 0;
|
|
||||||
|
|
||||||
static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter);
|
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 addGlobalMapping(const GlobalValue *GV, void *Addr) {
|
||||||
void *&CurVal = GlobalAddress[GV];
|
void *&CurVal = GlobalAddress[GV];
|
||||||
assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");
|
assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!");
|
||||||
|
|
Loading…
Reference in New Issue