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

Method code_gen

src/jit/include/megbrain/jit/ast_c.h:92–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 BinaryAST(const std::string& op, const ASTPtr& lhs, const ASTPtr& rhs)
91 : m_op(op), m_lhs(lhs), m_rhs(rhs) {}
92 inline std::string code_gen() override {
93 return "(" + m_lhs->code_gen() + " " + m_op + " " + m_rhs->code_gen() + ")";
94 }
95
96private:
97 std::string m_op;

Callers

nothing calls this directly

Calls 1

code_genMethod · 0.45

Tested by

no test coverage detected