mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir
Stefanovic. I removed the part that actually emits the instructions cause I want that to get in better shape first and in incremental steps. This also makes it easier to review the upcoming parts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,7 +42,7 @@ MipsTargetMachine(const Target &T, StringRef TT,
|
||||
std::string("E-p:32:32:32-i8:8:32-i16:16:32-i64:64:64-n32")),
|
||||
InstrInfo(*this),
|
||||
FrameLowering(Subtarget),
|
||||
TLInfo(*this), TSInfo(*this) {
|
||||
TLInfo(*this), TSInfo(*this), JITInfo() {
|
||||
}
|
||||
|
||||
MipselTargetMachine::
|
||||
@@ -81,3 +81,12 @@ addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel) {
|
||||
PM.add(createMipsExpandPseudoPass(*this));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsTargetMachine::addCodeEmitter(PassManagerBase &PM,
|
||||
CodeGenOpt::Level OptLevel,
|
||||
JITCodeEmitter &JCE) {
|
||||
// Machine code emitter pass for Mips.
|
||||
PM.add(createMipsJITCodeEmitterPass(*this, JCE));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user