2008-05-13 09:02:57 +00:00
|
|
|
//=====-- PIC16Subtarget.h - Define Subtarget for the PIC16 ---*- 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 PIC16 specific subclass of TargetSubtarget.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef PIC16SUBTARGET_H
|
|
|
|
#define PIC16SUBTARGET_H
|
|
|
|
|
2008-05-14 11:31:39 +00:00
|
|
|
#include "llvm/Target/TargetSubtarget.h"
|
2008-05-13 09:02:57 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class PIC16Subtarget : public TargetSubtarget {
|
2008-11-19 11:00:54 +00:00
|
|
|
|
|
|
|
// IsCooper - Target ISA is Cooper.
|
|
|
|
bool IsCooper;
|
2008-05-13 09:02:57 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
/// This constructor initializes the data members to match that
|
2009-08-02 22:11:08 +00:00
|
|
|
/// of the specified triple.
|
2008-05-13 09:02:57 +00:00
|
|
|
///
|
2009-08-02 22:11:08 +00:00
|
|
|
PIC16Subtarget(const std::string &TT, const std::string &FS, bool Cooper);
|
2008-05-13 09:02:57 +00:00
|
|
|
|
2008-11-19 11:00:54 +00:00
|
|
|
/// isCooper - Returns true if the target ISA is Cooper.
|
|
|
|
bool isCooper() const { return IsCooper; }
|
|
|
|
|
2008-05-13 09:02:57 +00:00
|
|
|
/// ParseSubtargetFeatures - Parses features string setting specified
|
|
|
|
/// subtarget options. Definition of function is auto generated by tblgen.
|
2009-05-23 19:50:50 +00:00
|
|
|
std::string ParseSubtargetFeatures(const std::string &FS,
|
|
|
|
const std::string &CPU);
|
2008-05-13 09:02:57 +00:00
|
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
|
2008-11-19 11:00:54 +00:00
|
|
|
#endif // PIC16SUBTARGET_H
|