Richard Sandiford | 27d1cfe | 2013-07-19 16:09:03 +0000 | [diff] [blame] | 1 | //===-- SystemZ.td - SystemZ processors and features ---------*- tblgen -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // Processor and feature definitions. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | class SystemZFeature<string extname, string intname, string desc> |
| 15 | : Predicate<"Subtarget.has"##intname##"()">, |
| 16 | AssemblerPredicate<"Feature"##intname, extname>, |
| 17 | SubtargetFeature<extname, "Has"##intname, "true", desc>; |
| 18 | |
| 19 | def FeatureDistinctOps : SystemZFeature< |
| 20 | "distinct-ops", "DistinctOps", |
| 21 | "Assume that the distinct-operands facility is installed" |
| 22 | >; |
| 23 | |
Richard Sandiford | a68e6f5 | 2013-07-25 08:57:02 +0000 | [diff] [blame] | 24 | def FeatureLoadStoreOnCond : SystemZFeature< |
| 25 | "load-store-on-cond", "LoadStoreOnCond", |
| 26 | "Assume that the load/store-on-condition facility is installed" |
| 27 | >; |
| 28 | |
Richard Sandiford | 6cf80b3 | 2013-07-31 11:17:35 +0000 | [diff] [blame] | 29 | def FeatureHighWord : SystemZFeature< |
| 30 | "high-word", "HighWord", |
| 31 | "Assume that the high-word facility is installed" |
| 32 | >; |
| 33 | |
Richard Sandiford | 8e92c38 | 2013-08-21 08:58:08 +0000 | [diff] [blame] | 34 | def FeatureFPExtension : SystemZFeature< |
| 35 | "fp-extension", "FPExtension", |
| 36 | "Assume that the floating-point extension facility is installed" |
| 37 | >; |
| 38 | |
Richard Sandiford | 9afe613 | 2013-12-10 10:36:34 +0000 | [diff] [blame^] | 39 | def FeatureFastSerialization : SystemZFeature< |
| 40 | "fast-serialization", "FastSerialization", |
| 41 | "Assume that the fast-serialization facility is installed" |
| 42 | >; |
| 43 | |
Richard Sandiford | f834ea1 | 2013-10-31 12:14:17 +0000 | [diff] [blame] | 44 | def : Processor<"generic", NoItineraries, []>; |
| 45 | def : Processor<"z10", NoItineraries, []>; |
| 46 | def : Processor<"z196", NoItineraries, |
Richard Sandiford | 8e92c38 | 2013-08-21 08:58:08 +0000 | [diff] [blame] | 47 | [FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord, |
Richard Sandiford | 9afe613 | 2013-12-10 10:36:34 +0000 | [diff] [blame^] | 48 | FeatureFPExtension, FeatureFastSerialization]>; |
Richard Sandiford | a68e6f5 | 2013-07-25 08:57:02 +0000 | [diff] [blame] | 49 | def : Processor<"zEC12", NoItineraries, |
Richard Sandiford | 8e92c38 | 2013-08-21 08:58:08 +0000 | [diff] [blame] | 50 | [FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord, |
Richard Sandiford | 9afe613 | 2013-12-10 10:36:34 +0000 | [diff] [blame^] | 51 | FeatureFPExtension, FeatureFastSerialization]>; |