| //=====-- XCoreSubtarget.h - Define Subtarget for the XCore -----*- C++ -*--==// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // This file declares the XCore specific subclass of TargetSubtargetInfo. |
| //===----------------------------------------------------------------------===// |
| #include "llvm/Target/TargetSubtargetInfo.h" |
| #include "llvm/Target/TargetMachine.h" |
| #define GET_SUBTARGETINFO_HEADER |
| #include "XCoreGenSubtargetInfo.inc" |
| class XCoreSubtarget : public XCoreGenSubtargetInfo { |
| /// This constructor initializes the data members to match that |
| /// of the specified triple. |
| XCoreSubtarget(const std::string &TT, const std::string &CPU, |
| /// ParseSubtargetFeatures - Parses features string setting specified |
| /// subtarget options. Definition of function is auto generated by tblgen. |
| void ParseSubtargetFeatures(StringRef CPU, StringRef FS); |