Skip to content

Commit

Permalink
Fix handling of intrinsic transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
mcopik authored and pratyai committed Nov 4, 2024
1 parent 6b9d28f commit 5d22609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dace/frontend/fortran/fortran_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ def create_ast_from_string(
program = ast_transforms.ArrayToLoop(program).visit(program)

for transformation in own_ast.fortran_intrinsics().transformations():
program = transformation(program).visit(program)
transformation.initialize(program)
program = transformation.visit(program)

program = ast_transforms.ForDeclarer().visit(program)
program = ast_transforms.IndexExtractor(program, normalize_offsets).visit(program)
Expand Down Expand Up @@ -1174,7 +1175,8 @@ def create_sdfg_from_fortran_file(source_string: str, use_experimental_cfg_block
program = ast_transforms.ArrayToLoop(program).visit(program)

for transformation in own_ast.fortran_intrinsics():
program = transformation(program).visit(program)
transformation.initialize(program)
program = transformation.visit(program)

program = ast_transforms.ForDeclarer().visit(program)
program = ast_transforms.IndexExtractor(program).visit(program)
Expand Down

0 comments on commit 5d22609

Please sign in to comment.