mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
b284e1bf08
These instructions are allowed to trap even if the condition is false, so for now they are only used for "*ptr = (cond ? x : *ptr)"-style constructs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187111 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
1.2 KiB
TableGen
34 lines
1.2 KiB
TableGen
//===-- 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"
|
|
>;
|
|
|
|
def FeatureLoadStoreOnCond : SystemZFeature<
|
|
"load-store-on-cond", "LoadStoreOnCond",
|
|
"Assume that the load/store-on-condition facility is installed"
|
|
>;
|
|
|
|
def : Processor<"z10", NoItineraries, []>;
|
|
def : Processor<"z196", NoItineraries,
|
|
[FeatureDistinctOps, FeatureLoadStoreOnCond]>;
|
|
def : Processor<"zEC12", NoItineraries,
|
|
[FeatureDistinctOps, FeatureLoadStoreOnCond]>;
|