blob: 31df9c0fee99cc945d0c6d4971b3563b06fa96e3 [file] [log] [blame]
Jakob Stoklund Olesen2cfddbb2009-08-02 17:32:10 +00001//===- BlackfinSubtarget.h - Define Subtarget for the Blackfin -*- 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 BLACKFIN specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef BLACKFIN_SUBTARGET_H
15#define BLACKFIN_SUBTARGET_H
16
17#include "llvm/Target/TargetSubtarget.h"
18#include <string>
19
20namespace llvm {
21
22 class TargetMachine;
23 class Module;
24
25 class BlackfinSubtarget : public TargetSubtarget {
26 bool ssyncWorkaround;
27 public:
28 BlackfinSubtarget(const TargetMachine &TM, const Module &M,
29 const std::string &FS);
30
31 /// ParseSubtargetFeatures - Parses features string setting specified
32 /// subtarget options. Definition of function is auto generated by tblgen.
33 std::string ParseSubtargetFeatures(const std::string &FS,
34 const std::string &CPU);
35 };
36
37} // end namespace llvm
38
39#endif