diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-11 01:47:04 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-11 01:47:04 -0400 |
| commit | e6f475eaa9c27cd601033c37321466010299dabf (patch) | |
| tree | d34b5264256fb154aa3722364030ad5a89a102f1 /src/cuda-sim/ptx_parser.h | |
| parent | cf13f05351636d178ee30c3a57872c33ef5a4e47 (diff) | |
Move g_inst_lookup
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
| -rw-r--r-- | src/cuda-sim/ptx_parser.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h index ef422e5..7e87ec8 100644 --- a/src/cuda-sim/ptx_parser.h +++ b/src/cuda-sim/ptx_parser.h @@ -31,10 +31,6 @@ #include "../abstract_hardware_model.h" #include "ptx_ir.h" -#ifdef __cplusplus -const class ptx_instruction *ptx_instruction_lookup( const char *filename, unsigned linenumber ); -#endif - class gpgpu_context; typedef void * yyscan_t; class ptx_recognizer { @@ -107,6 +103,7 @@ class ptx_recognizer { bool g_debug_ir_generation; int g_entry_point; const struct core_config *g_shader_core_config; + std::map<std::string,std::map<unsigned,const ptx_instruction*> > g_inst_lookup; // backward pointer class gpgpu_context* gpgpu_ctx; @@ -177,6 +174,7 @@ class ptx_recognizer { bool check_for_duplicates( const char *identifier ); void read_parser_environment_variables(); void set_ptx_warp_size(const struct core_config * warp_size); + const class ptx_instruction *ptx_instruction_lookup( const char *filename, unsigned linenumber ); }; |
