tvm_tirx.script.parser.protocol_registry#
Static syntax policies keyed by registered builder namespace paths.
Each language variant registers its namespace through register_namespace and supplies
explicit canonical keys such as tirx.int32 or relax.Tensor at its marker sites.
The first registered alias names that namespace. Source aliases normalize to this
same root; only direct root members select special syntax. Parser consumers read
the internal metadata tables directly. Ordinary captured callables, local aliases,
instance methods and descriptors do not acquire syntax policies through identity
or receiver inference.
Tables retain static syntax facts only, never source functions, captures, frames
or constructed results. Registration decorators return the same callable.
Shared builder operations are documented in
tvm_tirx.script.ir_builder.parser_protocol; concrete language variants own registration
and namespace initialization.
Functions#
|
Register the dtype of a fixed scalar annotation without evaluating it. |
|
Register persistent mutable storage syntax at a fixed namespace path. |