From 80aabc75ad4c5c98d342deaf010820a9bf7253bc Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Mon, 14 May 2012 15:04:10 -0800 Subject: Merging decuda_to_ptxplus with cuobjdump_to_ptxplus Major rework for the Makefile Deleting decuda_to_ptxplus Removing all dependencies on boost and removing it from the dependencies of the simulator [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12545] --- cuobjdump_to_ptxplus/cuobjdumpInst.h | 43 ++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) (limited to 'cuobjdump_to_ptxplus/cuobjdumpInst.h') diff --git a/cuobjdump_to_ptxplus/cuobjdumpInst.h b/cuobjdump_to_ptxplus/cuobjdumpInst.h index 20d31be..8cf0ebe 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInst.h +++ b/cuobjdump_to_ptxplus/cuobjdumpInst.h @@ -1,12 +1,45 @@ -#include "decudaInstList.h" +#ifndef _CUOBJDUMPINST_H_ +#define _CUOBJDUMPINST_H_ -class cuobjdumpInst: public decudaInst +// External includes +#include +#include +#include +#include + +// Local includes +//#include "cuobjdumpInstList.h" +#include "stringList.h" + +class cuobjdumpInst { +protected: + //instruction data + const char* m_label; //instruction label + stringList* m_predicate; //instruction predicate + const char* m_base; //instruction mnemonic + stringList* m_baseModifiers; //base modifiers + stringList* m_typeModifiers; //operand types + stringList* m_operands; //operands + stringList* m_predicateModifiers; //predicate modifiers public: //Constructor cuobjdumpInst(); + //accessors + const char* getBase(); + stringList* getTypeModifiers(); + + //Mutators + void setLabel(const char* setLabelValue); + void setPredicate(const char* setPredicateValue); + void addPredicateModifier(const char* addPredicateMod); + void setBase(const char* setBaseValue); + void addBaseModifier(const char* addBaseMod); + void addTypeModifier(const char* addTypeMod); + void addOperand(const char* addOp); + bool checkCubojdumpLabel(std::list labelList, std::string label); void printCuobjdumpLabel(std::list labelList); @@ -18,5 +51,11 @@ public: void printCuobjdumpOperands(); void printCuobjdumpPtxPlus(std::list labelList, std::list texList); + + //print representation + bool printHeaderInst(); + void printCuobjdumpInst(); + void printHeaderPtx(); }; +#endif //_CUOBJDUMPINST_H_ -- cgit v1.3