| 213 | } |
| 214 | |
| 215 | mlir::Value get(const VarNode* var) { |
| 216 | if (auto ret = m_symbol_table.lookup(var->name())) { |
| 217 | return ret; |
| 218 | } |
| 219 | mgb_throw(InternalError, "Unknown var: %s", var->cname()); |
| 220 | } |
| 221 | |
| 222 | mlir::LogicalResult declare(llvm::StringRef var, mlir::Value value) { |
| 223 | if (m_symbol_table.count(var)) { |
no test coverage detected