2012-02-18 12:03:15 +00:00
|
|
|
//===-- MSP430Subtarget.cpp - MSP430 Subtarget Information ----------------===//
|
2009-05-03 12:57:15 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-07-01 21:01:15 +00:00
|
|
|
// This file implements the MSP430 specific subclass of TargetSubtargetInfo.
|
2009-05-03 12:57:15 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MSP430Subtarget.h"
|
|
|
|
#include "MSP430.h"
|
2011-08-24 18:08:43 +00:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2011-07-01 20:45:01 +00:00
|
|
|
|
2014-04-21 22:55:11 +00:00
|
|
|
#define DEBUG_TYPE "msp430-subtarget"
|
|
|
|
|
2011-07-01 20:45:01 +00:00
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
2011-07-08 01:53:10 +00:00
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
2011-07-01 22:36:09 +00:00
|
|
|
#include "MSP430GenSubtargetInfo.inc"
|
2009-05-03 12:57:15 +00:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2011-12-20 02:50:00 +00:00
|
|
|
void MSP430Subtarget::anchor() { }
|
|
|
|
|
2011-06-30 01:53:36 +00:00
|
|
|
MSP430Subtarget::MSP430Subtarget(const std::string &TT,
|
2011-07-07 07:07:08 +00:00
|
|
|
const std::string &CPU,
|
|
|
|
const std::string &FS) :
|
|
|
|
MSP430GenSubtargetInfo(TT, CPU, FS) {
|
|
|
|
std::string CPUName = "generic";
|
2009-05-03 12:57:15 +00:00
|
|
|
|
|
|
|
// Parse features string.
|
2011-07-07 07:07:08 +00:00
|
|
|
ParseSubtargetFeatures(CPUName, FS);
|
2009-05-03 12:57:15 +00:00
|
|
|
}
|