23#ifndef TVM_SCRIPT_PRINTER_PRINTER_H_
24#define TVM_SCRIPT_PRINTER_PRINTER_H_
26#include <tvm/ffi/container/map.h>
27#include <tvm/ffi/optional.h>
42 const ffi::Optional<PrinterConfig>& config = std::nullopt);
Configuration object for the TVMScript printer.
TVM_TIRX_DLL const ffi::Map< ffi::String, ffi::String > & GetNamespaceAliases()
Read the registered namespace aliases.
TVM_TIRX_DLL void RegisterNamespaceAlias(const ffi::String &key, const ffi::String &default_alias)
Register a namespace alias during dialect static initialization.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
TVM_TIRX_DLL std::string Script(const ffi::ObjectRef &node, const ffi::Optional< PrinterConfig > &config=std::nullopt)
Print an IR object as TVMScript, using repr when no translation hook exists.
#define TVM_TIRX_DLL
Definition base.h:83