|
tvm
|
Entry-point header for TVMScript printing. More...
Go to the source code of this file.
Classes | |
| class | tvm::TVMScriptPrinter |
| Dispatch vtable used by per-dialect printers to register their object-type printing functions. Internal, but exposed here because TVM_REGISTER_SCRIPT_AS_REPR refers to it. More... | |
Namespaces | |
| tvm | |
| An object that builds and maintains block scope and StmtSref mapping for Dependence analysis. | |
Macros | |
| #define | TVM_REGISTER_SCRIPT_AS_REPR(ObjectType, Method) |
| Register Script as the kRepr callback for ObjectType and install the per-type dispatch entry in TVMScriptPrinter::vtable(). More... | |
Functions | |
| std::string | tvm::Script (const ffi::ObjectRef &node, const ffi::Optional< PrinterConfig > &config=std::nullopt) |
Print node as TVMScript with the given config. More... | |
Entry-point header for TVMScript printing.
Declares the free function tvm::Script(node, optional_config) and the dispatch vtable TVMScriptPrinter::vtable() used by per-dialect printers. PrinterConfig and its dataclass helpers live in config.h; this header is what callers include to invoke printing.
| #define TVM_REGISTER_SCRIPT_AS_REPR | ( | ObjectType, | |
| Method | |||
| ) |
Register Script as the kRepr callback for ObjectType and install the per-type dispatch entry in TVMScriptPrinter::vtable().
| ObjectType | The concrete object node type (e.g. tirx::VarNode). |
| Method | The TVMScriptPrinter vtable dispatch function. |