mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
f73bd0c195
Add missing ISA versions 7.0.2/8.0.4/8.1.0. to backend. Refactor processor definition to use ISA version features. Fixed ISA version for stoney. Based on Laurent Morichetti's patch. Differential Revision: https://reviews.llvm.org/D25919 llvm-svn: 285210
190 lines
5.7 KiB
TableGen
190 lines
5.7 KiB
TableGen
//===-- Processors.td - R600 Processor definitions ------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
class Proc<string Name, ProcessorItineraries itin, list<SubtargetFeature> Features>
|
|
: Processor<Name, itin, Features>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// R600
|
|
//===----------------------------------------------------------------------===//
|
|
def : Proc<"r600", R600_VLIW5_Itin,
|
|
[FeatureR600, FeatureVertexCache, FeatureWavefrontSize64]>;
|
|
|
|
def : Proc<"r630", R600_VLIW5_Itin,
|
|
[FeatureR600, FeatureVertexCache, FeatureWavefrontSize32]>;
|
|
|
|
def : Proc<"rs880", R600_VLIW5_Itin,
|
|
[FeatureR600, FeatureWavefrontSize16]>;
|
|
|
|
def : Proc<"rv670", R600_VLIW5_Itin,
|
|
[FeatureR600, FeatureFP64, FeatureVertexCache, FeatureWavefrontSize64]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// R700
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : Proc<"rv710", R600_VLIW5_Itin,
|
|
[FeatureR700, FeatureVertexCache, FeatureWavefrontSize32]>;
|
|
|
|
def : Proc<"rv730", R600_VLIW5_Itin,
|
|
[FeatureR700, FeatureVertexCache, FeatureWavefrontSize32]>;
|
|
|
|
def : Proc<"rv770", R600_VLIW5_Itin,
|
|
[FeatureR700, FeatureFP64, FeatureVertexCache, FeatureWavefrontSize64]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Evergreen
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : Proc<"cedar", R600_VLIW5_Itin,
|
|
[FeatureEvergreen, FeatureVertexCache, FeatureWavefrontSize32,
|
|
FeatureCFALUBug]>;
|
|
|
|
def : Proc<"redwood", R600_VLIW5_Itin,
|
|
[FeatureEvergreen, FeatureVertexCache, FeatureWavefrontSize64,
|
|
FeatureCFALUBug]>;
|
|
|
|
def : Proc<"sumo", R600_VLIW5_Itin,
|
|
[FeatureEvergreen, FeatureWavefrontSize64, FeatureCFALUBug]>;
|
|
|
|
def : Proc<"juniper", R600_VLIW5_Itin,
|
|
[FeatureEvergreen, FeatureVertexCache, FeatureWavefrontSize64]>;
|
|
|
|
def : Proc<"cypress", R600_VLIW5_Itin,
|
|
[FeatureEvergreen, FeatureFP64, FeatureVertexCache,
|
|
FeatureWavefrontSize64]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Northern Islands
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : Proc<"barts", R600_VLIW5_Itin,
|
|
[FeatureNorthernIslands, FeatureVertexCache, FeatureCFALUBug]>;
|
|
|
|
def : Proc<"turks", R600_VLIW5_Itin,
|
|
[FeatureNorthernIslands, FeatureVertexCache, FeatureCFALUBug]>;
|
|
|
|
def : Proc<"caicos", R600_VLIW5_Itin,
|
|
[FeatureNorthernIslands, FeatureCFALUBug]>;
|
|
|
|
def : Proc<"cayman", R600_VLIW4_Itin,
|
|
[FeatureNorthernIslands, FeatureFP64, FeatureCaymanISA]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Southern Islands
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : ProcessorModel<"SI", SIFullSpeedModel,
|
|
[FeatureSouthernIslands, FeatureFastFMAF32, HalfRate64Ops]
|
|
>;
|
|
|
|
def : ProcessorModel<"tahiti", SIFullSpeedModel,
|
|
[FeatureSouthernIslands, FeatureFastFMAF32, HalfRate64Ops]
|
|
>;
|
|
|
|
def : ProcessorModel<"pitcairn", SIQuarterSpeedModel, [FeatureSouthernIslands]>;
|
|
|
|
def : ProcessorModel<"verde", SIQuarterSpeedModel, [FeatureSouthernIslands]>;
|
|
|
|
def : ProcessorModel<"oland", SIQuarterSpeedModel, [FeatureSouthernIslands]>;
|
|
|
|
def : ProcessorModel<"hainan", SIQuarterSpeedModel, [FeatureSouthernIslands]>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Sea Islands
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : ProcessorModel<"bonaire", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"kabini", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_2]
|
|
>;
|
|
|
|
def : ProcessorModel<"kaveri", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"hawaii", SIFullSpeedModel,
|
|
[FeatureISAVersion7_0_1]
|
|
>;
|
|
|
|
def : ProcessorModel<"mullins", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_2]>;
|
|
|
|
def : ProcessorModel<"gfx700", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx701", SIFullSpeedModel,
|
|
[FeatureISAVersion7_0_1]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx702", SIQuarterSpeedModel,
|
|
[FeatureISAVersion7_0_2]
|
|
>;
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Volcanic Islands
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
def : ProcessorModel<"tonga", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_2]
|
|
>;
|
|
|
|
def : ProcessorModel<"iceland", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"carrizo", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_1]
|
|
>;
|
|
|
|
def : ProcessorModel<"fiji", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_3]
|
|
>;
|
|
|
|
def : ProcessorModel<"stoney", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_1_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"polaris10", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_3]
|
|
>;
|
|
|
|
def : ProcessorModel<"polaris11", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_3]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx800", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_0]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx801", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_1]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx802", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_2]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx803", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_3]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx804", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_0_4]
|
|
>;
|
|
|
|
def : ProcessorModel<"gfx810", SIQuarterSpeedModel,
|
|
[FeatureISAVersion8_1_0]
|
|
>;
|
|
|