diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-08 14:19:32 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-08 14:19:32 -0400 |
| commit | 109a03655326ed23d26a3496589b21be51089bbb (patch) | |
| tree | 3331bc8b8159411d2ebf9203ea99235cba9baa92 /src/cuda-sim/ptx_ir.h | |
| parent | 47d18d2dea9a27061193218f1e70ba50cf7ff46f (diff) | |
| parent | b3e786e3d8d720217f36a214e9b5be9a19ab9dd2 (diff) | |
Merge pull request #22 from echoedit/dev
g_keep_intermediate_files
Diffstat (limited to 'src/cuda-sim/ptx_ir.h')
| -rw-r--r-- | src/cuda-sim/ptx_ir.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 1af85de..1604551 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -43,6 +43,8 @@ #include "memory.h" +class gpgpu_context; + class type_info_key { public: type_info_key() @@ -931,7 +933,8 @@ public: const char *file, unsigned line, const char *source, - const core_config *config ); + const core_config *config, + gpgpu_context* ctx); void print_insn() const; virtual void print_insn( FILE *fp ) const; @@ -1187,6 +1190,8 @@ private: virtual void pre_decode(); friend class function_info; static unsigned g_num_ptx_inst_uid; + // backward pointer + class gpgpu_context* gpgpu_ctx; }; class param_info { @@ -1575,11 +1580,8 @@ struct textureInfo { extern std::map<std::string,symbol_table*> g_sym_name_to_symbol_table; -extern bool g_keep_intermediate_files; - void gpgpu_ptx_assemble( std::string kname, void *kinfo ); #include "../option_parser.h" -void ptx_reg_options(option_parser_t opp); unsigned ptx_kernel_shmem_size( void *kernel_impl ); unsigned ptx_kernel_nregs( void *kernel_impl ); |
