| 75 | } |
| 76 | |
| 77 | void TargetModule::add_cv( |
| 78 | const std::string& sym, const std::string& sig, const std::string& body) { |
| 79 | if (m_cv_kern_map.count(sym) == 0) { |
| 80 | m_cv_kern_map[sym] = body; |
| 81 | m_cv_sig_map[sym] = sig; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | bool TargetModule::exist_internal_function(const std::string& sig) const { |
| 86 | return m_internal_kern_map.count(sig) != 0; |