Skip to content

Commit

Permalink
#1990 Re-fixed handling of intrinsics ... which had disappeared.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Dec 8, 2023
1 parent 6bfde30 commit ba60dba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/psyclone/psyir/tools/call_tree_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
''' This module provides tools analyse the sequence of calls
across different subroutines and modules.'''

from psyclone.psyir.nodes.call import Call
from psyclone.psyir.nodes import Reference, Routine
from psyclone.psyir.nodes import (Call, Container, IntrinsicCall, Reference,
Routine)
from psyclone.psyir.symbols import (ArgumentInterface, ImportInterface)
from psyclone.core import Signature, VariablesAccessInfo

Expand Down Expand Up @@ -73,9 +73,6 @@ def _compute_non_locals_references(reference, sym):
:rtype: Union[None, Tuple[str, str, str]]
'''
# Circular import:
# pylint: disable=import-outside-toplevel
from psyclone.psyir.nodes.container import Container
node = reference
while node:
# A routine has its own name as a symbol in its symbol table.
Expand Down Expand Up @@ -138,6 +135,10 @@ def _compute_all_non_locals(self, routine):
Signature(access.name)))
continue

if isinstance(access, IntrinsicCall):
# Intrinsic calls can be ignored
continue

Check warning on line 140 in src/psyclone/psyir/tools/call_tree_utils.py

View check run for this annotation

Codecov / codecov/patch

src/psyclone/psyir/tools/call_tree_utils.py#L140

Added line #L140 was not covered by tests

if isinstance(access, Call):
sym = access.routine
if isinstance(sym.interface, ImportInterface):
Expand Down

0 comments on commit ba60dba

Please sign in to comment.