summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptxinfo.y
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-02 00:22:15 -0400
committerMengchi Zhang <[email protected]>2019-07-02 00:22:15 -0400
commit3600ed5c59adafe40840524d19f622aa25e60dd6 (patch)
treef0175d95d1354851ba9043c4be373565d53d6d43 /src/cuda-sim/ptxinfo.y
parentcb678c3670de4a435a3260ed80dc476da3860082 (diff)
Move ptxinfo_addinfo
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptxinfo.y')
-rw-r--r--src/cuda-sim/ptxinfo.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cuda-sim/ptxinfo.y b/src/cuda-sim/ptxinfo.y
index 00c81e0..b303958 100644
--- a/src/cuda-sim/ptxinfo.y
+++ b/src/cuda-sim/ptxinfo.y
@@ -29,7 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%{
typedef void * yyscan_t;
-class ptxinfo_data;
+#include "ptx_loader.h"
%}
%define api.pure full
@@ -79,7 +79,6 @@ class ptxinfo_data;
static unsigned g_system;
int ptxinfo_lex(YYSTYPE * yylval_param, yyscan_t yyscanner, ptxinfo_data* ptxinfo);
void yyerror(yyscan_t yyscanner, ptxinfo_data* ptxinfo, const char* msg);
- void ptxinfo_addinfo();
void ptxinfo_function(const char *fname );
void ptxinfo_regs( unsigned nregs );
void ptxinfo_lmem( unsigned declared, unsigned system );
@@ -104,7 +103,7 @@ line: HEADER INFO COLON line_info
;
line_info: function_name
- | function_info { ptxinfo_addinfo(); }
+ | function_info { ptxinfo->ptxinfo_addinfo(); }
| gmem_info
;