zpu: wip eke out some simple instructions for load/store/add
[llvm/zpu.git] / lib / Target / PTX / PTXSubtarget.h
blob7fd85f873ae4536296231a7a59931e7b64fd7a14
1 //====-- 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.
12 //===----------------------------------------------------------------------===//
14 #ifndef PTX_SUBTARGET_H
15 #define PTX_SUBTARGET_H
17 #include "llvm/Target/TargetSubtarget.h"
19 namespace llvm {
20 class PTXSubtarget : public TargetSubtarget {
21 private:
22 bool is_sm20;
24 public:
25 PTXSubtarget(const std::string &TT, const std::string &FS);
27 std::string ParseSubtargetFeatures(const std::string &FS,
28 const std::string &CPU);
29 }; // class PTXSubtarget
30 } // namespace llvm
32 #endif // PTX_SUBTARGET_H