Pass metrics
pass_metrics
¶
count_number_of_operations(module: ModuleOp) -> dict[str, int]
¶
This function takes a ModuleOp and returns a dictionary containing the number of occurences of each Operation in the ModuleOp.
Source code in xdsl/interactive/pass_metrics.py
get_diff_operation_count(input_operation_count_tuple: tuple[tuple[str, int], ...], output_operation_count_tuple: tuple[tuple[str, int], ...]) -> tuple[tuple[str, int, str], ...]
¶
Function returning a tuple of tuples containing the diff of the input and output operation name and count.