blob: 7fd85f873ae4536296231a7a59931e7b64fd7a14 [file] [log] [blame]
Eric Christopher50880d02010-09-18 18:52:28 +00001//====-- PTXSubtarget.h - Define Subtarget for the PTX ---------*- 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 PTX specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef PTX_SUBTARGET_H
15#define PTX_SUBTARGET_H
16
17#include "llvm/Target/TargetSubtarget.h"
18
19namespace llvm {
20 class PTXSubtarget : public TargetSubtarget {
21 private:
22 bool is_sm20;
23
24 public:
25 PTXSubtarget(const std::string &TT, const std::string &FS);
26
27 std::string ParseSubtargetFeatures(const std::string &FS,
28 const std::string &CPU);
29 }; // class PTXSubtarget
30} // namespace llvm
31
32#endif // PTX_SUBTARGET_H