2012-02-28 07:46:26 +00:00
|
|
|
//===-- MipsSchedule.td - Mips Scheduling Definitions ------*- tablegen -*-===//
|
2007-08-18 01:46:44 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-08-18 01:46:44 +00:00
|
|
|
//
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 01:46:44 +00:00
|
|
|
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 01:46:44 +00:00
|
|
|
// Functional units across Mips chips sets. Based on GCC/Mips backend files.
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 01:46:44 +00:00
|
|
|
def ALU : FuncUnit;
|
|
|
|
def IMULDIV : FuncUnit;
|
|
|
|
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2011-03-04 17:51:39 +00:00
|
|
|
// Instruction Itinerary classes used for Mips
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 01:46:44 +00:00
|
|
|
def IIAlu : InstrItinClass;
|
2013-07-31 00:55:34 +00:00
|
|
|
def IIArith : InstrItinClass;
|
|
|
|
def IILogic : InstrItinClass;
|
2007-08-18 01:46:44 +00:00
|
|
|
def IILoad : InstrItinClass;
|
|
|
|
def IIStore : InstrItinClass;
|
|
|
|
def IIXfer : InstrItinClass;
|
|
|
|
def IIBranch : InstrItinClass;
|
|
|
|
def IIHiLo : InstrItinClass;
|
|
|
|
def IIImul : InstrItinClass;
|
2013-07-12 22:43:20 +00:00
|
|
|
def IIImult : InstrItinClass;
|
2007-08-18 01:46:44 +00:00
|
|
|
def IIIdiv : InstrItinClass;
|
2013-07-12 22:43:20 +00:00
|
|
|
def IIseb : InstrItinClass;
|
|
|
|
def IIslt : InstrItinClass;
|
2007-08-18 01:46:44 +00:00
|
|
|
def IIFcvt : InstrItinClass;
|
|
|
|
def IIFmove : InstrItinClass;
|
|
|
|
def IIFcmp : InstrItinClass;
|
|
|
|
def IIFadd : InstrItinClass;
|
|
|
|
def IIFmulSingle : InstrItinClass;
|
|
|
|
def IIFmulDouble : InstrItinClass;
|
|
|
|
def IIFdivSingle : InstrItinClass;
|
|
|
|
def IIFdivDouble : InstrItinClass;
|
|
|
|
def IIFsqrtSingle : InstrItinClass;
|
|
|
|
def IIFsqrtDouble : InstrItinClass;
|
|
|
|
def IIFrecipFsqrtStep : InstrItinClass;
|
2013-07-02 00:00:02 +00:00
|
|
|
def IIFLoad : InstrItinClass;
|
|
|
|
def IIFStore : InstrItinClass;
|
|
|
|
def IIFmoveC1 : InstrItinClass;
|
2007-08-18 01:46:44 +00:00
|
|
|
def IIPseudo : InstrItinClass;
|
|
|
|
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-08-18 01:46:44 +00:00
|
|
|
// Mips Generic instruction itineraries.
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2010-09-28 23:50:49 +00:00
|
|
|
def MipsGenericItineraries : ProcessorItineraries<[ALU, IMULDIV], [], [
|
2007-08-18 01:46:44 +00:00
|
|
|
InstrItinData<IIAlu , [InstrStage<1, [ALU]>]>,
|
2013-07-31 00:55:34 +00:00
|
|
|
InstrItinData<IIArith , [InstrStage<1, [ALU]>]>,
|
|
|
|
InstrItinData<IILogic , [InstrStage<1, [ALU]>]>,
|
2007-08-18 01:46:44 +00:00
|
|
|
InstrItinData<IILoad , [InstrStage<3, [ALU]>]>,
|
|
|
|
InstrItinData<IIStore , [InstrStage<1, [ALU]>]>,
|
|
|
|
InstrItinData<IIXfer , [InstrStage<2, [ALU]>]>,
|
|
|
|
InstrItinData<IIBranch , [InstrStage<1, [ALU]>]>,
|
|
|
|
InstrItinData<IIHiLo , [InstrStage<1, [IMULDIV]>]>,
|
|
|
|
InstrItinData<IIImul , [InstrStage<17, [IMULDIV]>]>,
|
|
|
|
InstrItinData<IIIdiv , [InstrStage<38, [IMULDIV]>]>,
|
|
|
|
InstrItinData<IIFcvt , [InstrStage<1, [ALU]>]>,
|
|
|
|
InstrItinData<IIFmove , [InstrStage<2, [ALU]>]>,
|
|
|
|
InstrItinData<IIFcmp , [InstrStage<3, [ALU]>]>,
|
|
|
|
InstrItinData<IIFadd , [InstrStage<4, [ALU]>]>,
|
|
|
|
InstrItinData<IIFmulSingle , [InstrStage<7, [ALU]>]>,
|
|
|
|
InstrItinData<IIFmulDouble , [InstrStage<8, [ALU]>]>,
|
|
|
|
InstrItinData<IIFdivSingle , [InstrStage<23, [ALU]>]>,
|
|
|
|
InstrItinData<IIFdivDouble , [InstrStage<36, [ALU]>]>,
|
|
|
|
InstrItinData<IIFsqrtSingle , [InstrStage<54, [ALU]>]>,
|
|
|
|
InstrItinData<IIFsqrtDouble , [InstrStage<12, [ALU]>]>,
|
2013-07-02 00:00:02 +00:00
|
|
|
InstrItinData<IIFrecipFsqrtStep , [InstrStage<5, [ALU]>]>,
|
|
|
|
InstrItinData<IIFLoad , [InstrStage<3, [ALU]>]>,
|
|
|
|
InstrItinData<IIFStore , [InstrStage<1, [ALU]>]>,
|
|
|
|
InstrItinData<IIFmoveC1 , [InstrStage<2, [ALU]>]>
|
2007-08-18 01:46:44 +00:00
|
|
|
]>;
|