mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Rename TargetSubtarget to TargetSubtargetInfo for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,7 @@ class TargetJITInfo;
|
||||
class TargetLowering;
|
||||
class TargetRegisterInfo;
|
||||
class TargetSelectionDAGInfo;
|
||||
class TargetSubtarget;
|
||||
class TargetSubtargetInfo;
|
||||
class formatted_raw_ostream;
|
||||
class raw_ostream;
|
||||
|
||||
@@ -94,8 +94,8 @@ protected: // Can only create subclasses.
|
||||
TargetMachine(const Target &);
|
||||
|
||||
/// getSubtargetImpl - virtual method implemented by subclasses that returns
|
||||
/// a reference to that target's TargetSubtarget-derived member variable.
|
||||
virtual const TargetSubtarget *getSubtargetImpl() const { return 0; }
|
||||
/// a reference to that target's TargetSubtargetInfo-derived member variable.
|
||||
virtual const TargetSubtargetInfo *getSubtargetImpl() const { return 0; }
|
||||
|
||||
/// TheTarget - The Target that this machine was created for.
|
||||
const Target &TheTarget;
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
const MCAsmInfo *getMCAsmInfo() const { return AsmInfo; }
|
||||
|
||||
/// getSubtarget - This method returns a pointer to the specified type of
|
||||
/// TargetSubtarget. In debug builds, it verifies that the object being
|
||||
/// TargetSubtargetInfo. In debug builds, it verifies that the object being
|
||||
/// returned is of the correct type.
|
||||
template<typename STC> const STC &getSubtarget() const {
|
||||
return *static_cast<const STC*>(getSubtargetImpl());
|
||||
|
@@ -1,4 +1,4 @@
|
||||
//==-- llvm/Target/TargetSubtarget.h - Target Information --------*- C++ -*-==//
|
||||
//==-- llvm/Target/TargetSubtargetInfo.h - Target Information ----*- C++ -*-==//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@@ -11,8 +11,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TARGET_TARGETSUBTARGET_H
|
||||
#define LLVM_TARGET_TARGETSUBTARGET_H
|
||||
#ifndef LLVM_TARGET_TARGETSUBTARGETINFO_H
|
||||
#define LLVM_TARGET_TARGETSUBTARGETINFO_H
|
||||
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
@@ -26,22 +26,22 @@ template <typename T> class SmallVectorImpl;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
///
|
||||
/// TargetSubtarget - Generic base class for all target subtargets. All
|
||||
/// TargetSubtargetInfo - Generic base class for all target subtargets. All
|
||||
/// Target-specific options that control code generation and printing should
|
||||
/// be exposed through a TargetSubtarget-derived class.
|
||||
/// be exposed through a TargetSubtargetInfo-derived class.
|
||||
///
|
||||
class TargetSubtarget : public MCSubtargetInfo {
|
||||
TargetSubtarget(const TargetSubtarget&); // DO NOT IMPLEMENT
|
||||
void operator=(const TargetSubtarget&); // DO NOT IMPLEMENT
|
||||
class TargetSubtargetInfo : public MCSubtargetInfo {
|
||||
TargetSubtargetInfo(const TargetSubtargetInfo&); // DO NOT IMPLEMENT
|
||||
void operator=(const TargetSubtargetInfo&); // DO NOT IMPLEMENT
|
||||
protected: // Can only create subclasses...
|
||||
TargetSubtarget();
|
||||
TargetSubtargetInfo();
|
||||
public:
|
||||
// AntiDepBreakMode - Type of anti-dependence breaking that should
|
||||
// be performed before post-RA scheduling.
|
||||
typedef enum { ANTIDEP_NONE, ANTIDEP_CRITICAL, ANTIDEP_ALL } AntiDepBreakMode;
|
||||
typedef SmallVectorImpl<TargetRegisterClass*> RegClassVector;
|
||||
|
||||
virtual ~TargetSubtarget();
|
||||
virtual ~TargetSubtargetInfo();
|
||||
|
||||
/// getSpecialAddressLatency - For targets where it is beneficial to
|
||||
/// backschedule instructions that compute addresses, return a value
|
Reference in New Issue
Block a user