//===-- 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. // //===----------------------------------------------------------------------===// // // Feature definitions. // //===----------------------------------------------------------------------===// class SystemZFeature : Predicate<"Subtarget->has"##intname##"()">, AssemblerPredicate<"Feature"##intname, extname>, SubtargetFeature; class SystemZMissingFeature : Predicate<"!Subtarget->has"##intname##"()">; class SystemZFeatureList x> { list List = x; } class SystemZFeatureAdd x, list y> : SystemZFeatureList; //===----------------------------------------------------------------------===// // // New features added in the Ninth Edition of the z/Architecture // //===----------------------------------------------------------------------===// def FeatureDistinctOps : SystemZFeature< "distinct-ops", "DistinctOps", "Assume that the distinct-operands facility is installed" >; def FeatureFastSerialization : SystemZFeature< "fast-serialization", "FastSerialization", "Assume that the fast-serialization facility is installed" >; def FeatureFPExtension : SystemZFeature< "fp-extension", "FPExtension", "Assume that the floating-point extension facility is installed" >; def FeatureHighWord : SystemZFeature< "high-word", "HighWord", "Assume that the high-word facility is installed" >; def FeatureInterlockedAccess1 : SystemZFeature< "interlocked-access1", "InterlockedAccess1", "Assume that interlocked-access facility 1 is installed" >; def FeatureNoInterlockedAccess1 : SystemZMissingFeature<"InterlockedAccess1">; def FeatureLoadStoreOnCond : SystemZFeature< "load-store-on-cond", "LoadStoreOnCond", "Assume that the load/store-on-condition facility is installed" >; def FeaturePopulationCount : SystemZFeature< "population-count", "PopulationCount", "Assume that the population-count facility is installed" >; def Arch9NewFeatures : SystemZFeatureList<[ FeatureDistinctOps, FeatureFastSerialization, FeatureFPExtension, FeatureHighWord, FeatureInterlockedAccess1, FeatureLoadStoreOnCond, FeaturePopulationCount ]>; //===----------------------------------------------------------------------===// // // New features added in the Tenth Edition of the z/Architecture // //===----------------------------------------------------------------------===// def FeatureExecutionHint : SystemZFeature< "execution-hint", "ExecutionHint", "Assume that the execution-hint facility is installed" >; def FeatureLoadAndTrap : SystemZFeature< "load-and-trap", "LoadAndTrap", "Assume that the load-and-trap facility is installed" >; def FeatureMiscellaneousExtensions : SystemZFeature< "miscellaneous-extensions", "MiscellaneousExtensions", "Assume that the miscellaneous-extensions facility is installed" >; def FeatureProcessorAssist : SystemZFeature< "processor-assist", "ProcessorAssist", "Assume that the processor-assist facility is installed" >; def FeatureTransactionalExecution : SystemZFeature< "transactional-execution", "TransactionalExecution", "Assume that the transactional-execution facility is installed" >; def Arch10NewFeatures : SystemZFeatureList<[ FeatureExecutionHint, FeatureLoadAndTrap, FeatureMiscellaneousExtensions, FeatureProcessorAssist, FeatureTransactionalExecution ]>; //===----------------------------------------------------------------------===// // // New features added in the Eleventh Edition of the z/Architecture // //===----------------------------------------------------------------------===// def FeatureLoadAndZeroRightmostByte : SystemZFeature< "load-and-zero-rightmost-byte", "LoadAndZeroRightmostByte", "Assume that the load-and-zero-rightmost-byte facility is installed" >; def FeatureLoadStoreOnCond2 : SystemZFeature< "load-store-on-cond-2", "LoadStoreOnCond2", "Assume that the load/store-on-condition facility 2 is installed" >; def FeatureVector : SystemZFeature< "vector", "Vector", "Assume that the vectory facility is installed" >; def FeatureNoVector : SystemZMissingFeature<"Vector">; def Arch11NewFeatures : SystemZFeatureList<[ FeatureLoadAndZeroRightmostByte, FeatureLoadStoreOnCond2, FeatureVector ]>; //===----------------------------------------------------------------------===// // // Cumulative supported and unsupported feature sets // //===----------------------------------------------------------------------===// def Arch8SupportedFeatures : SystemZFeatureList<[]>; def Arch9SupportedFeatures : SystemZFeatureAdd; def Arch10SupportedFeatures : SystemZFeatureAdd; def Arch11SupportedFeatures : SystemZFeatureAdd; def Arch11UnsupportedFeatures : SystemZFeatureList<[]>; def Arch10UnsupportedFeatures : SystemZFeatureAdd; def Arch9UnsupportedFeatures : SystemZFeatureAdd; def Arch8UnsupportedFeatures : SystemZFeatureAdd;