op_class.hh revision 2
12330SN/A/* 22330SN/A * Copyright (c) 2003 The Regents of The University of Michigan 32330SN/A * All rights reserved. 42330SN/A * 52330SN/A * Redistribution and use in source and binary forms, with or without 62330SN/A * modification, are permitted provided that the following conditions are 72330SN/A * met: redistributions of source code must retain the above copyright 82330SN/A * notice, this list of conditions and the following disclaimer; 92330SN/A * redistributions in binary form must reproduce the above copyright 102330SN/A * notice, this list of conditions and the following disclaimer in the 112330SN/A * documentation and/or other materials provided with the distribution; 122330SN/A * neither the name of the copyright holders nor the names of its 132330SN/A * contributors may be used to endorse or promote products derived from 142330SN/A * this software without specific prior written permission. 152330SN/A * 162330SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172330SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182330SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192330SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202330SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212330SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222330SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232330SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242330SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252330SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262330SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272689Sktlim@umich.edu */ 282689Sktlim@umich.edu 292330SN/A#ifndef __OP_CLASS_HH__ 302292SN/A#define __OP_CLASS_HH__ 312292SN/A 322292SN/A/** 332292SN/A * @file 342980Sgblack@eecs.umich.edu * Definition of operation classes. 352362SN/A */ 362680Sktlim@umich.edu 372292SN/A/** 382678Sktlim@umich.edu * Instruction operation classes. These classes are used for 392683Sktlim@umich.edu * assigning instructions to functional units. 402683Sktlim@umich.edu */ 412678Sktlim@umich.eduenum OpClass { 422678Sktlim@umich.edu No_OpClass = 0, /* inst does not use a functional unit */ 432292SN/A IntALU, /* integer ALU */ 442292SN/A IntMULT, /* integer multiplier */ 452292SN/A IntDIV, /* integer divider */ 462292SN/A FloatADD, /* floating point adder/subtractor */ 473548Sgblack@eecs.umich.edu FloatCMP, /* floating point comparator */ 483548Sgblack@eecs.umich.edu FloatCVT, /* floating point<->integer converter */ 493548Sgblack@eecs.umich.edu FloatMULT, /* floating point multiplier */ 503548Sgblack@eecs.umich.edu FloatDIV, /* floating point divider */ 512330SN/A FloatSQRT, /* floating point square root */ 522292SN/A RdPort, /* memory read port */ 532292SN/A WrPort, /* memory write port */ 543402Sktlim@umich.edu LvqPort, /* load value queue read port (redundant threading) */ 552862Sktlim@umich.edu IPrefPort, 563486Sktlim@umich.edu Num_OpClasses /* total functional unit classes */ 573402Sktlim@umich.edu}; 582862Sktlim@umich.edu 592330SN/A/** 602330SN/A * Array mapping OpClass enum values to strings. 612330SN/A */ 622330SN/Aextern const char *opClassStrings[]; 632330SN/A 642330SN/A#endif // __OP_CLASS_HH__ 652292SN/A