//=-HexagonScheduleV60.td - HexagonV60 Scheduling Definitions *- tablegen -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // CVI pipes from the "Hexagon Multimedia Co-Processor Extensions Arch Spec". def CVI_ST : FuncUnit; def CVI_XLANE : FuncUnit; def CVI_SHIFT : FuncUnit; def CVI_MPY0 : FuncUnit; def CVI_MPY1 : FuncUnit; def CVI_LD : FuncUnit; // Combined functional units. def CVI_XLSHF : FuncUnit; def CVI_MPY01 : FuncUnit; def CVI_ALL : FuncUnit; // Combined functional unit data. def HexagonComboFuncsV60 : ComboFuncUnits<[ ComboFuncData, ComboFuncData, ComboFuncData ]>; // Note: When adding additional vector scheduling classes, add the // corresponding methods to the class HexagonInstrInfo. def CVI_VA : InstrItinClass; def CVI_VA_DV : InstrItinClass; def CVI_VX_LONG : InstrItinClass; def CVI_VX_LATE : InstrItinClass; def CVI_VX : InstrItinClass; def CVI_VX_DV_LONG : InstrItinClass; def CVI_VX_DV : InstrItinClass; def CVI_VX_DV_SLOT2 : InstrItinClass; def CVI_VP : InstrItinClass; def CVI_VP_LONG : InstrItinClass; def CVI_VP_VS_EARLY : InstrItinClass; def CVI_VP_VS_LONG_EARLY : InstrItinClass; def CVI_VP_VS_LONG : InstrItinClass; def CVI_VP_VS : InstrItinClass; def CVI_VP_DV : InstrItinClass; def CVI_VS : InstrItinClass; def CVI_VINLANESAT : InstrItinClass; def CVI_VM_LD : InstrItinClass; def CVI_VM_TMP_LD : InstrItinClass; def CVI_VM_CUR_LD : InstrItinClass; def CVI_VM_VP_LDU : InstrItinClass; def CVI_VM_ST : InstrItinClass; def CVI_VM_NEW_ST : InstrItinClass; def CVI_VM_STU : InstrItinClass; def CVI_HIST : InstrItinClass; def CVI_VA_EXT : InstrItinClass; // There are four SLOTS (four parallel pipelines) in Hexagon V60 machine. // This file describes that machine information. // // |===========|==================================================| // | PIPELINE | Instruction Classes | // |===========|==================================================| // | SLOT0 | LD ST ALU32 MEMOP NV SYSTEM | // |-----------|--------------------------------------------------| // | SLOT1 | LD ST ALU32 | // |-----------|--------------------------------------------------| // | SLOT2 | XTYPE ALU32 J JR | // |-----------|--------------------------------------------------| // | SLOT3 | XTYPE ALU32 J CR | // |===========|==================================================| // // // In addition to using the above SLOTS, there are also six vector pipelines // in the CVI co-processor in the Hexagon V60 machine. // // |=========| |=========| |=========| |=========| |=========| |=========| // SLOT | CVI_LD | |CVI_MPY3 | |CVI_MPY2 | |CVI_SHIFT| |CVI_XLANE| | CVI_ST | // ==== |=========| |=========| |=========| |=========| |=========| |=========| // S0-3 | | | CVI_VA | | CVI_VA | | CVI_VA | | CVI_VA | | | // S2-3 | | | CVI_VX | | CVI_VX | | | | | | | // S0-3 | | | | | | | | | CVI_VP | | | // S0-3 | | | | | | | CVI_VS | | | | | // S0-1 |(CVI_LD) | | CVI_LD | | CVI_LD | | CVI_LD | | CVI_LD | | | // S0-1 |(C*TMP_LD) | | | | | | | | | | // S01 |(C*_LDU) | | | | | | | | C*_LDU | | | // S0 | | | CVI_ST | | CVI_ST | | CVI_ST | | CVI_ST | |(CVI_ST) | // S0 | | | | | | | | | | |(C*TMP_ST) // S01 | | | | | | | | | VSTU | |(C*_STU) | // |=========| |=========| |=========| |=========| |=========| |=========| // |=====================| |=====================| // | CVI_MPY2 & CVI_MPY3 | |CVI_XLANE & CVI_SHIFT| // |=====================| |=====================| // S0-3 | CVI_VA_DV | | CVI_VA_DV | // S0-3 | | | CVI_VP_DV | // S2-3 | CVI_VX_DV | | | // |=====================| |=====================| // |=====================================================================| // S0-3 | CVI_HIST Histogram | // S0123| CVI_VA_EXT Extract | // |=====================================================================| def HexagonItinerariesV60 : ProcessorItineraries<[SLOT0, SLOT1, SLOT2, SLOT3, SLOT_ENDLOOP, CVI_ST, CVI_XLANE, CVI_SHIFT, CVI_MPY0, CVI_MPY1, CVI_LD, CVI_XLSHF, CVI_MPY01, CVI_ALL], [], [ // ALU32 InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // ALU64 InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // CR -> System InstrItinData]>, InstrItinData]>, InstrItinData]>, // Jump (conditional/unconditional/return etc) InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // JR InstrItinData]>, InstrItinData]>, // Extender InstrItinData]>, // Load InstrItinData]>, InstrItinData]>, InstrItinData]>, // M InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // Store InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // Subinsn InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // S InstrItinData]>, InstrItinData]>, InstrItinData]>, // The S_2op_tc_3x_SLOT23 slots are 4 cycles on v60. InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // New Value Compare Jump InstrItinData]>, // Mem ops InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // Endloop InstrItinData]>, // Vector InstrItinData]>, InstrItinData]>, InstrItinData]>, InstrItinData]>, // Duplex and Compound InstrItinData]>, InstrItinData]>, InstrItinData]>, // Misc InstrItinData]>, InstrItinData]>, InstrItinData, InstrStage<1, [SLOT2, SLOT3]>]>, // Latest CVI spec definitions. InstrItinData, InstrStage<1, [CVI_XLANE,CVI_SHIFT, CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF, CVI_MPY01]>]>, InstrItinData, InstrStage<1, [CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_MPY01]>]>, InstrItinData, InstrStage<1, [CVI_MPY01]>]>, InstrItinData, InstrStage<1, [CVI_MPY01]>]>, InstrItinData, InstrStage<1, [CVI_XLANE]>]>, InstrItinData, InstrStage<1, [CVI_XLANE]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF]>]>, InstrItinData, InstrStage<1, [CVI_XLSHF]>]>, InstrItinData, InstrStage<1, [CVI_SHIFT]>]>, InstrItinData, InstrStage<1, [CVI_SHIFT]>]>, InstrItinData, InstrStage<1, [CVI_LD], 0>, InstrStage<1, [CVI_XLANE, CVI_SHIFT, CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_LD]>]>, InstrItinData, InstrStage<1, [CVI_LD], 0>, InstrStage<1, [CVI_XLANE, CVI_SHIFT, CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [SLOT1], 0>, InstrStage<1, [CVI_LD], 0>, InstrStage<1, [CVI_XLANE]>]>, InstrItinData, InstrStage<1, [CVI_ST], 0>, InstrStage<1, [CVI_XLANE, CVI_SHIFT, CVI_MPY0, CVI_MPY1]>]>, InstrItinData, InstrStage<1, [CVI_ST]>]>, InstrItinData, InstrStage<1, [SLOT1], 0>, InstrStage<1, [CVI_ST], 0>, InstrStage<1, [CVI_XLANE]>]>, InstrItinData, InstrStage<1, [CVI_ALL]>]> ]>; def HexagonModelV60 : SchedMachineModel { // Max issue per cycle == bundle width. let IssueWidth = 4; let Itineraries = HexagonItinerariesV60; let LoadLatency = 1; } //===----------------------------------------------------------------------===// // Hexagon V60 Resource Definitions - //===----------------------------------------------------------------------===//