summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/Sparc.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-26 06:51:21 +0000
committerChris Lattner <sabre@nondot.org>2006-01-26 06:51:21 +0000
commit0d170a7969e7e36ad00afe596f2937f0c74d2b49 (patch)
treef83e2fe4bc0a6e55fb39ba44320d015e874f5931 /lib/Target/Sparc/Sparc.td
parent9e234856fe0c6fd1165d093a3c9ed4f163cba7b0 (diff)
Add trivial subtarget support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/Sparc.td')
-rw-r--r--lib/Target/Sparc/Sparc.td16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Target/Sparc/Sparc.td b/lib/Target/Sparc/Sparc.td
index dabb0dc9760..cd06886e1b7 100644
--- a/lib/Target/Sparc/Sparc.td
+++ b/lib/Target/Sparc/Sparc.td
@@ -17,6 +17,14 @@
include "../Target.td"
//===----------------------------------------------------------------------===//
+// PowerPC Subtarget features.
+//
+
+def Feature64Bit : SubtargetFeature<"64bit", "bool", "Is64Bit",
+ "Enable 64-bit instructions">;
+
+
+//===----------------------------------------------------------------------===//
// Register File Description
//===----------------------------------------------------------------------===//
@@ -37,6 +45,14 @@ def SparcV8InstrInfo : InstrInfo {
}
//===----------------------------------------------------------------------===//
+// SPARC processors supported.
+//===----------------------------------------------------------------------===//
+
+def : Processor<"generic", NoItineraries, []>;
+def : Processor<"v8", NoItineraries, []>;
+def : Processor<"v9", NoItineraries, [Feature64Bit]>;
+
+//===----------------------------------------------------------------------===//
// Declare the target which we are implementing
//===----------------------------------------------------------------------===//