mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
lli: Add stub -use-mcjit option, which doesn't currently do anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -126,8 +126,8 @@ protected:
|
||||
virtual char *getMemoryForGV(const GlobalVariable *GV);
|
||||
|
||||
// To avoid having libexecutionengine depend on the JIT and interpreter
|
||||
// libraries, the JIT and Interpreter set these functions to ctor pointers at
|
||||
// startup time if they are linked in.
|
||||
// libraries, the execution engine implementations set these functions to ctor
|
||||
// pointers at startup time if they are linked in.
|
||||
static ExecutionEngine *(*JITCtor)(
|
||||
Module *M,
|
||||
std::string *ErrorStr,
|
||||
@@ -138,6 +138,16 @@ protected:
|
||||
StringRef MArch,
|
||||
StringRef MCPU,
|
||||
const SmallVectorImpl<std::string>& MAttrs);
|
||||
static ExecutionEngine *(*MCJITCtor)(
|
||||
Module *M,
|
||||
std::string *ErrorStr,
|
||||
JITMemoryManager *JMM,
|
||||
CodeGenOpt::Level OptLevel,
|
||||
bool GVsWithCode,
|
||||
CodeModel::Model CMM,
|
||||
StringRef MArch,
|
||||
StringRef MCPU,
|
||||
const SmallVectorImpl<std::string>& MAttrs);
|
||||
static ExecutionEngine *(*InterpCtor)(Module *M,
|
||||
std::string *ErrorStr);
|
||||
|
||||
@@ -447,6 +457,7 @@ private:
|
||||
std::string MArch;
|
||||
std::string MCPU;
|
||||
SmallVector<std::string, 4> MAttrs;
|
||||
bool UseMCJIT;
|
||||
|
||||
/// InitEngine - Does the common initialization of default options.
|
||||
void InitEngine() {
|
||||
@@ -456,6 +467,7 @@ private:
|
||||
JMM = NULL;
|
||||
AllocateGVsWithCode = false;
|
||||
CMModel = CodeModel::Default;
|
||||
UseMCJIT = false;
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -526,6 +538,12 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// setUseMCJIT - Set whether the MC-JIT implementation should be used
|
||||
/// (experimental).
|
||||
void setUseMCJIT(bool Value) {
|
||||
UseMCJIT = Value;
|
||||
}
|
||||
|
||||
/// setMAttrs - Set cpu-specific attributes.
|
||||
template<typename StringSequence>
|
||||
EngineBuilder &setMAttrs(const StringSequence &mattrs) {
|
||||
|
||||
Reference in New Issue
Block a user