MCPcopy Create free account
hub / github.com/MegEngine/MegCC / get_ctx

Method get_ctx

compiler/lib/CodeGen/GlobalCtx.cpp:39–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 registerLLVMDialectTranslation(*ctx_ptr);
38 }
39 mlir::MLIRContext* get_ctx() { return ctx_ptr.get(); }
40
41private:
42 std::unique_ptr<mlir::MLIRContext> ctx_ptr;

Callers 1

getGlobalCTXMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected