blob: dddfd2c70c22f94a37f3501c1cc78a9e0ea9294e [file] [log] [blame]
Anton Korobeynikovf2c3e172009-05-03 12:57:15 +00001//===- MSP430Subtarget.cpp - MSP430 Subtarget Information ---------*- C++ -*-=//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Evan Cheng5b1b44892011-07-01 21:01:15 +000010// This file implements the MSP430 specific subclass of TargetSubtargetInfo.
Anton Korobeynikovf2c3e172009-05-03 12:57:15 +000011//
12//===----------------------------------------------------------------------===//
13
14#include "MSP430Subtarget.h"
15#include "MSP430.h"
Evan Cheng94214702011-07-01 20:45:01 +000016
Evan Chengebdeeab2011-07-08 01:53:10 +000017#define GET_SUBTARGETINFO_ENUM
Evan Cheng94214702011-07-01 20:45:01 +000018#define GET_SUBTARGETINFO_MC_DESC
19#define GET_SUBTARGETINFO_TARGET_DESC
Evan Chengebdeeab2011-07-08 01:53:10 +000020#define GET_SUBTARGETINFO_CTOR
Evan Cheng385e9302011-07-01 22:36:09 +000021#include "MSP430GenSubtargetInfo.inc"
Anton Korobeynikovf2c3e172009-05-03 12:57:15 +000022
23using namespace llvm;
24
Evan Cheng276365d2011-06-30 01:53:36 +000025MSP430Subtarget::MSP430Subtarget(const std::string &TT,
Evan Cheng0ddff1b2011-07-07 07:07:08 +000026 const std::string &CPU,
27 const std::string &FS) :
28 MSP430GenSubtargetInfo(TT, CPU, FS) {
29 std::string CPUName = "generic";
Anton Korobeynikovf2c3e172009-05-03 12:57:15 +000030
31 // Parse features string.
Evan Cheng0ddff1b2011-07-07 07:07:08 +000032 ParseSubtargetFeatures(CPUName, FS);
Anton Korobeynikovf2c3e172009-05-03 12:57:15 +000033}