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