blob: 5668ae38192a8bb007538530d9c25f4e0441e051 [file] [log] [blame]
Richard Sandiford27d1cfe2013-07-19 16:09:03 +00001//===-- 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
14class 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
19def FeatureDistinctOps : SystemZFeature<
20 "distinct-ops", "DistinctOps",
21 "Assume that the distinct-operands facility is installed"
22>;
23
24def : Processor<"z10", NoItineraries, []>;
25def : Processor<"z196", NoItineraries, [FeatureDistinctOps]>;
26def : Processor<"zEC12", NoItineraries, [FeatureDistinctOps]>;