tvm_tirx.ir.transform.Pass#
- class tvm_tirx.ir.transform.Pass(*args, **kwargs)#
Bases:
ObjectBase interface for callable IRModule transformations and analyses.
Obtain a concrete pass from a pass factory,
module_pass(), ortvm_tirx.tirx.transform.function_pass(), then callafter = pass_object(before): a pass takes an IRModule and returns the transformed IRModule. The call runs under the currentPassContext, whose instruments observe it. A direct call always runs the pass; the optimization level and therequired_pass/disabled_passoptions apply when aSequentialruns it. Theinfoproperty exposes its name and optimization level. The base class defines no transformation of its own.Examples
from tvm_tirx import tirx simplify = tirx.transform.StmtSimplify() after = simplify(mod) print(simplify.info.name) # tirx.StmtSimplify
- Parameters:
args (Any)
kwargs (Any)
- property info#
Get the pass meta.