2009-07-21 18:54:14 +00:00
|
|
|
//===- ARMScheduleV7.td - ARM v7 Scheduling Definitions ----*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the itinerary class data for the ARM v7 processors.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-10 15:56:13 +00:00
|
|
|
// Dual issue pipeline so every itinerary starts with FU_Pipe0 | FU_Pipe1
|
2009-07-21 18:54:14 +00:00
|
|
|
def CortexA8Itineraries : ProcessorItineraries<[
|
2009-08-11 22:38:43 +00:00
|
|
|
// two fully-pipelined integer ALU pipelines
|
2009-08-10 15:56:13 +00:00
|
|
|
InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
|
2009-08-11 22:38:43 +00:00
|
|
|
// one fully-pipelined integer Multiply pipeline
|
2009-08-12 18:31:53 +00:00
|
|
|
// function units are reserved by the scheduler in reverse alpha order,
|
|
|
|
// so use FU_Pipe0 for the Multiple pipeline
|
|
|
|
InstrItinData<IIC_iMPY , [InstrStage<1, [FU_Pipe0]>]>,
|
2009-08-10 15:56:13 +00:00
|
|
|
// loads have an extra cycle of latency, but are fully pipelined
|
2009-08-12 18:31:53 +00:00
|
|
|
// use FU_Issue to enforce the 1 load/store per cycle limit
|
|
|
|
InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Issue], 0>,
|
2009-08-11 22:38:43 +00:00
|
|
|
InstrStage<1, [FU_Pipe0, FU_Pipe1]>,
|
|
|
|
InstrStage<1, [FU_LdSt0]>]>,
|
2009-08-10 15:56:13 +00:00
|
|
|
// fully-pipelined stores
|
2009-08-12 18:31:53 +00:00
|
|
|
// use FU_Issue to enforce the 1 load/store per cycle limit
|
|
|
|
InstrItinData<IIC_iStore , [InstrStage<1, [FU_Issue], 0>,
|
2009-08-11 22:38:43 +00:00
|
|
|
InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
|
2009-08-10 15:56:13 +00:00
|
|
|
// no delay slots, so the latency of a branch is unimportant
|
2009-08-11 22:38:43 +00:00
|
|
|
InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
|
|
|
|
|
2009-08-12 18:31:53 +00:00
|
|
|
// NFP ALU is not pipelined so stall all issues
|
|
|
|
InstrItinData<IIC_fpALU , [InstrStage<7, [FU_Pipe0], 0>,
|
|
|
|
InstrStage<7, [FU_Pipe1], 0>]>,
|
2009-08-11 22:38:43 +00:00
|
|
|
// VFP MPY is not pipelined so stall all issues
|
2009-08-12 18:31:53 +00:00
|
|
|
InstrItinData<IIC_fpMPY , [InstrStage<7, [FU_Pipe0], 0>,
|
|
|
|
InstrStage<7, [FU_Pipe1], 0>]>,
|
2009-08-11 22:38:43 +00:00
|
|
|
// loads have an extra cycle of latency, but are fully pipelined
|
2009-08-12 18:31:53 +00:00
|
|
|
// use FU_Issue to enforce the 1 load/store per cycle limit
|
|
|
|
InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Issue], 0>,
|
2009-08-11 22:38:43 +00:00
|
|
|
InstrStage<1, [FU_Pipe0, FU_Pipe1]>,
|
|
|
|
InstrStage<1, [FU_LdSt0]>]>,
|
2009-08-12 18:31:53 +00:00
|
|
|
// use FU_Issue to enforce the 1 load/store per cycle limit
|
|
|
|
InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Issue], 0>,
|
2009-08-11 22:38:43 +00:00
|
|
|
InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>
|
|
|
|
]>;
|
|
|
|
|
|
|
|
// FIXME
|
|
|
|
def CortexA9Itineraries : ProcessorItineraries<[
|
|
|
|
InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_iMPY , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>,
|
|
|
|
InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_fpALU , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_fpMPY , [InstrStage<1, [FU_Pipe0]>]>,
|
|
|
|
InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>,
|
|
|
|
InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0]>]>
|
2009-07-21 18:54:14 +00:00
|
|
|
]>;
|