2013-07-19 16:09:03 +00:00
|
|
|
//===-- SystemZ.td - SystemZ processors and features ---------*- tblgen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Processor and feature definitions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
class SystemZFeature<string extname, string intname, string desc>
|
|
|
|
: Predicate<"Subtarget.has"##intname##"()">,
|
|
|
|
AssemblerPredicate<"Feature"##intname, extname>,
|
|
|
|
SubtargetFeature<extname, "Has"##intname, "true", desc>;
|
|
|
|
|
|
|
|
def FeatureDistinctOps : SystemZFeature<
|
|
|
|
"distinct-ops", "DistinctOps",
|
|
|
|
"Assume that the distinct-operands facility is installed"
|
|
|
|
>;
|
|
|
|
|
2013-07-25 08:57:02 +00:00
|
|
|
def FeatureLoadStoreOnCond : SystemZFeature<
|
|
|
|
"load-store-on-cond", "LoadStoreOnCond",
|
|
|
|
"Assume that the load/store-on-condition facility is installed"
|
|
|
|
>;
|
|
|
|
|
2013-07-31 11:17:35 +00:00
|
|
|
def FeatureHighWord : SystemZFeature<
|
|
|
|
"high-word", "HighWord",
|
|
|
|
"Assume that the high-word facility is installed"
|
|
|
|
>;
|
|
|
|
|
2013-08-21 08:58:08 +00:00
|
|
|
def FeatureFPExtension : SystemZFeature<
|
|
|
|
"fp-extension", "FPExtension",
|
|
|
|
"Assume that the floating-point extension facility is installed"
|
|
|
|
>;
|
|
|
|
|
2013-12-10 10:36:34 +00:00
|
|
|
def FeatureFastSerialization : SystemZFeature<
|
|
|
|
"fast-serialization", "FastSerialization",
|
|
|
|
"Assume that the fast-serialization facility is installed"
|
|
|
|
>;
|
|
|
|
|
2013-10-31 12:14:17 +00:00
|
|
|
def : Processor<"generic", NoItineraries, []>;
|
|
|
|
def : Processor<"z10", NoItineraries, []>;
|
|
|
|
def : Processor<"z196", NoItineraries,
|
2013-08-21 08:58:08 +00:00
|
|
|
[FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord,
|
2013-12-10 10:36:34 +00:00
|
|
|
FeatureFPExtension, FeatureFastSerialization]>;
|
2013-07-25 08:57:02 +00:00
|
|
|
def : Processor<"zEC12", NoItineraries,
|
2013-08-21 08:58:08 +00:00
|
|
|
[FeatureDistinctOps, FeatureLoadStoreOnCond, FeatureHighWord,
|
2013-12-10 10:36:34 +00:00
|
|
|
FeatureFPExtension, FeatureFastSerialization]>;
|