Skip to content

Commit

Permalink
#2704 Update changelog and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergisiso committed Jan 13, 2025
1 parent 83f7483 commit e8273f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
10) PR #2810. Adds caching of the fparser2 parse tree to FileInfo. Is
disabled by default.

11) PR #2814 for #2704. Adds backward accesses capabilities to the
DefinitionUseChain tool.

release 3.0.0 6th of December 2024

1) PR #2477 for #2463. Add support for Fortran Namelist statements.
Expand Down
6 changes: 3 additions & 3 deletions doc/developer_guide/dependency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,12 @@ can be parallelised:
DefinitionUseChain
==================
PSyclone also provides a DefinitionUseChain class, which can search for forward
dependencies (backward NYI) for a given Reference inside a region of code. This
and backward dependencies for a given Reference inside a region of code. This
implementation differs from the DependencyTools as it is control-flow aware, so
can find many dependencies for a single Reference in a given Routine or scope.

This is primarily used to implement the `References.next_accesses` function, but can be
used directly as follows:
This is primarily used to implement the `Reference.next_accesses` and
`Reference.previous_accessess` functions, but can be used directly as follows:

.. code::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ def test_definition_use_chain_find_backward_accesses_loop_example(
# Second a = A + i
# Third (?) is A = a + i
# Last is A = 1
print(reaches[0].parent.debug_string())
print(reaches[1].parent.debug_string())
print(reaches[2].parent.debug_string())
assert len(reaches) == 4
assert (
reaches[0] is routine.children[1].loop_body.children[1].rhs.children[0]
Expand Down Expand Up @@ -460,7 +457,6 @@ def test_definition_use_chain_find_backward_accesses_codeblock_and_call_cflow(
chains = DefinitionUseChain(routine.children[2].rhs.children[0])
reaches = chains.find_backward_accesses()
assert len(reaches) == 2
print([x.parent.debug_string() for x in reaches])
assert reaches[0] is routine.children[1].if_body.children[1].children[1]
assert reaches[1] is routine.children[0]

Expand Down

0 comments on commit e8273f0

Please sign in to comment.