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 | a346e71 | 2009-08-13 15:51:13 +0000 | [diff] [blame] | 18 | // integer Multiply pipeline |
| 19 | InstrItinData<IIC_iMPYh , [InstrStage<1, [FU_Pipe0]>]>, |
| 20 | InstrItinData<IIC_iMPYw , [InstrStage<1, [FU_Pipe1], 0>, |
| 21 | InstrStage<2, [FU_Pipe0]>]>, |
| 22 | InstrItinData<IIC_iMPYl , [InstrStage<2, [FU_Pipe1], 0>, |
| 23 | InstrStage<3, [FU_Pipe0]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 24 | // loads have an extra cycle of latency, but are fully pipelined |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 25 | // use FU_Issue to enforce the 1 load/store per cycle limit |
| 26 | InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Issue], 0>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 27 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>, |
| 28 | InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 29 | // fully-pipelined stores |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 30 | // use FU_Issue to enforce the 1 load/store per cycle limit |
| 31 | InstrItinData<IIC_iStore , [InstrStage<1, [FU_Issue], 0>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 32 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>, |
David Goodwin | 48e1359 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 33 | // no delay slots, so the latency of a branch is unimportant |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 34 | InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0, FU_Pipe1]>]>, |
| 35 | |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 36 | // NFP ALU is not pipelined so stall all issues |
| 37 | InstrItinData<IIC_fpALU , [InstrStage<7, [FU_Pipe0], 0>, |
| 38 | InstrStage<7, [FU_Pipe1], 0>]>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 39 | // VFP MPY is not pipelined so stall all issues |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 40 | InstrItinData<IIC_fpMPY , [InstrStage<7, [FU_Pipe0], 0>, |
| 41 | InstrStage<7, [FU_Pipe1], 0>]>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 42 | // loads have an extra cycle of latency, but are fully pipelined |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 43 | // use FU_Issue to enforce the 1 load/store per cycle limit |
| 44 | InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Issue], 0>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 45 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>, |
| 46 | InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | 4b6e498 | 2009-08-12 18:31:53 +0000 | [diff] [blame] | 47 | // use FU_Issue to enforce the 1 load/store per cycle limit |
| 48 | InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Issue], 0>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 49 | InstrStage<1, [FU_Pipe0, FU_Pipe1]>]> |
| 50 | ]>; |
| 51 | |
| 52 | // FIXME |
| 53 | def CortexA9Itineraries : ProcessorItineraries<[ |
| 54 | InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | a346e71 | 2009-08-13 15:51:13 +0000 | [diff] [blame] | 55 | InstrItinData<IIC_iMPYh , [InstrStage<1, [FU_Pipe0]>]>, |
| 56 | InstrItinData<IIC_iMPYw , [InstrStage<1, [FU_Pipe0]>]>, |
| 57 | InstrItinData<IIC_iMPYl , [InstrStage<1, [FU_Pipe0]>]>, |
Evan Cheng | ff5c7c4 | 2009-08-15 07:59:10 +0000 | [diff] [blame^] | 58 | InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0]>, |
| 59 | InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 60 | InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0]>]>, |
| 61 | InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0]>]>, |
| 62 | InstrItinData<IIC_fpALU , [InstrStage<1, [FU_Pipe0]>]>, |
| 63 | InstrItinData<IIC_fpMPY , [InstrStage<1, [FU_Pipe0]>]>, |
Evan Cheng | ff5c7c4 | 2009-08-15 07:59:10 +0000 | [diff] [blame^] | 64 | InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0]>, |
| 65 | InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | eb75972 | 2009-08-11 22:38:43 +0000 | [diff] [blame] | 66 | InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0]>]> |
Evan Cheng | 0d68fde | 2009-07-21 18:54:14 +0000 | [diff] [blame] | 67 | ]>; |