diff options
| author | Jonathan <[email protected]> | 2018-06-21 17:35:07 -0700 |
|---|---|---|
| committer | Jonathan <[email protected]> | 2018-06-21 17:35:07 -0700 |
| commit | 76a124e9186b9574858238d423b9c5ce715f2c32 (patch) | |
| tree | 0e1c3a82661f06baafbf9505b216ef94ab3cbc91 /src/cuda-sim/ptx_ir.cc | |
| parent | 37dc5311a75548b848a33a3b7369ce4bee64b444 (diff) | |
WIP adding support for PTX JIT and dumping params to cudaLaunches
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
| -rw-r--r-- | src/cuda-sim/ptx_ir.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index 016c600..482b9e0 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -257,6 +257,14 @@ bool symbol_table::add_function_decl( const char *name, int entry_point, functio return prior_decl; } +function_info *symbol_table::lookup_function( std::string name ) +{ + std::string key = std::string(name); + std::map<std::string,function_info*>::iterator it = m_function_info_lookup.find(key); + assert ( it != m_function_info_lookup.end() ); + return it->second; +} + type_info *symbol_table::add_type( memory_space_t space_spec, int scalar_type_spec, int vector_spec, int alignment_spec, int extern_spec ) { if( space_spec == param_space_unclassified ) |
