2009-05-03 20:57:15 +08:00
|
|
|
//===- MSP430Subtarget.cpp - MSP430 Subtarget Information ---------*- C++ -*-=//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-07-02 05:01:15 +08:00
|
|
|
// This file implements the MSP430 specific subclass of TargetSubtargetInfo.
|
2009-05-03 20:57:15 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MSP430Subtarget.h"
|
|
|
|
#include "MSP430.h"
|
2011-07-09 13:47:46 +08:00
|
|
|
#include "llvm/Target/TargetRegistry.h"
|
2011-07-02 04:45:01 +08:00
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
2011-07-08 09:53:10 +08:00
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
2011-07-02 06:36:09 +08:00
|
|
|
#include "MSP430GenSubtargetInfo.inc"
|
2009-05-03 20:57:15 +08:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2011-06-30 09:53:36 +08:00
|
|
|
MSP430Subtarget::MSP430Subtarget(const std::string &TT,
|
2011-07-07 15:07:08 +08:00
|
|
|
const std::string &CPU,
|
|
|
|
const std::string &FS) :
|
|
|
|
MSP430GenSubtargetInfo(TT, CPU, FS) {
|
|
|
|
std::string CPUName = "generic";
|
2009-05-03 20:57:15 +08:00
|
|
|
|
|
|
|
// Parse features string.
|
2011-07-07 15:07:08 +08:00
|
|
|
ParseSubtargetFeatures(CPUName, FS);
|
2009-05-03 20:57:15 +08:00
|
|
|
}
|