Evan Cheng | 8557c2b | 2009-06-19 01:51:50 +0000 | [diff] [blame] | 1 | //===- ARMSchedule.td - ARM 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 | //===----------------------------------------------------------------------===// |
| 11 | // Functional units across ARM processors |
| 12 | // |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 13 | def FU_Issue : FuncUnit; // issue |
| 14 | def FU_Pipe0 : FuncUnit; // pipeline 0 |
| 15 | def FU_Pipe1 : FuncUnit; // pipeline 1 |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 16 | def FU_LdSt0 : FuncUnit; // pipeline 0 load/store |
| 17 | def FU_LdSt1 : FuncUnit; // pipeline 1 load/store |
Evan Cheng | 8557c2b | 2009-06-19 01:51:50 +0000 | [diff] [blame] | 18 | |
| 19 | //===----------------------------------------------------------------------===// |
| 20 | // Instruction Itinerary classes used for ARM |
| 21 | // |
| 22 | def IIC_iALU : InstrItinClass; |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 23 | def IIC_iMPY : InstrItinClass; |
Evan Cheng | 8557c2b | 2009-06-19 01:51:50 +0000 | [diff] [blame] | 24 | def IIC_iLoad : InstrItinClass; |
| 25 | def IIC_iStore : InstrItinClass; |
| 26 | def IIC_fpALU : InstrItinClass; |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 27 | def IIC_fpMPY : InstrItinClass; |
Evan Cheng | 8557c2b | 2009-06-19 01:51:50 +0000 | [diff] [blame] | 28 | def IIC_fpLoad : InstrItinClass; |
| 29 | def IIC_fpStore : InstrItinClass; |
| 30 | def IIC_Br : InstrItinClass; |
| 31 | |
| 32 | //===----------------------------------------------------------------------===// |
| 33 | // Processor instruction itineraries. |
| 34 | |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 35 | def GenericItineraries : ProcessorItineraries<[ |
| 36 | InstrItinData<IIC_iALU , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 37 | InstrItinData<IIC_iMPY , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 38 | InstrItinData<IIC_iLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>, |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 39 | InstrItinData<IIC_iStore , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 40 | InstrItinData<IIC_Br , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 41 | InstrItinData<IIC_fpALU , [InstrStage<1, [FU_Pipe0]>]>, |
David Goodwin | 546952f | 2009-08-11 22:38:43 +0000 | [diff] [blame^] | 42 | InstrItinData<IIC_fpMPY , [InstrStage<1, [FU_Pipe0]>]>, |
| 43 | InstrItinData<IIC_fpLoad , [InstrStage<1, [FU_Pipe0]>, InstrStage<1, [FU_LdSt0]>]>, |
| 44 | InstrItinData<IIC_fpStore , [InstrStage<1, [FU_Pipe0]>]> |
David Goodwin | bcf8162 | 2009-08-10 15:56:13 +0000 | [diff] [blame] | 45 | ]>; |
| 46 | |
Evan Cheng | 8557c2b | 2009-06-19 01:51:50 +0000 | [diff] [blame] | 47 | |
| 48 | include "ARMScheduleV6.td" |
Evan Cheng | 6762d91 | 2009-07-21 18:54:14 +0000 | [diff] [blame] | 49 | include "ARMScheduleV7.td" |