summaryrefslogtreecommitdiff
path: root/cuobjdump_to_ptxplus/ptx_parser.h
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-05-14 15:04:10 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:30 -0700
commit80aabc75ad4c5c98d342deaf010820a9bf7253bc (patch)
treed91004b7830a5db003e584f0b276474537cbe75c /cuobjdump_to_ptxplus/ptx_parser.h
parent5e96de01f52b5ea1d32f105dc9b9cee0012c7fdc (diff)
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]
Diffstat (limited to 'cuobjdump_to_ptxplus/ptx_parser.h')
-rw-r--r--cuobjdump_to_ptxplus/ptx_parser.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/cuobjdump_to_ptxplus/ptx_parser.h b/cuobjdump_to_ptxplus/ptx_parser.h
index 5111743..e32f6d8 100644
--- a/cuobjdump_to_ptxplus/ptx_parser.h
+++ b/cuobjdump_to_ptxplus/ptx_parser.h
@@ -7,8 +7,9 @@
#include <assert.h>
#include <iostream>
#include <sstream>
-#include "decudaInstList.h"
#include <string.h>
+#include <stdio.h>
+#include "cuobjdumpInstList.h"
#define NON_ARRAY_IDENTIFIER 1
#define ARRAY_IDENTIFIER_NO_DIM 2
@@ -79,9 +80,7 @@ void add_constptr(const char* identifier1, const char* identifier2, int offset)
/*non-dummy stuff below this point*/
-
-
-extern decudaInstList *g_headerList;
+extern cuobjdumpInstList *g_headerList;
// Global variable to track if we are currently inside a entry directive
bool inEntryDirective = false;
@@ -118,13 +117,13 @@ void add_function_name( const char *headerInput )
void add_space_spec( enum _memory_space_t spec, int value )
{
DPRINTF("spec=%u", spec);
- decudaInst *instEntry;
+ cuobjdumpInst *instEntry;
static int constmemindex=1;
switch(spec)
{
case param_space_unclassified:
if(inEntryDirective && inParamDirective) {
- instEntry = new decudaInst();
+ instEntry = new cuobjdumpInst();
instEntry->setBase(".param");
g_headerList->add(instEntry);
}
@@ -132,7 +131,7 @@ void add_space_spec( enum _memory_space_t spec, int value )
case tex_space:
inTexDirective = true;
/*
- instEntry = new decudaInst();
+ instEntry = new cuobjdumpInst();
instEntry->setBase(".tex");
g_headerList->add(instEntry);
*/
@@ -141,7 +140,7 @@ void add_space_spec( enum _memory_space_t spec, int value )
if(!inEntryDirective) {
/*
inConstDirective = true;
- instEntry = new decudaInst();
+ instEntry = new cuobjdumpInst();
instEntry->setBase(".const");
g_headerList->add(instEntry);
*/
@@ -219,7 +218,7 @@ void add_scalar_type_spec( int headerInput )
void add_version_info( float versionNumber, unsigned ext)
{
DPRINTF("");
- decudaInst *instEntry = new decudaInst();
+ cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(".version");
g_headerList->add(instEntry);
@@ -236,7 +235,7 @@ void add_version_info( float versionNumber, unsigned ext)
void target_header(char* firstTarget)
{
DPRINTF("%s", firstTarget);
- decudaInst *instEntry = new decudaInst();
+ cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(".target");
g_headerList->add(instEntry);
@@ -246,7 +245,7 @@ void target_header(char* firstTarget)
void target_header2(char* firstTarget, char* secondTarget)
{
DPRINTF("%s, %s", firstTarget, secondTarget);
- decudaInst *instEntry = new decudaInst();
+ cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(".target");
g_headerList->add(instEntry);
@@ -258,7 +257,7 @@ void target_header2(char* firstTarget, char* secondTarget)
void target_header3(char* firstTarget, char* secondTarget, char* thirdTarget)
{
DPRINTF("%s, %s, %s", firstTarget, secondTarget, thirdTarget);
- decudaInst *instEntry = new decudaInst();
+ cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(".target");
g_headerList->add(instEntry);
@@ -290,7 +289,7 @@ void func_header(const char* headerBase)
if((strcmp(headerBase, ".entry")==0)||(strcmp(headerBase, ".func")==0)) {
inEntryDirective = true;
g_headerList->addEntry("");
- decudaInst *instEntry = new decudaInst();
+ cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(headerBase);
g_headerList->add(instEntry);