• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//===-- X86Schedule.td - X86 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// InstrSchedModel annotations for out-of-order CPUs.
11//
12// These annotations are independent of the itinerary classes defined below.
13
14// Instructions with folded loads need to read the memory operand immediately,
15// but other register operands don't have to be read until the load is ready.
16// These operands are marked with ReadAfterLd.
17def ReadAfterLd : SchedRead;
18
19// Instructions with both a load and a store folded are modeled as a folded
20// load + WriteRMW.
21def WriteRMW : SchedWrite;
22
23// Most instructions can fold loads, so almost every SchedWrite comes in two
24// variants: With and without a folded load.
25// An X86FoldableSchedWrite holds a reference to the corresponding SchedWrite
26// with a folded load.
27class X86FoldableSchedWrite : SchedWrite {
28  // The SchedWrite to use when a load is folded into the instruction.
29  SchedWrite Folded;
30}
31
32// Multiclass that produces a linked pair of SchedWrites.
33multiclass X86SchedWritePair {
34  // Register-Memory operation.
35  def Ld : SchedWrite;
36  // Register-Register operation.
37  def NAME : X86FoldableSchedWrite {
38    let Folded = !cast<SchedWrite>(NAME#"Ld");
39  }
40}
41
42// Arithmetic.
43defm WriteALU  : X86SchedWritePair; // Simple integer ALU op.
44defm WriteIMul : X86SchedWritePair; // Integer multiplication.
45def  WriteIMulH : SchedWrite;       // Integer multiplication, high part.
46defm WriteIDiv : X86SchedWritePair; // Integer division.
47def  WriteLEA  : SchedWrite;        // LEA instructions can't fold loads.
48
49// Integer shifts and rotates.
50defm WriteShift : X86SchedWritePair;
51
52// Loads, stores, and moves, not folded with other operations.
53def WriteLoad  : SchedWrite;
54def WriteStore : SchedWrite;
55def WriteMove  : SchedWrite;
56
57// Idioms that clear a register, like xorps %xmm0, %xmm0.
58// These can often bypass execution ports completely.
59def WriteZero : SchedWrite;
60
61// Branches don't produce values, so they have no latency, but they still
62// consume resources. Indirect branches can fold loads.
63defm WriteJump : X86SchedWritePair;
64
65// Floating point. This covers both scalar and vector operations.
66defm WriteFAdd  : X86SchedWritePair; // Floating point add/sub/compare.
67defm WriteFMul  : X86SchedWritePair; // Floating point multiplication.
68defm WriteFDiv  : X86SchedWritePair; // Floating point division.
69defm WriteFSqrt : X86SchedWritePair; // Floating point square root.
70defm WriteFRcp  : X86SchedWritePair; // Floating point reciprocal.
71defm WriteFMA   : X86SchedWritePair; // Fused Multiply Add.
72
73// FMA Scheduling helper class.
74class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
75
76// Vector integer operations.
77defm WriteVecALU   : X86SchedWritePair; // Vector integer ALU op, no logicals.
78defm WriteVecShift : X86SchedWritePair; // Vector integer shifts.
79defm WriteVecIMul  : X86SchedWritePair; // Vector integer multiply.
80
81// Vector bitwise operations.
82// These are often used on both floating point and integer vectors.
83defm WriteVecLogic : X86SchedWritePair; // Vector and/or/xor.
84defm WriteShuffle  : X86SchedWritePair; // Vector shuffles and blends.
85
86// Conversion between integer and float.
87defm WriteCvtF2I : X86SchedWritePair; // Float -> Integer.
88defm WriteCvtI2F : X86SchedWritePair; // Integer -> Float.
89defm WriteCvtF2F : X86SchedWritePair; // Float -> Float size conversion.
90
91// Catch-all for expensive system instructions.
92def WriteSystem : SchedWrite;
93
94// Old microcoded instructions that nobody use.
95def WriteMicrocoded : SchedWrite;
96
97//===----------------------------------------------------------------------===//
98// Instruction Itinerary classes used for X86
99def IIC_ALU_MEM     : InstrItinClass;
100def IIC_ALU_NONMEM  : InstrItinClass;
101def IIC_LEA         : InstrItinClass;
102def IIC_LEA_16      : InstrItinClass;
103def IIC_MUL8        : InstrItinClass;
104def IIC_MUL16_MEM   : InstrItinClass;
105def IIC_MUL16_REG   : InstrItinClass;
106def IIC_MUL32_MEM   : InstrItinClass;
107def IIC_MUL32_REG   : InstrItinClass;
108def IIC_MUL64       : InstrItinClass;
109// imul by al, ax, eax, tax
110def IIC_IMUL8       : InstrItinClass;
111def IIC_IMUL16_MEM  : InstrItinClass;
112def IIC_IMUL16_REG  : InstrItinClass;
113def IIC_IMUL32_MEM  : InstrItinClass;
114def IIC_IMUL32_REG  : InstrItinClass;
115def IIC_IMUL64      : InstrItinClass;
116// imul reg by reg|mem
117def IIC_IMUL16_RM   : InstrItinClass;
118def IIC_IMUL16_RR   : InstrItinClass;
119def IIC_IMUL32_RM   : InstrItinClass;
120def IIC_IMUL32_RR   : InstrItinClass;
121def IIC_IMUL64_RM   : InstrItinClass;
122def IIC_IMUL64_RR   : InstrItinClass;
123// imul reg = reg/mem * imm
124def IIC_IMUL16_RMI  : InstrItinClass;
125def IIC_IMUL16_RRI  : InstrItinClass;
126def IIC_IMUL32_RMI  : InstrItinClass;
127def IIC_IMUL32_RRI  : InstrItinClass;
128def IIC_IMUL64_RMI  : InstrItinClass;
129def IIC_IMUL64_RRI  : InstrItinClass;
130// div
131def IIC_DIV8_MEM    : InstrItinClass;
132def IIC_DIV8_REG    : InstrItinClass;
133def IIC_DIV16       : InstrItinClass;
134def IIC_DIV32       : InstrItinClass;
135def IIC_DIV64       : InstrItinClass;
136// idiv
137def IIC_IDIV8       : InstrItinClass;
138def IIC_IDIV16      : InstrItinClass;
139def IIC_IDIV32      : InstrItinClass;
140def IIC_IDIV64      : InstrItinClass;
141// neg/not/inc/dec
142def IIC_UNARY_REG   : InstrItinClass;
143def IIC_UNARY_MEM   : InstrItinClass;
144// add/sub/and/or/xor/adc/sbc/cmp/test
145def IIC_BIN_MEM     : InstrItinClass;
146def IIC_BIN_NONMEM  : InstrItinClass;
147// shift/rotate
148def IIC_SR          : InstrItinClass;
149// shift double
150def IIC_SHD16_REG_IM : InstrItinClass;
151def IIC_SHD16_REG_CL : InstrItinClass;
152def IIC_SHD16_MEM_IM : InstrItinClass;
153def IIC_SHD16_MEM_CL : InstrItinClass;
154def IIC_SHD32_REG_IM : InstrItinClass;
155def IIC_SHD32_REG_CL : InstrItinClass;
156def IIC_SHD32_MEM_IM : InstrItinClass;
157def IIC_SHD32_MEM_CL : InstrItinClass;
158def IIC_SHD64_REG_IM : InstrItinClass;
159def IIC_SHD64_REG_CL : InstrItinClass;
160def IIC_SHD64_MEM_IM : InstrItinClass;
161def IIC_SHD64_MEM_CL : InstrItinClass;
162// cmov
163def IIC_CMOV16_RM : InstrItinClass;
164def IIC_CMOV16_RR : InstrItinClass;
165def IIC_CMOV32_RM : InstrItinClass;
166def IIC_CMOV32_RR : InstrItinClass;
167def IIC_CMOV64_RM : InstrItinClass;
168def IIC_CMOV64_RR : InstrItinClass;
169// set
170def IIC_SET_R : InstrItinClass;
171def IIC_SET_M : InstrItinClass;
172// jmp/jcc/jcxz
173def IIC_Jcc : InstrItinClass;
174def IIC_JCXZ : InstrItinClass;
175def IIC_JMP_REL : InstrItinClass;
176def IIC_JMP_REG : InstrItinClass;
177def IIC_JMP_MEM : InstrItinClass;
178def IIC_JMP_FAR_MEM : InstrItinClass;
179def IIC_JMP_FAR_PTR : InstrItinClass;
180// loop
181def IIC_LOOP : InstrItinClass;
182def IIC_LOOPE : InstrItinClass;
183def IIC_LOOPNE : InstrItinClass;
184// call
185def IIC_CALL_RI : InstrItinClass;
186def IIC_CALL_MEM : InstrItinClass;
187def IIC_CALL_FAR_MEM : InstrItinClass;
188def IIC_CALL_FAR_PTR : InstrItinClass;
189// ret
190def IIC_RET : InstrItinClass;
191def IIC_RET_IMM : InstrItinClass;
192//sign extension movs
193def IIC_MOVSX : InstrItinClass;
194def IIC_MOVSX_R16_R8 : InstrItinClass;
195def IIC_MOVSX_R16_M8 : InstrItinClass;
196def IIC_MOVSX_R16_R16 : InstrItinClass;
197def IIC_MOVSX_R32_R32 : InstrItinClass;
198//zero extension movs
199def IIC_MOVZX : InstrItinClass;
200def IIC_MOVZX_R16_R8 : InstrItinClass;
201def IIC_MOVZX_R16_M8 : InstrItinClass;
202
203def IIC_REP_MOVS : InstrItinClass;
204def IIC_REP_STOS : InstrItinClass;
205
206// SSE scalar/parallel binary operations
207def IIC_SSE_ALU_F32S_RR : InstrItinClass;
208def IIC_SSE_ALU_F32S_RM : InstrItinClass;
209def IIC_SSE_ALU_F64S_RR : InstrItinClass;
210def IIC_SSE_ALU_F64S_RM : InstrItinClass;
211def IIC_SSE_MUL_F32S_RR : InstrItinClass;
212def IIC_SSE_MUL_F32S_RM : InstrItinClass;
213def IIC_SSE_MUL_F64S_RR : InstrItinClass;
214def IIC_SSE_MUL_F64S_RM : InstrItinClass;
215def IIC_SSE_DIV_F32S_RR : InstrItinClass;
216def IIC_SSE_DIV_F32S_RM : InstrItinClass;
217def IIC_SSE_DIV_F64S_RR : InstrItinClass;
218def IIC_SSE_DIV_F64S_RM : InstrItinClass;
219def IIC_SSE_ALU_F32P_RR : InstrItinClass;
220def IIC_SSE_ALU_F32P_RM : InstrItinClass;
221def IIC_SSE_ALU_F64P_RR : InstrItinClass;
222def IIC_SSE_ALU_F64P_RM : InstrItinClass;
223def IIC_SSE_MUL_F32P_RR : InstrItinClass;
224def IIC_SSE_MUL_F32P_RM : InstrItinClass;
225def IIC_SSE_MUL_F64P_RR : InstrItinClass;
226def IIC_SSE_MUL_F64P_RM : InstrItinClass;
227def IIC_SSE_DIV_F32P_RR : InstrItinClass;
228def IIC_SSE_DIV_F32P_RM : InstrItinClass;
229def IIC_SSE_DIV_F64P_RR : InstrItinClass;
230def IIC_SSE_DIV_F64P_RM : InstrItinClass;
231
232def IIC_SSE_COMIS_RR : InstrItinClass;
233def IIC_SSE_COMIS_RM : InstrItinClass;
234
235def IIC_SSE_HADDSUB_RR : InstrItinClass;
236def IIC_SSE_HADDSUB_RM : InstrItinClass;
237
238def IIC_SSE_BIT_P_RR  : InstrItinClass;
239def IIC_SSE_BIT_P_RM  : InstrItinClass;
240
241def IIC_SSE_INTALU_P_RR  : InstrItinClass;
242def IIC_SSE_INTALU_P_RM  : InstrItinClass;
243def IIC_SSE_INTALUQ_P_RR  : InstrItinClass;
244def IIC_SSE_INTALUQ_P_RM  : InstrItinClass;
245
246def IIC_SSE_INTMUL_P_RR : InstrItinClass;
247def IIC_SSE_INTMUL_P_RM : InstrItinClass;
248
249def IIC_SSE_INTSH_P_RR : InstrItinClass;
250def IIC_SSE_INTSH_P_RM : InstrItinClass;
251def IIC_SSE_INTSH_P_RI : InstrItinClass;
252
253def IIC_SSE_CMPP_RR : InstrItinClass;
254def IIC_SSE_CMPP_RM : InstrItinClass;
255
256def IIC_SSE_SHUFP : InstrItinClass;
257def IIC_SSE_PSHUF : InstrItinClass;
258
259def IIC_SSE_UNPCK : InstrItinClass;
260
261def IIC_SSE_MOVMSK : InstrItinClass;
262def IIC_SSE_MASKMOV : InstrItinClass;
263
264def IIC_SSE_PEXTRW : InstrItinClass;
265def IIC_SSE_PINSRW : InstrItinClass;
266
267def IIC_SSE_PABS_RR : InstrItinClass;
268def IIC_SSE_PABS_RM : InstrItinClass;
269
270def IIC_SSE_SQRTPS_RR : InstrItinClass;
271def IIC_SSE_SQRTPS_RM : InstrItinClass;
272def IIC_SSE_SQRTSS_RR : InstrItinClass;
273def IIC_SSE_SQRTSS_RM : InstrItinClass;
274def IIC_SSE_SQRTPD_RR : InstrItinClass;
275def IIC_SSE_SQRTPD_RM : InstrItinClass;
276def IIC_SSE_SQRTSD_RR : InstrItinClass;
277def IIC_SSE_SQRTSD_RM : InstrItinClass;
278
279def IIC_SSE_RCPP_RR : InstrItinClass;
280def IIC_SSE_RCPP_RM : InstrItinClass;
281def IIC_SSE_RCPS_RR : InstrItinClass;
282def IIC_SSE_RCPS_RM : InstrItinClass;
283
284def IIC_SSE_MOV_S_RR : InstrItinClass;
285def IIC_SSE_MOV_S_RM : InstrItinClass;
286def IIC_SSE_MOV_S_MR : InstrItinClass;
287
288def IIC_SSE_MOVA_P_RR : InstrItinClass;
289def IIC_SSE_MOVA_P_RM : InstrItinClass;
290def IIC_SSE_MOVA_P_MR : InstrItinClass;
291
292def IIC_SSE_MOVU_P_RR : InstrItinClass;
293def IIC_SSE_MOVU_P_RM : InstrItinClass;
294def IIC_SSE_MOVU_P_MR : InstrItinClass;
295
296def IIC_SSE_MOVDQ : InstrItinClass;
297def IIC_SSE_MOVD_ToGP : InstrItinClass;
298def IIC_SSE_MOVQ_RR : InstrItinClass;
299
300def IIC_SSE_MOV_LH : InstrItinClass;
301
302def IIC_SSE_LDDQU : InstrItinClass;
303
304def IIC_SSE_MOVNT : InstrItinClass;
305
306def IIC_SSE_PHADDSUBD_RR : InstrItinClass;
307def IIC_SSE_PHADDSUBD_RM : InstrItinClass;
308def IIC_SSE_PHADDSUBSW_RR : InstrItinClass;
309def IIC_SSE_PHADDSUBSW_RM : InstrItinClass;
310def IIC_SSE_PHADDSUBW_RR : InstrItinClass;
311def IIC_SSE_PHADDSUBW_RM : InstrItinClass;
312def IIC_SSE_PSHUFB_RR : InstrItinClass;
313def IIC_SSE_PSHUFB_RM : InstrItinClass;
314def IIC_SSE_PSIGN_RR : InstrItinClass;
315def IIC_SSE_PSIGN_RM : InstrItinClass;
316
317def IIC_SSE_PMADD : InstrItinClass;
318def IIC_SSE_PMULHRSW : InstrItinClass;
319def IIC_SSE_PALIGNR : InstrItinClass;
320def IIC_SSE_MWAIT : InstrItinClass;
321def IIC_SSE_MONITOR : InstrItinClass;
322
323def IIC_SSE_PREFETCH : InstrItinClass;
324def IIC_SSE_PAUSE : InstrItinClass;
325def IIC_SSE_LFENCE : InstrItinClass;
326def IIC_SSE_MFENCE : InstrItinClass;
327def IIC_SSE_SFENCE : InstrItinClass;
328def IIC_SSE_LDMXCSR : InstrItinClass;
329def IIC_SSE_STMXCSR : InstrItinClass;
330
331def IIC_SSE_CVT_PD_RR : InstrItinClass;
332def IIC_SSE_CVT_PD_RM : InstrItinClass;
333def IIC_SSE_CVT_PS_RR : InstrItinClass;
334def IIC_SSE_CVT_PS_RM : InstrItinClass;
335def IIC_SSE_CVT_PI2PS_RR : InstrItinClass;
336def IIC_SSE_CVT_PI2PS_RM : InstrItinClass;
337def IIC_SSE_CVT_Scalar_RR : InstrItinClass;
338def IIC_SSE_CVT_Scalar_RM : InstrItinClass;
339def IIC_SSE_CVT_SS2SI32_RM : InstrItinClass;
340def IIC_SSE_CVT_SS2SI32_RR : InstrItinClass;
341def IIC_SSE_CVT_SS2SI64_RM : InstrItinClass;
342def IIC_SSE_CVT_SS2SI64_RR : InstrItinClass;
343def IIC_SSE_CVT_SD2SI_RM : InstrItinClass;
344def IIC_SSE_CVT_SD2SI_RR : InstrItinClass;
345
346// MMX
347def IIC_MMX_MOV_MM_RM : InstrItinClass;
348def IIC_MMX_MOV_REG_MM : InstrItinClass;
349def IIC_MMX_MOVQ_RM : InstrItinClass;
350def IIC_MMX_MOVQ_RR : InstrItinClass;
351
352def IIC_MMX_ALU_RM : InstrItinClass;
353def IIC_MMX_ALU_RR : InstrItinClass;
354def IIC_MMX_ALUQ_RM : InstrItinClass;
355def IIC_MMX_ALUQ_RR : InstrItinClass;
356def IIC_MMX_PHADDSUBW_RM : InstrItinClass;
357def IIC_MMX_PHADDSUBW_RR : InstrItinClass;
358def IIC_MMX_PHADDSUBD_RM : InstrItinClass;
359def IIC_MMX_PHADDSUBD_RR : InstrItinClass;
360def IIC_MMX_PMUL : InstrItinClass;
361def IIC_MMX_MISC_FUNC_MEM : InstrItinClass;
362def IIC_MMX_MISC_FUNC_REG : InstrItinClass;
363def IIC_MMX_PSADBW : InstrItinClass;
364def IIC_MMX_SHIFT_RI : InstrItinClass;
365def IIC_MMX_SHIFT_RM : InstrItinClass;
366def IIC_MMX_SHIFT_RR : InstrItinClass;
367def IIC_MMX_UNPCK_H_RM : InstrItinClass;
368def IIC_MMX_UNPCK_H_RR : InstrItinClass;
369def IIC_MMX_UNPCK_L : InstrItinClass;
370def IIC_MMX_PCK_RM : InstrItinClass;
371def IIC_MMX_PCK_RR : InstrItinClass;
372def IIC_MMX_PSHUF : InstrItinClass;
373def IIC_MMX_PEXTR : InstrItinClass;
374def IIC_MMX_PINSRW : InstrItinClass;
375def IIC_MMX_MASKMOV : InstrItinClass;
376
377def IIC_MMX_CVT_PD_RR : InstrItinClass;
378def IIC_MMX_CVT_PD_RM : InstrItinClass;
379def IIC_MMX_CVT_PS_RR : InstrItinClass;
380def IIC_MMX_CVT_PS_RM : InstrItinClass;
381
382def IIC_CMPX_LOCK : InstrItinClass;
383def IIC_CMPX_LOCK_8 : InstrItinClass;
384def IIC_CMPX_LOCK_8B : InstrItinClass;
385def IIC_CMPX_LOCK_16B : InstrItinClass;
386
387def IIC_XADD_LOCK_MEM : InstrItinClass;
388def IIC_XADD_LOCK_MEM8 : InstrItinClass;
389
390def IIC_FILD : InstrItinClass;
391def IIC_FLD : InstrItinClass;
392def IIC_FLD80 : InstrItinClass;
393def IIC_FST : InstrItinClass;
394def IIC_FST80 : InstrItinClass;
395def IIC_FIST : InstrItinClass;
396def IIC_FLDZ : InstrItinClass;
397def IIC_FUCOM : InstrItinClass;
398def IIC_FUCOMI : InstrItinClass;
399def IIC_FCOMI : InstrItinClass;
400def IIC_FNSTSW : InstrItinClass;
401def IIC_FNSTCW : InstrItinClass;
402def IIC_FLDCW : InstrItinClass;
403def IIC_FNINIT : InstrItinClass;
404def IIC_FFREE : InstrItinClass;
405def IIC_FNCLEX : InstrItinClass;
406def IIC_WAIT : InstrItinClass;
407def IIC_FXAM : InstrItinClass;
408def IIC_FNOP : InstrItinClass;
409def IIC_FLDL : InstrItinClass;
410def IIC_F2XM1 : InstrItinClass;
411def IIC_FYL2X : InstrItinClass;
412def IIC_FPTAN : InstrItinClass;
413def IIC_FPATAN : InstrItinClass;
414def IIC_FXTRACT : InstrItinClass;
415def IIC_FPREM1 : InstrItinClass;
416def IIC_FPSTP : InstrItinClass;
417def IIC_FPREM : InstrItinClass;
418def IIC_FYL2XP1 : InstrItinClass;
419def IIC_FSINCOS : InstrItinClass;
420def IIC_FRNDINT : InstrItinClass;
421def IIC_FSCALE : InstrItinClass;
422def IIC_FCOMPP : InstrItinClass;
423def IIC_FXSAVE : InstrItinClass;
424def IIC_FXRSTOR : InstrItinClass;
425
426def IIC_FXCH : InstrItinClass;
427
428// System instructions
429def IIC_CPUID : InstrItinClass;
430def IIC_INT : InstrItinClass;
431def IIC_INT3 : InstrItinClass;
432def IIC_INVD : InstrItinClass;
433def IIC_INVLPG : InstrItinClass;
434def IIC_IRET : InstrItinClass;
435def IIC_HLT : InstrItinClass;
436def IIC_LXS : InstrItinClass;
437def IIC_LTR : InstrItinClass;
438def IIC_RDTSC : InstrItinClass;
439def IIC_RSM : InstrItinClass;
440def IIC_SIDT : InstrItinClass;
441def IIC_SGDT : InstrItinClass;
442def IIC_SLDT : InstrItinClass;
443def IIC_STR : InstrItinClass;
444def IIC_SWAPGS : InstrItinClass;
445def IIC_SYSCALL : InstrItinClass;
446def IIC_SYS_ENTER_EXIT : InstrItinClass;
447def IIC_IN_RR : InstrItinClass;
448def IIC_IN_RI : InstrItinClass;
449def IIC_OUT_RR : InstrItinClass;
450def IIC_OUT_IR : InstrItinClass;
451def IIC_INS : InstrItinClass;
452def IIC_MOV_REG_DR : InstrItinClass;
453def IIC_MOV_DR_REG : InstrItinClass;
454def IIC_MOV_REG_CR : InstrItinClass;
455def IIC_MOV_CR_REG : InstrItinClass;
456def IIC_MOV_REG_SR : InstrItinClass;
457def IIC_MOV_MEM_SR : InstrItinClass;
458def IIC_MOV_SR_REG : InstrItinClass;
459def IIC_MOV_SR_MEM : InstrItinClass;
460def IIC_LAR_RM : InstrItinClass;
461def IIC_LAR_RR : InstrItinClass;
462def IIC_LSL_RM : InstrItinClass;
463def IIC_LSL_RR : InstrItinClass;
464def IIC_LGDT : InstrItinClass;
465def IIC_LIDT : InstrItinClass;
466def IIC_LLDT_REG : InstrItinClass;
467def IIC_LLDT_MEM : InstrItinClass;
468def IIC_PUSH_CS : InstrItinClass;
469def IIC_PUSH_SR : InstrItinClass;
470def IIC_POP_SR : InstrItinClass;
471def IIC_POP_SR_SS : InstrItinClass;
472def IIC_VERR : InstrItinClass;
473def IIC_VERW_REG : InstrItinClass;
474def IIC_VERW_MEM : InstrItinClass;
475def IIC_WRMSR : InstrItinClass;
476def IIC_RDMSR : InstrItinClass;
477def IIC_RDPMC : InstrItinClass;
478def IIC_SMSW : InstrItinClass;
479def IIC_LMSW_REG : InstrItinClass;
480def IIC_LMSW_MEM : InstrItinClass;
481def IIC_ENTER : InstrItinClass;
482def IIC_LEAVE : InstrItinClass;
483def IIC_POP_MEM : InstrItinClass;
484def IIC_POP_REG16 : InstrItinClass;
485def IIC_POP_REG : InstrItinClass;
486def IIC_POP_F : InstrItinClass;
487def IIC_POP_FD : InstrItinClass;
488def IIC_POP_A : InstrItinClass;
489def IIC_PUSH_IMM : InstrItinClass;
490def IIC_PUSH_MEM : InstrItinClass;
491def IIC_PUSH_REG : InstrItinClass;
492def IIC_PUSH_F : InstrItinClass;
493def IIC_PUSH_A : InstrItinClass;
494def IIC_BSWAP : InstrItinClass;
495def IIC_BSF : InstrItinClass;
496def IIC_BSR : InstrItinClass;
497def IIC_MOVS : InstrItinClass;
498def IIC_STOS : InstrItinClass;
499def IIC_SCAS : InstrItinClass;
500def IIC_CMPS : InstrItinClass;
501def IIC_MOV : InstrItinClass;
502def IIC_MOV_MEM : InstrItinClass;
503def IIC_AHF : InstrItinClass;
504def IIC_BT_MI : InstrItinClass;
505def IIC_BT_MR : InstrItinClass;
506def IIC_BT_RI : InstrItinClass;
507def IIC_BT_RR : InstrItinClass;
508def IIC_BTX_MI : InstrItinClass;
509def IIC_BTX_MR : InstrItinClass;
510def IIC_BTX_RI : InstrItinClass;
511def IIC_BTX_RR : InstrItinClass;
512def IIC_XCHG_REG : InstrItinClass;
513def IIC_XCHG_MEM : InstrItinClass;
514def IIC_XADD_REG : InstrItinClass;
515def IIC_XADD_MEM : InstrItinClass;
516def IIC_CMPXCHG_MEM : InstrItinClass;
517def IIC_CMPXCHG_REG : InstrItinClass;
518def IIC_CMPXCHG_MEM8 : InstrItinClass;
519def IIC_CMPXCHG_REG8 : InstrItinClass;
520def IIC_CMPXCHG_8B : InstrItinClass;
521def IIC_CMPXCHG_16B : InstrItinClass;
522def IIC_LODS : InstrItinClass;
523def IIC_OUTS : InstrItinClass;
524def IIC_CLC : InstrItinClass;
525def IIC_CLD : InstrItinClass;
526def IIC_CLI : InstrItinClass;
527def IIC_CMC : InstrItinClass;
528def IIC_CLTS : InstrItinClass;
529def IIC_STC : InstrItinClass;
530def IIC_STI : InstrItinClass;
531def IIC_STD : InstrItinClass;
532def IIC_XLAT : InstrItinClass;
533def IIC_AAA : InstrItinClass;
534def IIC_AAD : InstrItinClass;
535def IIC_AAM : InstrItinClass;
536def IIC_AAS : InstrItinClass;
537def IIC_DAA : InstrItinClass;
538def IIC_DAS : InstrItinClass;
539def IIC_BOUND : InstrItinClass;
540def IIC_ARPL_REG : InstrItinClass;
541def IIC_ARPL_MEM : InstrItinClass;
542def IIC_MOVBE : InstrItinClass;
543
544def IIC_NOP : InstrItinClass;
545
546//===----------------------------------------------------------------------===//
547// Processor instruction itineraries.
548
549// IssueWidth is analagous to the number of decode units. Core and its
550// descendents, including Nehalem and SandyBridge have 4 decoders.
551// Resources beyond the decoder operate on micro-ops and are bufferred
552// so adjacent micro-ops don't directly compete.
553//
554// MicroOpBufferSize > 1 indicates that RAW dependencies can be
555// decoded in the same cycle. The value 32 is a reasonably arbitrary
556// number of in-flight instructions.
557//
558// HighLatency=10 is optimistic. X86InstrInfo::isHighLatencyDef
559// indicates high latency opcodes. Alternatively, InstrItinData
560// entries may be included here to define specific operand
561// latencies. Since these latencies are not used for pipeline hazards,
562// they do not need to be exact.
563//
564// The GenericModel contains no instruciton itineraries.
565def GenericModel : SchedMachineModel {
566  let IssueWidth = 4;
567  let MicroOpBufferSize = 32;
568  let LoadLatency = 4;
569  let HighLatency = 10;
570}
571
572include "X86ScheduleAtom.td"
573include "X86SchedSandyBridge.td"
574include "X86SchedHaswell.td"
575