mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
064cc1a22c
This patch adds a pipeline to support in-order CPUs such as ARM Cortex-A55. In-order pipeline implements a simplified version of Dispatch, Scheduler and Execute stages as a single stage. Entry and Retire stages are common for both in-order and out-of-order pipelines. Differential Revision: https://reviews.llvm.org/D94928
48 lines
1.5 KiB
TableGen
48 lines
1.5 KiB
TableGen
// RUN: llvm-tblgen -gen-subtarget -I %p/../../include %s 2>&1 | FileCheck %s
|
|
// Check if it is valid MCSchedClassDesc if didn't have the resources.
|
|
|
|
include "llvm/Target/Target.td"
|
|
|
|
def MyTarget : Target;
|
|
|
|
let OutOperandList = (outs), InOperandList = (ins) in {
|
|
def Inst_A : Instruction;
|
|
def Inst_B : Instruction;
|
|
}
|
|
|
|
let CompleteModel = 0 in {
|
|
def SchedModel_A: SchedMachineModel;
|
|
def SchedModel_B: SchedMachineModel;
|
|
def SchedModel_C: SchedMachineModel;
|
|
}
|
|
|
|
// Inst_B didn't have the resoures, and it is invalid.
|
|
// CHECK: SchedModel_ASchedClasses[] = {
|
|
// CHECK: {DBGFIELD("Inst_A") 1
|
|
// CHECK-NEXT: {DBGFIELD("Inst_B") 8191
|
|
let SchedModel = SchedModel_A in {
|
|
def Write_A : SchedWriteRes<[]>;
|
|
def : InstRW<[Write_A], (instrs Inst_A)>;
|
|
}
|
|
|
|
// Inst_A didn't have the resoures, and it is invalid.
|
|
// CHECK: SchedModel_BSchedClasses[] = {
|
|
// CHECK: {DBGFIELD("Inst_A") 8191
|
|
// CHECK-NEXT: {DBGFIELD("Inst_B") 1
|
|
let SchedModel = SchedModel_B in {
|
|
def Write_B: SchedWriteRes<[]>;
|
|
def : InstRW<[Write_B], (instrs Inst_B)>;
|
|
}
|
|
|
|
// CHECK: SchedModel_CSchedClasses[] = {
|
|
// CHECK: {DBGFIELD("Inst_A") 1
|
|
// CHECK-NEXT: {DBGFIELD("Inst_B") 1
|
|
let SchedModel = SchedModel_C in {
|
|
def Write_C: SchedWriteRes<[]>;
|
|
def : InstRW<[Write_C], (instrs Inst_A, Inst_B)>;
|
|
}
|
|
|
|
def ProcessorA: ProcessorModel<"ProcessorA", SchedModel_A, []>;
|
|
def ProcessorB: ProcessorModel<"ProcessorB", SchedModel_B, []>;
|
|
def ProcessorC: ProcessorModel<"ProcessorC", SchedModel_C, []>;
|