Evan Cheng | 0d68fde | 2009-07-21 18:54:14 +0000 | [diff] [blame] | 1 | //===- 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 Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 14 | // Dual issue pipeline so every itinerary starts with FU_Pipe0 | FU_Pipe1 |
Evan Cheng | 0d68fde | 2009-07-21 18:54:14 +0000 | [diff] [blame] | 15 | def CortexA8Itineraries : ProcessorItineraries<[ |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 16 | // two fully-pipelined integer ALU pipelines |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 17 | InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 18 | // one fully-pipelined integer Multiply pipeline |
| 19 | // function units are used in alpha order, so use FU_Pipe1 |
| 20 | // for the Multiple pipeline |
| 21 | InstrItinData<IIC_iMPY , [InstrStage<1, [FU_Pipe1]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 22 | // loads have an extra cycle of latency, but are fully pipelined |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 23 | // use a 0 cycle FU_Issue to enforce the 1 load/store per cycle limit |
| 24 | InstrItinData<IIC_iLoad , [InstrStage<0, [FU_Issue]>, |
| 25 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>, |
| 26 | InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 27 | // fully-pipelined stores |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 28 | // use a 0 cycle FU_Issue to enforce the 1 load/store per cycle limit |
| 29 | InstrItinData<IIC_iStore , [InstrStage<0, [FU_Issue]>, |
| 30 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 31 | // no delay slots, so the latency of a branch is unimportant |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 32 | InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>, |
| 33 | |
| 34 | // VFP ALU is not pipelined so stall all issues |
| 35 | // FIXME assume NFP pipeline and 7 cycle non-pipelined latency |
| 36 | InstrItinData<IIC_fpALU , [InstrStage<7, [FU_Pipe0, FU_Pipe1]>]>, |
| 37 | // VFP MPY is not pipelined so stall all issues |
| 38 | // FIXME assume NFP pipeline and 7 cycle non-pipelined latency |
| 39 | InstrItinData<IIC_fpMPY , [InstrStage<7, [FU_Pipe0, FU_Pipe1]>]>, |
| 40 | // loads have an extra cycle of latency, but are fully pipelined |
| 41 | // use a 0 cycle FU_Issue to enforce the 1 load/store per cycle limit |
| 42 | InstrItinData<IIC_fpLoad , [InstrStage<0, [FU_Issue]>, |
| 43 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>, |
| 44 | InstrStage<1, [FU_LdSt0]>]>, |
| 45 | // use a 0 cycle FU_Issue to enforce the 1 load/store per cycle limit |
| 46 | InstrItinData<IIC_fpStore , [InstrStage<0, [FU_Issue]>, |
| 47 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>]> |
| 48 | ]>; |
| 49 | |
| 50 | // FIXME |
| 51 | def CortexA9Itineraries : ProcessorItineraries<[ |
| 52 | InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0]>]>, |
| 53 | InstrItinData<IIC_iMPY , [InstrStage<1, [FU_Pipe0]>]>, |
| 54 | InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>, |
| 55 | InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0]>]>, |
| 56 | InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0]>]>, |
| 57 | InstrItinData<IIC_fpALU , [InstrStage<1, [FU_Pipe0]>]>, |
| 58 | InstrItinData<IIC_fpMPY , [InstrStage<1, [FU_Pipe0]>]>, |
| 59 | InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>, |
| 60 | InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0]>]> |
Evan Cheng | 0d68fde | 2009-07-21 18:54:14 +0000 | [diff] [blame] | 61 | ]>; |