AMDGPU: Separate R600 and GCN TableGen files
Summary:
We now have two sets of generated TableGen files, one for R600 and one
for GCN, so each sub-target now has its own tables of instructions,
registers, ISel patterns, etc. This should help reduce compile time
since each sub-target now only has to consider information that
is specific to itself. This will also help prevent the R600
sub-target from slowing down new features for GCN, like disassembler
support, GlobalISel, etc.
Reviewers: arsenm, nhaehnle, jvesely
Reviewed By: arsenm
Subscribers: MatzeB, kzhuravl, wdng, mgorny, yaxunl, dstuttard, tpr, t-tye, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D46365
llvm-svn: 335942
2018-06-29 07:47:12 +08:00
|
|
|
//===-- R600.td - R600 Tablegen files ----------------------*- tablegen -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
AMDGPU: Separate R600 and GCN TableGen files
Summary:
We now have two sets of generated TableGen files, one for R600 and one
for GCN, so each sub-target now has its own tables of instructions,
registers, ISel patterns, etc. This should help reduce compile time
since each sub-target now only has to consider information that
is specific to itself. This will also help prevent the R600
sub-target from slowing down new features for GCN, like disassembler
support, GlobalISel, etc.
Reviewers: arsenm, nhaehnle, jvesely
Reviewed By: arsenm
Subscribers: MatzeB, kzhuravl, wdng, mgorny, yaxunl, dstuttard, tpr, t-tye, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D46365
llvm-svn: 335942
2018-06-29 07:47:12 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
|
|
|
|
def R600InstrInfo : InstrInfo {
|
|
|
|
let guessInstructionProperties = 1;
|
|
|
|
let noNamedPositionallyEncodedOperands = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
def R600 : Target {
|
|
|
|
let InstructionSet = R600InstrInfo;
|
|
|
|
let AllowRegisterRenaming = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
let Namespace = "R600" in {
|
|
|
|
|
|
|
|
foreach Index = 0-15 in {
|
|
|
|
def sub#Index : SubRegIndex<32, !shl(Index, 5)>;
|
|
|
|
}
|
|
|
|
|
|
|
|
include "R600RegisterInfo.td"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
def NullALU : InstrItinClass;
|
|
|
|
def ALU_NULL : FuncUnit;
|
|
|
|
|
|
|
|
include "AMDGPUFeatures.td"
|
|
|
|
include "R600Schedule.td"
|
|
|
|
include "R600Processors.td"
|
|
|
|
include "AMDGPUInstrInfo.td"
|
|
|
|
include "AMDGPUInstructions.td"
|
|
|
|
include "R600Instructions.td"
|
|
|
|
include "R700Instructions.td"
|
|
|
|
include "EvergreenInstructions.td"
|
|
|
|
include "CaymanInstructions.td"
|
|
|
|
|
|
|
|
// Calling convention for R600
|
|
|
|
def CC_R600 : CallingConv<[
|
|
|
|
CCIfInReg<CCIfType<[v4f32, v4i32] , CCAssignToReg<[
|
|
|
|
T0_XYZW, T1_XYZW, T2_XYZW, T3_XYZW, T4_XYZW, T5_XYZW, T6_XYZW, T7_XYZW,
|
|
|
|
T8_XYZW, T9_XYZW, T10_XYZW, T11_XYZW, T12_XYZW, T13_XYZW, T14_XYZW, T15_XYZW,
|
|
|
|
T16_XYZW, T17_XYZW, T18_XYZW, T19_XYZW, T20_XYZW, T21_XYZW, T22_XYZW,
|
|
|
|
T23_XYZW, T24_XYZW, T25_XYZW, T26_XYZW, T27_XYZW, T28_XYZW, T29_XYZW,
|
|
|
|
T30_XYZW, T31_XYZW, T32_XYZW
|
|
|
|
]>>>
|
|
|
|
]>;
|