Expand description
Passes and the context they run in.
The objects python/tvm_tirx/ir/transform/core.py defines. A Pass carries its
PassInfo (name and optimization level); ModulePass and Sequential are passes over a
module. A PassContext holds the optimization level, the required and disabled passes, the
configuration and the instruments of a run; PassContext::enter makes it current.
Structs§
- Opaque: parent ‘transform.Pass’ is opaque (layout-unknown). Fields are read through the C ABI getters.
- Complete: reflected fields fill [24, 64) exactly (alignment padding [28, 32)).
- A pass context in effect while it is alive:
PassContext::enter. - Complete: reflected fields fill [24, 48) exactly (alignment padding [28, 32)).
- Opaque: bytes [40, 48) of [24, 48) are not accounted for by reflected fields. Fields are read through the C ABI getters.
- Opaque: no metadata of its own: total_size is unknown. Fields are read through the C ABI getters.
- Opaque: parent ‘transform.Pass’ is opaque (layout-unknown). Fields are read through the C ABI getters.
Functions§
- The pass that logs
headerand the module, which it returns unchanged (transform.PrintIR).