decl.hh (11737:50eceddc2286) decl.hh (11738:ad7e8afa0dfe)
1/*
2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 731 unchanged lines hidden (view full) ---

740 const char *_opcode)
741 : CommonInstBase<typename DestDataType::OperandType,
742 typename SrcDataType::OperandType,
743 1>(ib, obj, _opcode)
744 {
745 }
746 };
747
1/*
2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 731 unchanged lines hidden (view full) ---

740 const char *_opcode)
741 : CommonInstBase<typename DestDataType::OperandType,
742 typename SrcDataType::OperandType,
743 1>(ib, obj, _opcode)
744 {
745 }
746 };
747
748 class Stub : public HsailGPUStaticInst
749 {
750 public:
751 Stub(const Brig::BrigInstBase *ib, const BrigObject *obj,
752 const char *_opcode)
753 : HsailGPUStaticInst(obj, _opcode)
754 {
755 }
756
757 void generateDisassembly() override
758 {
759 disassembly = csprintf("%s", opcode);
760 }
761
762 bool isVectorRegister(int operandIndex) override { return false; }
763 bool isCondRegister(int operandIndex) override { return false; }
764 bool isScalarRegister(int operandIndex) override { return false; }
765 bool isSrcOperand(int operandIndex) override { return false; }
766 bool isDstOperand(int operandIndex) override { return false; }
767 int getOperandSize(int operandIndex) override { return 0; }
768
769 int
770 getRegisterIndex(int operandIndex, GPUDynInstPtr gpuDynInst) override
771 {
772 return -1;
773 }
774
775 int numSrcRegOperands() override { return 0; }
776 int numDstRegOperands() override { return 0; }
777 int getNumOperands() override { return 0; }
778 };
779
748 class SpecialInstNoSrcNoDest : public HsailGPUStaticInst
749 {
750 public:
751 SpecialInstNoSrcNoDest(const Brig::BrigInstBase *ib,
752 const BrigObject *obj, const char *_opcode)
753 : HsailGPUStaticInst(obj, _opcode)
754 {
755 }
756
780 class SpecialInstNoSrcNoDest : public HsailGPUStaticInst
781 {
782 public:
783 SpecialInstNoSrcNoDest(const Brig::BrigInstBase *ib,
784 const BrigObject *obj, const char *_opcode)
785 : HsailGPUStaticInst(obj, _opcode)
786 {
787 }
788
757 bool isVectorRegister(int operandIndex) { return false; }
758 bool isCondRegister(int operandIndex) { return false; }
759 bool isScalarRegister(int operandIndex) { return false; }
760 bool isSrcOperand(int operandIndex) { return false; }
761 bool isDstOperand(int operandIndex) { return false; }
762 int getOperandSize(int operandIndex) { return 0; }
789 bool isVectorRegister(int operandIndex) override { return false; }
790 bool isCondRegister(int operandIndex) override { return false; }
791 bool isScalarRegister(int operandIndex) override { return false; }
792 bool isSrcOperand(int operandIndex) override { return false; }
793 bool isDstOperand(int operandIndex) override { return false; }
794 int getOperandSize(int operandIndex) override { return 0; }
763
764 int
795
796 int
765 getRegisterIndex(int operandIndex, GPUDynInstPtr gpuDynInst)
797 getRegisterIndex(int operandIndex, GPUDynInstPtr gpuDynInst) override
766 {
767 return -1;
768 }
769
798 {
799 return -1;
800 }
801
770 int numSrcRegOperands() { return 0; }
771 int numDstRegOperands() { return 0; }
772 int getNumOperands() { return 0; }
802 int numSrcRegOperands() override { return 0; }
803 int numDstRegOperands() override { return 0; }
804 int getNumOperands() override { return 0; }
773 };
774
775 template<typename DestOperandType>
776 class SpecialInstNoSrcBase : public HsailGPUStaticInst
777 {
778 protected:
779 typename DestOperandType::DestOperand dest;
780

--- 465 unchanged lines hidden ---
805 };
806
807 template<typename DestOperandType>
808 class SpecialInstNoSrcBase : public HsailGPUStaticInst
809 {
810 protected:
811 typename DestOperandType::DestOperand dest;
812

--- 465 unchanged lines hidden ---