Skip to content

Commit

Permalink
compiler: Restore macros ordering after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Dec 10, 2024
1 parent 9f248a2 commit c6b6a42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devito/passes/iet/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ def _generate_macros(iet, tracker=None, **kwargs):
headers = sorted((ccode(define), ccode(expr)) for define, expr in headers)

# Generate Macros from higher-level SymPy objects
applications = FindApplications().visit(iet)
headers = set().union(*[_generate_macros(i) for i in applications])
headers.extend(_generate_macros_math(iet))

# Remove redundancies while preserving the order
headers = filter_ordered(headers)

# Some special Symbols may represent Macros defined in standard libraries,
# so we need to include the respective includes
Expand Down

0 comments on commit c6b6a42

Please sign in to comment.