mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Implement ExecutionEngine::freeMachineCodeForFunction()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -120,6 +120,10 @@ public:
|
|||||||
return getPointerToFunction(F);
|
return getPointerToFunction(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// freeMachineCodeForFunction - The interpreter does not generate any code.
|
||||||
|
///
|
||||||
|
void freeMachineCodeForFunction(Function *F) { }
|
||||||
|
|
||||||
// Methods used to execute code:
|
// Methods used to execute code:
|
||||||
// Place a call on the stack
|
// Place a call on the stack
|
||||||
void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
|
void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);
|
||||||
|
@@ -330,3 +330,9 @@ void *JIT::recompileAndRelinkFunction(Function *F) {
|
|||||||
TJI.replaceMachineCodeForFunction(OldAddr, Addr);
|
TJI.replaceMachineCodeForFunction(OldAddr, Addr);
|
||||||
return Addr;
|
return Addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// freeMachineCodeForFunction - release machine code memory for given Function
|
||||||
|
///
|
||||||
|
void JIT::freeMachineCodeForFunction(Function *F) {
|
||||||
|
// currently a no-op
|
||||||
|
}
|
||||||
|
@@ -90,6 +90,11 @@ public:
|
|||||||
///
|
///
|
||||||
void *recompileAndRelinkFunction(Function *F);
|
void *recompileAndRelinkFunction(Function *F);
|
||||||
|
|
||||||
|
/// freeMachineCodeForFunction - deallocate memory used to code-generate this
|
||||||
|
/// Function.
|
||||||
|
///
|
||||||
|
void freeMachineCodeForFunction(Function *F);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static MachineCodeEmitter *createEmitter(JIT &J);
|
static MachineCodeEmitter *createEmitter(JIT &J);
|
||||||
void runJITOnFunction (Function *F);
|
void runJITOnFunction (Function *F);
|
||||||
|
Reference in New Issue
Block a user