blob: 30360bc9c41ba40e01082571ab99fd54b11bb32a [file] [log] [blame]
Evan Cheng0d68fde2009-07-21 18:54:14 +00001//===- ARMScheduleV7.td - ARM v7 Scheduling Definitions ----*- tablegen -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the itinerary class data for the ARM v7 processors.
11//
12//===----------------------------------------------------------------------===//
13
David Goodwin48e13592009-08-10 15:56:13 +000014// Single issue pipeline so every itinerary starts with FU_Pipe0
Evan Cheng0d68fde2009-07-21 18:54:14 +000015def V7Itineraries : ProcessorItineraries<[
David Goodwin48e13592009-08-10 15:56:13 +000016 // single-cycle integer ALU
17 InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0]>]>,
18 // loads have an extra cycle of latency, but are fully pipelined
19 InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>,
20 InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>,
21 // fully-pipelined stores
22 InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0]>]>,
23 InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0]>]>,
24 // fp ALU is not pipelined
25 InstrItinData<IIC_fpALU , [InstrStage<6, [FU_Pipe0]>]>,
26 // no delay slots, so the latency of a branch is unimportant
27 InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0]>]>
Evan Cheng0d68fde2009-07-21 18:54:14 +000028]>;
29
David Goodwin48e13592009-08-10 15:56:13 +000030// Dual issue pipeline so every itinerary starts with FU_Pipe0 | FU_Pipe1
Evan Cheng0d68fde2009-07-21 18:54:14 +000031def CortexA8Itineraries : ProcessorItineraries<[
David Goodwin48e13592009-08-10 15:56:13 +000032 // single-cycle integer ALU
33 InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
34 // loads have an extra cycle of latency, but are fully pipelined
35 InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0]>]>,
36 InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0]>]>,
37 // fully-pipelined stores
38 InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
39 InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>,
40 // fp ALU is not pipelined
41 InstrItinData<IIC_fpALU , [InstrStage<6, [FU_Pipe0, FU_Pipe1]>]>,
42 // no delay slots, so the latency of a branch is unimportant
43 InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>
Evan Cheng0d68fde2009-07-21 18:54:14 +000044]>;