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