SLLV, SRLV, SRAV and ROTV have reverse order of operands
[pspdecompiler.git] / output.h
blob967b9d57c647b3864b4b96d40481c6058073760e
1 /**
2 * Author: Humberto Naves (hsnaves@gmail.com)
3 */
5 #ifndef __OUTPUT_H
6 #define __OUTPUT_H
8 #include <stddef.h>
9 #include "code.h"
11 #define OUT_PRINT_DFS 1
12 #define OUT_PRINT_RDFS 2
13 #define OUT_PRINT_DOMINATOR 4
14 #define OUT_PRINT_RDOMINATOR 8
15 #define OUT_PRINT_FRONTIER 16
16 #define OUT_PRINT_RFRONTIER 32
17 #define OUT_PRINT_CODE 64
18 #define OUT_PRINT_STRUCTURES 128
19 #define OUT_PRINT_EDGE_TYPES 256
21 #define OPTS_NORESULT 1
22 #define OPTS_REVERSECOND 2
23 #define OPTS_RESULT 4
25 extern int g_verbosity;
26 extern int g_printoptions;
29 void ident_line (FILE *out, int size);
30 void get_base_name (char *filename, char *basename, size_t len);
31 void print_value (FILE *out, struct value *val, int options);
32 void print_operation (FILE *out, struct operation *op, int identsize, int options);
33 void print_subroutine_name (FILE *out, struct subroutine *sub);
34 void print_subroutine_declaration (FILE *out, struct subroutine *sub);
36 int print_code (struct code *c, char *filename);
37 int print_graph (struct code *c, char *prxname);
39 #endif /* __OUTPUT_H */