#include <config.h>
|
| ffi::Array< ffi::String > | binding_names = {} |
| | A stack that tracks the names of the binding hierarchy.
|
| |
| bool | show_meta = false |
| | Whether or not to show metadata.
|
| |
| bool | verbose_expr = false |
| | Whether or not to verbose print expressions.
|
| |
| int | indent_spaces = 4 |
| | Number of spaces used for indentation.
|
| |
| bool | print_line_numbers = false |
| | Whether to print line numbers.
|
| |
| int | num_context_lines = -1 |
| | Number of context lines to print around the underlined text.
|
| |
| bool | render_invisible_path_info = true |
| | Whether to render access-path context for invisible underlined paths. Defaults true.
|
| |
| ffi::Array< ffi::reflection::AccessPath > | path_to_underline |
| |
| ffi::Map< ffi::reflection::AccessPath, ffi::String > | path_to_annotate |
| | ffi::Object path to be annotated.
|
| |
| ffi::Array< ffi::ObjectRef > | obj_to_underline = ffi::Array<ffi::ObjectRef>() |
| | ffi::Object to be underlined.
|
| |
| ffi::Map< ffi::ObjectRef, ffi::String > | obj_to_annotate = ffi::Map<ffi::ObjectRef, ffi::String>() |
| | ffi::Object to be annotated.
|
| |
| ffi::Map< ffi::String, ffi::Any > | extra_config |
| | Generic extension map for dialect-specific config knobs.
|
| |
◆ GetBuiltinKeywords()
| ffi::Array< ffi::String > tvm::PrinterConfigObj::GetBuiltinKeywords |
( |
| ) |
|
◆ GetExtraConfig()
template<typename T >
| T tvm::PrinterConfigObj::GetExtraConfig |
( |
const ffi::String & |
key, |
|
|
T |
fallback |
|
) |
| const |
|
inline |
Look up a value in extra_config with type cast and fallback.
Keys are conventionally namespaced as "<dialect>.<knob>" (e.g. "tirx.prefix", "relax.show_all_ty").
◆ RegisterReflection()
| static void tvm::PrinterConfigObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::PrinterConfigObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.PrinterConfig" |
, |
|
|
PrinterConfigObj |
, |
|
|
ffi::Object |
|
|
) |
| |
◆ _type_mutable
| constexpr const bool tvm::PrinterConfigObj::_type_mutable = true |
|
staticconstexpr |
◆ binding_names
| ffi::Array<ffi::String> tvm::PrinterConfigObj::binding_names = {} |
A stack that tracks the names of the binding hierarchy.
◆ extra_config
| ffi::Map<ffi::String, ffi::Any> tvm::PrinterConfigObj::extra_config |
Generic extension map for dialect-specific config knobs.
Keys are conventionally namespaced as "<dialect>.<knob>", e.g.: "ir.prefix" — the IR prefix (default "I") "tirx.prefix" — the TIR prefix (default "T") "relax.prefix" — the Relax prefix (default "R") "relax.show_all_ty" — whether to show all Relax type annotations (default true)
Use GetExtraConfig<T>(key, fallback) to read values with a typed fallback.
◆ indent_spaces
| int tvm::PrinterConfigObj::indent_spaces = 4 |
Number of spaces used for indentation.
◆ num_context_lines
| int tvm::PrinterConfigObj::num_context_lines = -1 |
Number of context lines to print around the underlined text.
◆ obj_to_annotate
| ffi::Map<ffi::ObjectRef, ffi::String> tvm::PrinterConfigObj::obj_to_annotate = ffi::Map<ffi::ObjectRef, ffi::String>() |
ffi::Object to be annotated.
◆ obj_to_underline
| ffi::Array<ffi::ObjectRef> tvm::PrinterConfigObj::obj_to_underline = ffi::Array<ffi::ObjectRef>() |
ffi::Object to be underlined.
◆ path_to_annotate
| ffi::Map<ffi::reflection::AccessPath, ffi::String> tvm::PrinterConfigObj::path_to_annotate |
ffi::Object path to be annotated.
◆ path_to_underline
| ffi::Array<ffi::reflection::AccessPath> tvm::PrinterConfigObj::path_to_underline |
◆ print_line_numbers
| bool tvm::PrinterConfigObj::print_line_numbers = false |
Whether to print line numbers.
◆ render_invisible_path_info
| bool tvm::PrinterConfigObj::render_invisible_path_info = true |
Whether to render access-path context for invisible underlined paths. Defaults true.
◆ show_meta
| bool tvm::PrinterConfigObj::show_meta = false |
Whether or not to show metadata.
◆ verbose_expr
| bool tvm::PrinterConfigObj::verbose_expr = false |
Whether or not to verbose print expressions.
The documentation for this class was generated from the following file: