MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get

Method get

src/jit/impl/mlir/mlir_gen.cpp:215–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers 6

compileMethod · 0.45
initMethod · 0.45
user_dataMethod · 0.45
executeMethod · 0.45

Calls 3

lookupMethod · 0.45
nameMethod · 0.45
cnameMethod · 0.45

Tested by

no test coverage detected