/3rd_party/llvm/lib/Target/XCore/XCoreSubtarget.h

https://code.google.com/p/softart/ · C++ Header · 43 lines · 18 code · 8 blank · 17 comment · 0 complexity · b5003ed71216ea3fb70af23f05be0f60 MD5 · raw file

  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. #ifndef XCORESUBTARGET_H
  14. #define XCORESUBTARGET_H
  15. #include "llvm/Target/TargetMachine.h"
  16. #include "llvm/Target/TargetSubtargetInfo.h"
  17. #include <string>
  18. #define GET_SUBTARGETINFO_HEADER
  19. #include "XCoreGenSubtargetInfo.inc"
  20. namespace llvm {
  21. class StringRef;
  22. class XCoreSubtarget : public XCoreGenSubtargetInfo {
  23. virtual void anchor();
  24. public:
  25. /// This constructor initializes the data members to match that
  26. /// of the specified triple.
  27. ///
  28. XCoreSubtarget(const std::string &TT, const std::string &CPU,
  29. const std::string &FS);
  30. /// ParseSubtargetFeatures - Parses features string setting specified
  31. /// subtarget options. Definition of function is auto generated by tblgen.
  32. void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
  33. };
  34. } // End llvm namespace
  35. #endif