summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-01 20:45:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-01 20:45:01 +0000
commit54b68e34322314528624fd56ec32df8968c41a94 (patch)
tree1928d04d97da90de983d3a51b9e617f98a2d2e60 /llvm/lib/Target/Sparc
parentb929de3c3d5c11d6136be1f59838788b8797ac12 (diff)
downloadbcm5719-llvm-54b68e34322314528624fd56ec32df8968c41a94.tar.gz
bcm5719-llvm-54b68e34322314528624fd56ec32df8968c41a94.zip
- Added MCSubtargetInfo to capture subtarget features and scheduling
itineraries. - Refactor TargetSubtarget to be based on MCSubtargetInfo. - Change tablegen generated subtarget info to initialize MCSubtargetInfo and hide more details from targets. llvm-svn: 134257
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcSubtarget.cpp6
-rw-r--r--llvm/lib/Target/Sparc/SparcSubtarget.h5
2 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.cpp b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
index 06bfc64ab8e..3f7b23ad95f 100644
--- a/llvm/lib/Target/Sparc/SparcSubtarget.cpp
+++ b/llvm/lib/Target/Sparc/SparcSubtarget.cpp
@@ -12,11 +12,17 @@
//===----------------------------------------------------------------------===//
#include "SparcSubtarget.h"
+
+#define GET_SUBTARGETINFO_CTOR
+#define GET_SUBTARGETINFO_MC_DESC
+#define GET_SUBTARGETINFO_TARGET_DESC
#include "SparcGenSubtarget.inc"
+
using namespace llvm;
SparcSubtarget::SparcSubtarget(const std::string &TT, const std::string &CPU,
const std::string &FS, bool is64Bit) :
+ SparcGenSubtargetInfo(),
IsV9(false),
V8DeprecatedInsts(false),
IsVIS(false),
diff --git a/llvm/lib/Target/Sparc/SparcSubtarget.h b/llvm/lib/Target/Sparc/SparcSubtarget.h
index eabf390d378..af35e4c5fdb 100644
--- a/llvm/lib/Target/Sparc/SparcSubtarget.h
+++ b/llvm/lib/Target/Sparc/SparcSubtarget.h
@@ -17,9 +17,12 @@
#include "llvm/Target/TargetSubtarget.h"
#include <string>
+#define GET_SUBTARGETINFO_HEADER
+#include "SparcGenSubtarget.inc"
+
namespace llvm {
-class SparcSubtarget : public TargetSubtarget {
+class SparcSubtarget : public SparcGenSubtargetInfo {
bool IsV9;
bool V8DeprecatedInsts;
bool IsVIS;
OpenPOWER on IntegriCloud