From d66b19b083bc83d6cfa9cf286e4ef210438c4a7d Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Thu, 19 Dec 2024 20:54:24 +0800 Subject: [PATCH] remove duplicate BranchLoop class --- slothy/targets/arm_v7m/arch_v7m.py | 90 ------------------------------ 1 file changed, 90 deletions(-) diff --git a/slothy/targets/arm_v7m/arch_v7m.py b/slothy/targets/arm_v7m/arch_v7m.py index 9645c71a..51da51b3 100644 --- a/slothy/targets/arm_v7m/arch_v7m.py +++ b/slothy/targets/arm_v7m/arch_v7m.py @@ -514,96 +514,6 @@ def end(self, other, indentation=0): yield f'{indent}subs {other["cnt"]}, {other["reg1"]}, {other["imm"]}' # `subs` sets flags yield f'{indent}bne {lbl_start}' -class BranchLoop(Loop): - def __init__(self, lbl="lbl", lbl_start="1", lbl_end="2", loop_init="lr") -> None: - super().__init__(lbl_start=lbl_start, lbl_end=lbl_end, loop_init=loop_init) - self.lbl = lbl - self.lbl_regex = r"^\s*(?P