diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-26 07:22:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-26 07:22:22 +0000 |
commit | 4dcfaac2e390fdd0e8a562aeccb666178bd8664c (patch) | |
tree | ec40c1d6824c502c130383d9b8300840c2fdbf26 /lib/Target/Sparc/Sparc.td | |
parent | 0d170a7969e7e36ad00afe596f2937f0c74d2b49 (diff) | |
download | llvm-4dcfaac2e390fdd0e8a562aeccb666178bd8664c.tar.gz llvm-4dcfaac2e390fdd0e8a562aeccb666178bd8664c.tar.bz2 llvm-4dcfaac2e390fdd0e8a562aeccb666178bd8664c.tar.xz |
Rest of subtarget support, remove references to ppc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/Sparc.td')
-rw-r--r-- | lib/Target/Sparc/Sparc.td | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/lib/Target/Sparc/Sparc.td b/lib/Target/Sparc/Sparc.td index cd06886e1b..886edc1c32 100644 --- a/lib/Target/Sparc/Sparc.td +++ b/lib/Target/Sparc/Sparc.td @@ -17,12 +17,18 @@ include "../Target.td" //===----------------------------------------------------------------------===// -// PowerPC Subtarget features. +// SPARC Subtarget features. // -def Feature64Bit : SubtargetFeature<"64bit", "bool", "Is64Bit", - "Enable 64-bit instructions">; - +def FeatureV9 + : SubtargetFeature<"v9", "bool", "IsV9", + "Enable SPARC-V9 instructions">; +def FeatureV8Deprecated + : SubtargetFeature<"deprecated-v8", "bool", "V8DeprecatedInsts", + "Enable deprecated V8 instructions in V9 mode">; +def FeatureVIS + : SubtargetFeature<"vis", "bool", "IsVIS", + "Enable UltraSPARC Visual Instruction Set extensions">; //===----------------------------------------------------------------------===// // Register File Description @@ -48,9 +54,23 @@ def SparcV8InstrInfo : InstrInfo { // SPARC processors supported. //===----------------------------------------------------------------------===// -def : Processor<"generic", NoItineraries, []>; -def : Processor<"v8", NoItineraries, []>; -def : Processor<"v9", NoItineraries, [Feature64Bit]>; +class Proc<string Name, list<SubtargetFeature> Features> + : Processor<Name, NoItineraries, Features>; + +def : Proc<"generic", []>; +def : Proc<"v8", []>; +def : Proc<"supersparc", []>; +def : Proc<"sparclite", []>; +def : Proc<"f934", []>; +def : Proc<"hypersparc", []>; +def : Proc<"sparclite86x", []>; +def : Proc<"sparclet", []>; +def : Proc<"tsc701", []>; +def : Proc<"v9", [FeatureV9]>; +def : Proc<"ultrasparc", [FeatureV9, FeatureV8Deprecated]>; +def : Proc<"ultrasparc3", [FeatureV9, FeatureV8Deprecated]>; +def : Proc<"ultrasparc3-vis", [FeatureV9, FeatureV8Deprecated, FeatureVIS]>; + //===----------------------------------------------------------------------===// // Declare the target which we are implementing |