blob: e7bebbdd1a5f834e731c0dfe216272d8f13662d3 [file] [log] [blame]
Jia Liub22310f2012-02-18 12:03:15 +00001//===-- MSP430Subtarget.h - Define Subtarget for the MSP430 ----*- C++ -*--===//
Anton Korobeynikov10138002009-05-03 12:57:15 +00002//
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 Cheng0d639a22011-07-01 21:01:15 +000010// This file declares the MSP430 specific subclass of TargetSubtargetInfo.
Anton Korobeynikov10138002009-05-03 12:57:15 +000011//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TARGET_MSP430_SUBTARGET_H
15#define LLVM_TARGET_MSP430_SUBTARGET_H
16
Evan Cheng0d639a22011-07-01 21:01:15 +000017#include "llvm/Target/TargetSubtargetInfo.h"
Anton Korobeynikov10138002009-05-03 12:57:15 +000018
Evan Cheng54b68e32011-07-01 20:45:01 +000019#define GET_SUBTARGETINFO_HEADER
Evan Chengc9c090d2011-07-01 22:36:09 +000020#include "MSP430GenSubtargetInfo.inc"
Evan Cheng54b68e32011-07-01 20:45:01 +000021
Anton Korobeynikov10138002009-05-03 12:57:15 +000022#include <string>
23
24namespace llvm {
Evan Cheng1a72add62011-07-07 07:07:08 +000025class StringRef;
Anton Korobeynikov10138002009-05-03 12:57:15 +000026
Evan Cheng54b68e32011-07-01 20:45:01 +000027class MSP430Subtarget : public MSP430GenSubtargetInfo {
David Blaikiea379b1812011-12-20 02:50:00 +000028 virtual void anchor();
Anton Korobeynikov10138002009-05-03 12:57:15 +000029 bool ExtendedInsts;
30public:
31 /// This constructor initializes the data members to match that
Daniel Dunbar31b44e82009-08-02 22:11:08 +000032 /// of the specified triple.
Anton Korobeynikov10138002009-05-03 12:57:15 +000033 ///
Evan Chengfe6e4052011-06-30 01:53:36 +000034 MSP430Subtarget(const std::string &TT, const std::string &CPU,
35 const std::string &FS);
Anton Korobeynikov10138002009-05-03 12:57:15 +000036
37 /// ParseSubtargetFeatures - Parses features string setting specified
38 /// subtarget options. Definition of function is auto generated by tblgen.
Evan Cheng1a72add62011-07-07 07:07:08 +000039 void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
Anton Korobeynikov10138002009-05-03 12:57:15 +000040};
41} // End llvm namespace
42
43#endif // LLVM_TARGET_MSP430_SUBTARGET_H