summaryrefslogtreecommitdiff
path: root/cuobjdump_to_ptxplus/ptx_parser.h
diff options
context:
space:
mode:
authorAndrew M. B. Boktor <[email protected]>2012-05-17 11:11:11 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:47:31 -0700
commit5ea6d0d35fe8005da93b796b1ebf43660a236357 (patch)
treed83020f084cc0e1a86d4c3de7fc3e787ee65b84b /cuobjdump_to_ptxplus/ptx_parser.h
parentd32ab26591e6cf466f3e35a5e7fdd43ba1f397a6 (diff)
Removing warnings
A bit of cleanup [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12627]
Diffstat (limited to 'cuobjdump_to_ptxplus/ptx_parser.h')
-rw-r--r--cuobjdump_to_ptxplus/ptx_parser.h83
1 files changed, 42 insertions, 41 deletions
diff --git a/cuobjdump_to_ptxplus/ptx_parser.h b/cuobjdump_to_ptxplus/ptx_parser.h
index 590b4b2..6d855f6 100644
--- a/cuobjdump_to_ptxplus/ptx_parser.h
+++ b/cuobjdump_to_ptxplus/ptx_parser.h
@@ -73,40 +73,40 @@ int g_error_detected;
const char *g_filename = "";
int g_func_decl;
-void set_symtab( void* a ) {DPRINTF("");}
-void end_function() {DPRINTF("");}
-void add_directive() {DPRINTF("");}
-void add_function_arg() {DPRINTF("");}
-void add_instruction() {DPRINTF("");}
-void add_file( unsigned a, const char *b ) {DPRINTF("");}
-void add_variables() {DPRINTF("");}
-void set_variable_type() {DPRINTF("");}
-void add_option(int a ) {DPRINTF("");}
-void add_array_initializer() {DPRINTF("");}
-void add_label( const char *a ) {DPRINTF("");}
-void set_return() {DPRINTF("");}
-void add_opcode( int a ) {DPRINTF("");}
-void add_pred( const char *a, int b, int c ) {DPRINTF("");}
+void set_symtab( void* a ) {DPRINTF(" ");}
+void end_function() {DPRINTF(" ");}
+void add_directive() {DPRINTF(" ");}
+void add_function_arg() {DPRINTF(" ");}
+void add_instruction() {DPRINTF(" ");}
+void add_file( unsigned a, const char *b ) {DPRINTF(" ");}
+void add_variables() {DPRINTF(" ");}
+void set_variable_type() {DPRINTF(" ");}
+void add_option(int a ) {DPRINTF(" ");}
+void add_array_initializer() {DPRINTF(" ");}
+void add_label( const char *a ) {DPRINTF(" ");}
+void set_return() {DPRINTF(" ");}
+void add_opcode( int a ) {DPRINTF(" ");}
+void add_pred( const char *a, int b, int c ) {DPRINTF(" ");}
void add_scalar_operand( const char *a ) {DPRINTF("%s", a);}
-void add_neg_pred_operand( const char *a ) {DPRINTF("");}
+void add_neg_pred_operand( const char *a ) {DPRINTF(" ");}
void add_address_operand( const char *a, int b ) {DPRINTF("%s", a);}
-void change_operand_lohi( int a ) {DPRINTF("");}
-void change_double_operand_type( int a ) {DPRINTF("");}
-void change_operand_neg( ) {DPRINTF("");}
-void add_double_operand( const char *a, const char *b ) {DPRINTF("");}
-void add_2vector_operand( const char *a, const char *b ) {DPRINTF("");}
-void add_3vector_operand( const char *a, const char *b, const char *c ) {DPRINTF("");}
-void add_4vector_operand( const char *a, const char *b, const char *c, const char *d ) {DPRINTF("");}
-void add_builtin_operand( int a, int b ) {DPRINTF("");}
-void add_memory_operand() {DPRINTF("");}
-void change_memory_addr_space( const char *a ) {DPRINTF("");}
-void add_literal_int( int a ) {DPRINTF("");}
-void add_literal_float( float a ) {DPRINTF("");}
-void add_literal_double( double a ) {DPRINTF("");}
-void add_extern_spec() {DPRINTF("");}
-void add_alignment_spec( int ) {DPRINTF("");}
-void add_pragma( const char *a ) {DPRINTF("");}
-void add_constptr(const char* identifier1, const char* identifier2, int offset) {DPRINTF("");}
+void change_operand_lohi( int a ) {DPRINTF(" ");}
+void change_double_operand_type( int a ) {DPRINTF(" ");}
+void change_operand_neg( ) {DPRINTF(" ");}
+void add_double_operand( const char *a, const char *b ) {DPRINTF(" ");}
+void add_2vector_operand( const char *a, const char *b ) {DPRINTF(" ");}
+void add_3vector_operand( const char *a, const char *b, const char *c ) {DPRINTF(" ");}
+void add_4vector_operand( const char *a, const char *b, const char *c, const char *d ) {DPRINTF(" ");}
+void add_builtin_operand( int a, int b ) {DPRINTF(" ");}
+void add_memory_operand() {DPRINTF(" ");}
+void change_memory_addr_space( const char *a ) {DPRINTF(" ");}
+void add_literal_int( int a ) {DPRINTF(" ");}
+void add_literal_float( float a ) {DPRINTF(" ");}
+void add_literal_double( double a ) {DPRINTF(" ");}
+void add_extern_spec() {DPRINTF(" ");}
+void add_alignment_spec( int ) {DPRINTF(" ");}
+void add_pragma( const char *a ) {DPRINTF(" ");}
+void add_constptr(const char* identifier1, const char* identifier2, int offset) {DPRINTF(" ");}
/*non-dummy stuff below this point*/
@@ -148,7 +148,7 @@ void add_space_spec( enum _memory_space_t spec, int value )
{
DPRINTF("spec=%u", spec);
cuobjdumpInst *instEntry;
- static int constmemindex=1;
+ //static int constmemindex=1;
switch(spec)
{
case param_space_unclassified:
@@ -177,13 +177,15 @@ void add_space_spec( enum _memory_space_t spec, int value )
//g_headerList->addConstMemory(constmemindex++);
}
break;
+ default:
+ break;
}
}
void add_scalar_type_spec( int headerInput )
{
- DPRINTF("");
- const char* compareString = g_headerList->getListEnd().getBase();
+ DPRINTF(" ");
+ //const char* compareString = g_headerList->getListEnd().getBase();
if( (inEntryDirective && inParamDirective) || inTexDirective || inConstDirective)
{
@@ -247,7 +249,7 @@ void add_scalar_type_spec( int headerInput )
//void version_header(double versionNumber)
void add_version_info( float versionNumber, unsigned ext)
{
- DPRINTF("");
+ DPRINTF(" ");
cuobjdumpInst *instEntry = new cuobjdumpInst();
instEntry->setBase(".version");
g_headerList->add(instEntry);
@@ -300,16 +302,15 @@ void target_header3(char* firstTarget, char* secondTarget, char* thirdTarget)
void start_function( int a )
{
- DPRINTF("");
+ DPRINTF(" ");
inEntryDirective = true;
}
void* reset_symtab()
{
- DPRINTF("");
+ DPRINTF(" ");
inEntryDirective = false;
- void* a;
- return a;
+ return (void*) NULL;
}
void func_header(const char* headerBase)
@@ -329,7 +330,7 @@ void func_header(const char* headerBase)
void func_header_info(const char* headerInfo)
{
DPRINTF("%s", headerInfo);
- const char* compareString = g_headerList->getListEnd().getBase();
+ //const char* compareString = g_headerList->getListEnd().getBase();
if(inEntryDirective && !inTexDirective) {
g_headerList->getListEnd().addOperand(headerInfo);