mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Starting to refactor Target to separate out code that's needed to fully describe
target machine from those that are only needed by codegen. The goal is to sink the essential target description into MC layer so we can start building MC based tools without needing to link in the entire codegen. First step is to refactor TargetRegisterInfo. This patch added a base class MCRegisterInfo which TargetRegisterInfo is derived from. Changed TableGen to separate register description from the rest of the stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "X86GenRegisterDesc.inc"
|
||||
#include "X86GenRegisterInfo.inc"
|
||||
using namespace llvm;
|
||||
|
||||
cl::opt<bool>
|
||||
@@ -49,7 +51,8 @@ ForceStackAlign("force-align-stack",
|
||||
|
||||
X86RegisterInfo::X86RegisterInfo(X86TargetMachine &tm,
|
||||
const TargetInstrInfo &tii)
|
||||
: X86GenRegisterInfo(tm.getSubtarget<X86Subtarget>().is64Bit() ?
|
||||
: X86GenRegisterInfo(X86RegDesc, X86RegInfoDesc,
|
||||
tm.getSubtarget<X86Subtarget>().is64Bit() ?
|
||||
X86::ADJCALLSTACKDOWN64 :
|
||||
X86::ADJCALLSTACKDOWN32,
|
||||
tm.getSubtarget<X86Subtarget>().is64Bit() ?
|
||||
@@ -918,8 +921,6 @@ unsigned getX86SubSuperRegister(unsigned Reg, EVT VT, bool High) {
|
||||
}
|
||||
}
|
||||
|
||||
#include "X86GenRegisterInfo.inc"
|
||||
|
||||
namespace {
|
||||
struct MSAH : public MachineFunctionPass {
|
||||
static char ID;
|
||||
|
||||
Reference in New Issue
Block a user