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>;
|
|
|
|
|
2013-12-24 15:18:04 +00:00
|
|
|
class SystemZMissingFeature<string intname>
|
|
|
|
: Predicate<"!Subtarget.has"##intname##"()">;
|
|
|
|
|
2013-07-19 16:09:03 +00:00
|
|
|
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-12-24 15:14:05 +00:00
|
|
|
def FeatureInterlockedAccess1 : SystemZFeature<
|
|
|
|
"interlocked-access1", "InterlockedAccess1",
|
|
|
|
"Assume that interlocked-access facility 1 is installed"
|
|
|
|
>;
|
2013-12-24 15:18:04 +00:00
|
|
|
def FeatureNoInterlockedAccess1 : SystemZMissingFeature<"InterlockedAccess1">;
|
2013-12-24 15:14:05 +00:00
|
|
|
|
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-24 15:14:05 +00:00
|
|
|
FeatureFPExtension, FeatureFastSerialization,
|
|
|
|
FeatureInterlockedAccess1]>;
|
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-24 15:14:05 +00:00
|
|
|
FeatureFPExtension, FeatureFastSerialization,
|
|
|
|
FeatureInterlockedAccess1]>;
|