MSP430Subtarget.h revision 193323
1193323Sed//====-- MSP430Subtarget.h - Define Subtarget for the MSP430 ---*- C++ -*--===//
2193323Sed//
3193323Sed//                     The LLVM Compiler Infrastructure
4193323Sed//
5193323Sed// This file is distributed under the University of Illinois Open Source
6193323Sed// License. See LICENSE.TXT for details.
7193323Sed//
8193323Sed//===----------------------------------------------------------------------===//
9193323Sed//
10193323Sed// This file declares the MSP430 specific subclass of TargetSubtarget.
11193323Sed//
12193323Sed//===----------------------------------------------------------------------===//
13193323Sed
14193323Sed#ifndef LLVM_TARGET_MSP430_SUBTARGET_H
15193323Sed#define LLVM_TARGET_MSP430_SUBTARGET_H
16193323Sed
17193323Sed#include "llvm/Target/TargetSubtarget.h"
18193323Sed
19193323Sed#include <string>
20193323Sed
21193323Sednamespace llvm {
22193323Sedclass Module;
23193323Sedclass TargetMachine;
24193323Sed
25193323Sedclass MSP430Subtarget : public TargetSubtarget {
26193323Sed  bool ExtendedInsts;
27193323Sedpublic:
28193323Sed  /// This constructor initializes the data members to match that
29193323Sed  /// of the specified module.
30193323Sed  ///
31193323Sed  MSP430Subtarget(const TargetMachine &TM, const Module &M,
32193323Sed                  const std::string &FS);
33193323Sed
34193323Sed  /// ParseSubtargetFeatures - Parses features string setting specified
35193323Sed  /// subtarget options.  Definition of function is auto generated by tblgen.
36193323Sed  std::string ParseSubtargetFeatures(const std::string &FS,
37193323Sed                                     const std::string &CPU);
38193323Sed};
39193323Sed} // End llvm namespace
40193323Sed
41193323Sed#endif  // LLVM_TARGET_MSP430_SUBTARGET_H
42