From 50cc5fcc072fa40f138d7587c548ea77a67e436a Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Fri, 27 Sep 2024 09:25:19 +0200 Subject: [PATCH] Clean up --- src/pystencils/backends/arm_instruction_sets.py | 4 +++- src/pystencils/backends/riscv_instruction_sets.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pystencils/backends/arm_instruction_sets.py b/src/pystencils/backends/arm_instruction_sets.py index 3e50d5f45..92494205a 100644 --- a/src/pystencils/backends/arm_instruction_sets.py +++ b/src/pystencils/backends/arm_instruction_sets.py @@ -1,3 +1,6 @@ +from pystencils.typing import CFunction + + def get_argument_string(function_shortcut, first=''): args = function_shortcut[function_shortcut.index('[') + 1: -1] arg_string = "(" @@ -87,7 +90,6 @@ def get_vector_instruction_set_arm(data_type='double', instruction_set='neon'): result[intrinsic_id] = prefix + name + suffix + undef + arg_string if instruction_set in ['sve', 'sme']: - from pystencils.backends.cbackend import CFunction result['width'] = CFunction(width, "int") result['intwidth'] = CFunction(intwidth, "int") else: diff --git a/src/pystencils/backends/riscv_instruction_sets.py b/src/pystencils/backends/riscv_instruction_sets.py index e456c2b8c..885869a75 100644 --- a/src/pystencils/backends/riscv_instruction_sets.py +++ b/src/pystencils/backends/riscv_instruction_sets.py @@ -1,3 +1,6 @@ +from pystencils.typing import CFunction + + def get_argument_string(function_shortcut, last=''): args = function_shortcut[function_shortcut.index('[') + 1: -1] arg_string = "(" @@ -78,7 +81,6 @@ def get_vector_instruction_set_riscv(data_type='double', instruction_set='rvv'): result[intrinsic_id] = prefix + name + suffix2 + arg_string - from pystencils.backends.cbackend import CFunction result['width'] = CFunction(width, "int") result['intwidth'] = CFunction(intwidth, "int") -- GitLab