Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small parsing fixes #190

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Small parsing fixes #190

merged 3 commits into from
Nov 21, 2023

Conversation

awnawab
Copy link
Contributor

@awnawab awnawab commented Nov 16, 2023

This PR adds two small parsing fixes:

  • The REGEX frontend can now parse member functions where the result variable has a specified kind
  • Statement function result variables are now allowed to share a declaration with other variables

With these changes, Loki can successfully parse the refactored LAPINEA/LAPINEB kernels.

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a851213) 92.16% compared to head (e19083c) 92.16%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   92.16%   92.16%           
=======================================
  Files          93       93           
  Lines       16792    16793    +1     
=======================================
+ Hits        15477    15478    +1     
  Misses       1315     1315           
Flag Coverage Δ
lint_rules 96.22% <ø> (ø)
loki 92.13% <100.00%> (+<0.01%) ⬆️
transformations 91.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/190/index.html

@awnawab awnawab marked this pull request as ready for review November 17, 2023 09:19
Copy link
Collaborator

@mlange05 mlange05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me, so GTG from my side. Would like @reuterbal to have a quick look though too, as this stuff is complex. 👍

Copy link
Collaborator

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, looks great! Changes seem safe to me.

loki/backend/fgen.py Outdated Show resolved Hide resolved
loki/backend/fgen.py Outdated Show resolved Hide resolved
@reuterbal
Copy link
Collaborator

Looks great now, merging!

@reuterbal reuterbal merged commit 539e57f into main Nov 21, 2023
11 checks passed
@reuterbal reuterbal deleted the naan-parsing-fixes branch November 21, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants