In this case, you may link the code into tvm_runtime, expose them with TVM_REGISTER_GLOBAL (i.e. as a packed function), then they can be used as tvm.extern. Example: https://github.com/apache/incubator-tvm/blob/master/src/runtime/contrib/nnpack/fully_connected.cc#L36