Function tvm::script::printer::DocTranslate#
Defined in File doc_translator.h
Function Documentation#
-
Doc tvm::script::printer::DocTranslate(ffi::AnyView ir, ffi::Dict<Doc, ffi::ObjectRef> *doc_origins = nullptr, ffi::Map<ffi::String, ffi::Any> extra_config = {})#
Translate IR into a complete Doc including declarations and metadata setup.
- Parameters:
ir – The input IR value.
doc_origins – Optional output replaced with the owned origins only on success.
extra_config – The translation configuration snapshot.
- Returns:
The translated Doc, with text headers and diagnostic recovery left to the text adapter.