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

Method code_gen

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

Source from the content-addressed store, hash-verified

124public:
125 ArraySubscriptAST(const ASTPtr& lhs, const ASTPtr& rhs) : m_lhs(lhs), m_rhs(rhs) {}
126 inline std::string code_gen() override {
127 return m_lhs->code_gen() + "[" + m_rhs->code_gen() + "]";
128 }
129
130private:
131 ASTPtr m_lhs, m_rhs;

Callers

nothing calls this directly

Calls 1

code_genMethod · 0.45

Tested by

no test coverage detected