|
tvm
|
#include <ir_docsifier.h>
Public Member Functions | |
| TVM_FFI_DECLARE_OBJECT_INFO ("script.printer.Frame", FrameNode, ffi::Object) | |
| virtual | ~FrameNode ()=default |
| template<typename TCallback > | |
| void | AddExitCallback (TCallback &&cb) |
| Add a callback function to be called when this frame exits. | |
| void | AddDispatchToken (const IRDocsifier &d, const ffi::String &token) |
| Add a dispatch token to the docsifier, and a callback that pops the token when this frame exits. | |
| virtual void | EnterWithScope () |
| Method that's called when Frame enters the scope. | |
| virtual void | ExitWithScope () |
| Method that's called when Frame exits the scope. | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| ffi::Array< StmtDoc > | stmts |
| IRDocsifierNode * | d |
| std::vector< std::function< void()> > | callbacks |
Static Public Attributes | |
| static constexpr const bool | _type_mutable = true |
Frame is the core data structure for semantic information when printing IR graph into TVMScript code.
|
virtualdefault |
|
inline |
Add a dispatch token to the docsifier, and a callback that pops the token when this frame exits.
| d | The docsifier. |
| token | The token to be added. |
Add a callback function to be called when this frame exits.
| cb | The callback function. It should have signature void(). |
|
inlinevirtual |
Method that's called when Frame enters the scope.
|
inlinevirtual |
Method that's called when Frame exits the scope.
| tvm::script::printer::FrameNode::TVM_FFI_DECLARE_OBJECT_INFO | ( | "script.printer.Frame" | , |
| FrameNode | , | ||
| ffi::Object | |||
| ) |
| std::vector<std::function<void()> > tvm::script::printer::FrameNode::callbacks |
The callbacks that are going to be invoked when the frame exits
| IRDocsifierNode* tvm::script::printer::FrameNode::d |
The corresponding IRDocsifier
| ffi::Array<StmtDoc> tvm::script::printer::FrameNode::stmts |
The docs generated in the frame