Register a expr function with unique id. It can be subsequently retrieved via GetRegisteredExprFn with that id.
| 333 | /// Register a expr function with unique id. It can be subsequently retrieved via |
| 334 | /// GetRegisteredExprFn with that id. |
| 335 | void RegisterExprFn(int64_t id, llvm::Function* function) { |
| 336 | DCHECK(registered_exprs_map_.find(id) == registered_exprs_map_.end()); |
| 337 | registered_exprs_map_[id] = function; |
| 338 | registered_exprs_.insert(function); |
| 339 | } |
| 340 | |
| 341 | /// Returns a registered expr function for id or NULL if it does not exist. |
| 342 | llvm::Function* GetRegisteredExprFn(int64_t id) { |
no test coverage detected