Rename TargetSubtarget to TargetSubtargetInfo for consistency.
[oota-llvm.git] / lib / Target / XCore / XCoreSubtarget.h
1 //=====-- XCoreSubtarget.h - Define Subtarget for the XCore -----*- 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 //
10 // This file declares the XCore specific subclass of TargetSubtargetInfo.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef XCORESUBTARGET_H
15 #define XCORESUBTARGET_H
16
17 #include "llvm/Target/TargetSubtargetInfo.h"
18 #include "llvm/Target/TargetMachine.h"
19 #include <string>
20
21 #define GET_SUBTARGETINFO_HEADER
22 #include "XCoreGenSubtarget.inc"
23
24 namespace llvm {
25
26 class XCoreSubtarget : public XCoreGenSubtargetInfo {
27
28 public:
29   /// This constructor initializes the data members to match that
30   /// of the specified triple.
31   ///
32   XCoreSubtarget(const std::string &TT, const std::string &CPU,
33                  const std::string &FS);
34   
35   /// ParseSubtargetFeatures - Parses features string setting specified 
36   /// subtarget options.  Definition of function is auto generated by tblgen.
37   void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
38 };
39 } // End llvm namespace
40
41 #endif