(
self,
module,
example_inputs,
target_config: Optional[CortexMTargetConfig] = None,
)
| 79 | |
| 80 | class CortexMTester(TesterBase): |
| 81 | def __init__( |
| 82 | self, |
| 83 | module, |
| 84 | example_inputs, |
| 85 | target_config: Optional[CortexMTargetConfig] = None, |
| 86 | ): |
| 87 | if callable(example_inputs): |
| 88 | resolved_example_inputs = example_inputs() |
| 89 | else: |
| 90 | resolved_example_inputs = example_inputs |
| 91 | target_config = target_config or CortexMTargetConfig(cpu=CortexM.M55) |
| 92 | stage_classes: dict[StageType, Callable[..., Any]] = dict( |
| 93 | cortex_m_stage_classes |
| 94 | ) |
| 95 | stage_classes[StageType.RUN_PASSES] = lambda: CortexMRunPasses( |
| 96 | target_config=target_config |
| 97 | ) |
| 98 | super().__init__(module, resolved_example_inputs, stage_classes) |
| 99 | |
| 100 | def test_dialect( |
| 101 | self, |
nothing calls this directly
no test coverage detected