1//===- AlphaSchedule.td - Alpha 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 is table 2-2 from the 21264 compiler writers guide 11//modified some 12 13//Pipelines 14 15def L0 : FuncUnit; 16def L1 : FuncUnit; 17def FST0 : FuncUnit; 18def FST1 : FuncUnit; 19def U0 : FuncUnit; 20def U1 : FuncUnit; 21def FA : FuncUnit; 22def FM : FuncUnit; 23 24def s_ild : InstrItinClass; 25def s_fld : InstrItinClass; 26def s_ist : InstrItinClass; 27def s_fst : InstrItinClass; 28def s_lda : InstrItinClass; 29def s_rpcc : InstrItinClass; 30def s_rx : InstrItinClass; 31def s_mxpr : InstrItinClass; 32def s_icbr : InstrItinClass; 33def s_ubr : InstrItinClass; 34def s_jsr : InstrItinClass; 35def s_iadd : InstrItinClass; 36def s_ilog : InstrItinClass; 37def s_ishf : InstrItinClass; 38def s_cmov : InstrItinClass; 39def s_imul : InstrItinClass; 40def s_imisc : InstrItinClass; 41def s_fbr : InstrItinClass; 42def s_fadd : InstrItinClass; 43def s_fmul : InstrItinClass; 44def s_fcmov : InstrItinClass; 45def s_fdivt : InstrItinClass; 46def s_fdivs : InstrItinClass; 47def s_fsqrts: InstrItinClass; 48def s_fsqrtt: InstrItinClass; 49def s_ftoi : InstrItinClass; 50def s_itof : InstrItinClass; 51def s_pseudo : InstrItinClass; 52 53//Table 2-4 Instruction Class Latency in Cycles 54//modified some 55 56def Alpha21264Itineraries : ProcessorItineraries< 57 [L0, L1, FST0, FST1, U0, U1, FA, FM], [], [ 58 InstrItinData<s_ild , [InstrStage<3, [L0, L1]>]>, 59 InstrItinData<s_fld , [InstrStage<4, [L0, L1]>]>, 60 InstrItinData<s_ist , [InstrStage<0, [L0, L1]>]>, 61 InstrItinData<s_fst , [InstrStage<0, [FST0, FST1, L0, L1]>]>, 62 InstrItinData<s_lda , [InstrStage<1, [L0, L1, U0, U1]>]>, 63 InstrItinData<s_rpcc , [InstrStage<1, [L1]>]>, 64 InstrItinData<s_rx , [InstrStage<1, [L1]>]>, 65 InstrItinData<s_mxpr , [InstrStage<1, [L0, L1]>]>, 66 InstrItinData<s_icbr , [InstrStage<0, [U0, U1]>]>, 67 InstrItinData<s_ubr , [InstrStage<3, [U0, U1]>]>, 68 InstrItinData<s_jsr , [InstrStage<3, [L0]>]>, 69 InstrItinData<s_iadd , [InstrStage<1, [L0, U0, L1, U1]>]>, 70 InstrItinData<s_ilog , [InstrStage<1, [L0, U0, L1, U1]>]>, 71 InstrItinData<s_ishf , [InstrStage<1, [U0, U1]>]>, 72 InstrItinData<s_cmov , [InstrStage<1, [L0, U0, L1, U1]>]>, 73 InstrItinData<s_imul , [InstrStage<7, [U1]>]>, 74 InstrItinData<s_imisc , [InstrStage<3, [U0]>]>, 75 InstrItinData<s_fbr , [InstrStage<0, [FA]>]>, 76 InstrItinData<s_fadd , [InstrStage<6, [FA]>]>, 77 InstrItinData<s_fmul , [InstrStage<6, [FM]>]>, 78 InstrItinData<s_fcmov , [InstrStage<6, [FA]>]>, 79 InstrItinData<s_fdivs , [InstrStage<12, [FA]>]>, 80 InstrItinData<s_fdivt , [InstrStage<15, [FA]>]>, 81 InstrItinData<s_fsqrts , [InstrStage<18, [FA]>]>, 82 InstrItinData<s_fsqrtt , [InstrStage<33, [FA]>]>, 83 InstrItinData<s_ftoi , [InstrStage<3, [FST0, FST1, L0, L1]>]>, 84 InstrItinData<s_itof , [InstrStage<4, [L0, L1]>]> 85]>; 86