Implement Subtarget support
[oota-llvm.git] / include / llvm / Target / TargetSubtarget.h
1 //==-- llvm/Target/TargetSubtarget.h - Target Information --------*- C++ -*-==//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Nate Begeman and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file describes the subtarget options of a Target machine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TARGET_TARGETSUBTARGET_H
15 #define LLVM_TARGET_TARGETSUBTARGET_H
16
17 namespace llvm {
18
19 class Module;
20
21 //===----------------------------------------------------------------------===//
22 ///
23 /// TargetSubtarget - Generic base class for all target subtargets.  All
24 /// Target-specific options that control code generation and printing should
25 /// be exposed through a TargetSubtarget-derived class.
26 ///
27 class TargetSubtarget {
28   TargetSubtarget(const TargetSubtarget&);   // DO NOT IMPLEMENT
29   void operator=(const TargetSubtarget&);  // DO NOT IMPLEMENT
30 protected: // Can only create subclasses...
31   /// This constructor initializes the data members to match that 
32   /// of the specified module.
33   ///
34   TargetSubtarget(const Module &M);
35 public:
36   virtual ~TargetSubtarget();
37 };
38
39 } // End llvm namespace
40
41 #endif