op_class.hh revision 13759:9941fca869a9
15222Sksewell@umich.edu/*
25268Sksewell@umich.edu * Copyright (c) 2010, 2017-2018 ARM Limited
35222Sksewell@umich.edu * All rights reserved
45222Sksewell@umich.edu *
55222Sksewell@umich.edu * The license below extends only to copyright in the software and shall
65222Sksewell@umich.edu * not be construed as granting a license to any other intellectual
75222Sksewell@umich.edu * property including but not limited to intellectual property relating
85222Sksewell@umich.edu * to a hardware implementation of the functionality of the software
95222Sksewell@umich.edu * licensed hereunder.  You may use the software subject to the license
105222Sksewell@umich.edu * terms below provided that you ensure that this notice is replicated
115222Sksewell@umich.edu * unmodified and in its entirety in all distributions of the software,
125222Sksewell@umich.edu * modified or unmodified, in source code or in binary form.
135222Sksewell@umich.edu *
145222Sksewell@umich.edu * Copyright (c) 2003-2005 The Regents of The University of Michigan
155222Sksewell@umich.edu * All rights reserved.
165222Sksewell@umich.edu *
175222Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without
185222Sksewell@umich.edu * modification, are permitted provided that the following conditions are
195222Sksewell@umich.edu * met: redistributions of source code must retain the above copyright
205222Sksewell@umich.edu * notice, this list of conditions and the following disclaimer;
215222Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright
225222Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the
235222Sksewell@umich.edu * documentation and/or other materials provided with the distribution;
245222Sksewell@umich.edu * neither the name of the copyright holders nor the names of its
255222Sksewell@umich.edu * contributors may be used to endorse or promote products derived from
265222Sksewell@umich.edu * this software without specific prior written permission.
275222Sksewell@umich.edu *
285222Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
295222Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
305222Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
315222Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
325222Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
335222Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
345222Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
355222Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
365222Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
375222Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
385222Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
395222Sksewell@umich.edu *
405222Sksewell@umich.edu * Authors: Nathan Binkert
415222Sksewell@umich.edu */
425222Sksewell@umich.edu
435222Sksewell@umich.edu#ifndef __CPU__OP_CLASS_HH__
445222Sksewell@umich.edu#define __CPU__OP_CLASS_HH__
455222Sksewell@umich.edu
465222Sksewell@umich.edu#include "enums/OpClass.hh"
475222Sksewell@umich.edu
485222Sksewell@umich.edu/*
495222Sksewell@umich.edu * Do a bunch of wonky stuff to maintain backward compatability so I
505222Sksewell@umich.edu * don't have to change code in a zillion places.
515222Sksewell@umich.edu */
525222Sksewell@umich.eduusing Enums::OpClass;
535222Sksewell@umich.eduusing Enums::No_OpClass;
545222Sksewell@umich.edu
555222Sksewell@umich.edustatic const OpClass IntAluOp = Enums::IntAlu;
565222Sksewell@umich.edustatic const OpClass IntMultOp = Enums::IntMult;
575222Sksewell@umich.edustatic const OpClass IntDivOp = Enums::IntDiv;
585222Sksewell@umich.edustatic const OpClass FloatAddOp = Enums::FloatAdd;
595222Sksewell@umich.edustatic const OpClass FloatCmpOp = Enums::FloatCmp;
605222Sksewell@umich.edustatic const OpClass FloatCvtOp = Enums::FloatCvt;
615222Sksewell@umich.edustatic const OpClass FloatMultOp = Enums::FloatMult;
625222Sksewell@umich.edustatic const OpClass FloatMultAccOp = Enums::FloatMultAcc;
635222Sksewell@umich.edustatic const OpClass FloatDivOp = Enums::FloatDiv;
645222Sksewell@umich.edustatic const OpClass FloatMiscOp = Enums::FloatMisc;
655222Sksewell@umich.edustatic const OpClass FloatSqrtOp = Enums::FloatSqrt;
665222Sksewell@umich.edustatic const OpClass SimdAddOp = Enums::SimdAdd;
675222Sksewell@umich.edustatic const OpClass SimdAddAccOp = Enums::SimdAddAcc;
685222Sksewell@umich.edustatic const OpClass SimdAluOp = Enums::SimdAlu;
695222Sksewell@umich.edustatic const OpClass SimdCmpOp = Enums::SimdCmp;
705222Sksewell@umich.edustatic const OpClass SimdCvtOp = Enums::SimdCvt;
715222Sksewell@umich.edustatic const OpClass SimdMiscOp = Enums::SimdMisc;
725222Sksewell@umich.edustatic const OpClass SimdMultOp = Enums::SimdMult;
735222Sksewell@umich.edustatic const OpClass SimdMultAccOp = Enums::SimdMultAcc;
745222Sksewell@umich.edustatic const OpClass SimdShiftOp = Enums::SimdShift;
755222Sksewell@umich.edustatic const OpClass SimdShiftAccOp = Enums::SimdShiftAcc;
765222Sksewell@umich.edustatic const OpClass SimdDivOp = Enums::SimdDiv;
775222Sksewell@umich.edustatic const OpClass SimdSqrtOp = Enums::SimdSqrt;
785222Sksewell@umich.edustatic const OpClass SimdReduceAddOp = Enums::SimdReduceAdd;
795222Sksewell@umich.edustatic const OpClass SimdReduceAluOp = Enums::SimdReduceAlu;
805222Sksewell@umich.edustatic const OpClass SimdReduceCmpOp = Enums::SimdReduceCmp;
815222Sksewell@umich.edustatic const OpClass SimdFloatAddOp = Enums::SimdFloatAdd;
825222Sksewell@umich.edustatic const OpClass SimdFloatAluOp = Enums::SimdFloatAlu;
835222Sksewell@umich.edustatic const OpClass SimdFloatCmpOp = Enums::SimdFloatCmp;
845222Sksewell@umich.edustatic const OpClass SimdFloatCvtOp = Enums::SimdFloatCvt;
855222Sksewell@umich.edustatic const OpClass SimdFloatDivOp = Enums::SimdFloatDiv;
865222Sksewell@umich.edustatic const OpClass SimdFloatMiscOp = Enums::SimdFloatMisc;
875222Sksewell@umich.edustatic const OpClass SimdFloatMultOp = Enums::SimdFloatMult;
885222Sksewell@umich.edustatic const OpClass SimdFloatMultAccOp = Enums::SimdFloatMultAcc;
895222Sksewell@umich.edustatic const OpClass SimdFloatSqrtOp = Enums::SimdFloatSqrt;
905222Sksewell@umich.edustatic const OpClass SimdFloatReduceCmpOp = Enums::SimdFloatReduceCmp;
915222Sksewell@umich.edustatic const OpClass SimdFloatReduceAddOp = Enums::SimdFloatReduceAdd;
925222Sksewell@umich.edustatic const OpClass SimdAesOp = Enums::SimdAes;
935222Sksewell@umich.edustatic const OpClass SimdAesMixOp = Enums::SimdAesMix;
945222Sksewell@umich.edustatic const OpClass SimdSha1HashOp = Enums::SimdSha1Hash;
955222Sksewell@umich.edustatic const OpClass SimdSha1Hash2Op = Enums::SimdSha1Hash2;
965222Sksewell@umich.edustatic const OpClass SimdSha256HashOp = Enums::SimdSha256Hash;
975222Sksewell@umich.edustatic const OpClass SimdSha256Hash2Op = Enums::SimdSha256Hash2;
985222Sksewell@umich.edustatic const OpClass SimdShaSigma2Op = Enums::SimdShaSigma2;
995222Sksewell@umich.edustatic const OpClass SimdShaSigma3Op = Enums::SimdShaSigma3;
1005222Sksewell@umich.edustatic const OpClass SimdPredAluOp = Enums::SimdPredAlu;
1015222Sksewell@umich.edustatic const OpClass MemReadOp = Enums::MemRead;
1025222Sksewell@umich.edustatic const OpClass MemWriteOp = Enums::MemWrite;
1035222Sksewell@umich.edustatic const OpClass FloatMemReadOp = Enums::FloatMemRead;
104static const OpClass FloatMemWriteOp = Enums::FloatMemWrite;
105static const OpClass IprAccessOp = Enums::IprAccess;
106static const OpClass InstPrefetchOp = Enums::InstPrefetch;
107static const OpClass Num_OpClasses = Enums::Num_OpClass;
108
109#endif // __CPU__OP_CLASS_HH__
110