Files
llvm-6502/lib/Target/Mos6502/Mos6502Subtarget.cpp
Damián Silvani 5445972c1b Trying to clean source code and compile blindly
But it's not working :(
AsmParser and Disassembler were removed for now, to simplify things.
2015-08-07 00:07:40 -03:00

45 lines
1.5 KiB
C++

//===-- Mos6502Subtarget.cpp - MOS6502 Subtarget Information ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the MOS6502 specific subclass of TargetSubtargetInfo.
//
//===----------------------------------------------------------------------===//
#include "Mos6502Subtarget.h"
#include "Mos6502.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
#define DEBUG_TYPE "mos6502-subtarget"
#define GET_SUBTARGETINFO_TARGET_DESC
#define GET_SUBTARGETINFO_CTOR
#include "Mos6502GenSubtargetInfo.inc"
void Mos6502Subtarget::anchor() { }
Mos6502Subtarget &Mos6502Subtarget::initializeSubtargetDependencies(StringRef CPU,
StringRef FS) {
// Determine default and user specified characteristics
std::string CPUName = CPU;
// Parse features string.
ParseSubtargetFeatures(CPUName, FS);
return *this;
}
Mos6502Subtarget::Mos6502Subtarget(const Triple &TT, const std::string &CPU,
const std::string &FS, TargetMachine &TM)
: Mos6502GenSubtargetInfo(TT, CPU, FS),
InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this),
FrameLowering(*this) {}