1 //==-- llvm/Target/TargetSubtarget.h - Target Information --------*- C++ -*-==//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file describes the subtarget options of a Target machine.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TARGET_TARGETSUBTARGET_H
15 #define LLVM_TARGET_TARGETSUBTARGET_H
19 //===----------------------------------------------------------------------===//
21 /// TargetSubtarget - Generic base class for all target subtargets. All
22 /// Target-specific options that control code generation and printing should
23 /// be exposed through a TargetSubtarget-derived class.
25 class TargetSubtarget {
26 TargetSubtarget(const TargetSubtarget&); // DO NOT IMPLEMENT
27 void operator=(const TargetSubtarget&); // DO NOT IMPLEMENT
28 protected: // Can only create subclasses...
31 virtual ~TargetSubtarget();
33 /// getSpecialAddressLatency - For targets where it is beneficial to
34 /// backschedule instructions that compute addresses, return a value
35 /// indicating the number of scheduling cycles of backscheduling that
36 /// should be attempted.
37 virtual unsigned getSpecialAddressLatency() const { return 0; }
40 } // End llvm namespace