(towards #2971) move parallel region trans#2972
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2972 +/- ##
=======================================
Coverage 99.91% 99.92%
=======================================
Files 364 365 +1
Lines 51781 51785 +4
=======================================
+ Hits 51739 51744 +5
+ Misses 42 41 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@arporter @sergisiso this is ready for review |
There was a problem hiding this comment.
Hi @victoria-atkinson - looks good and tests all pass, I've got a couple of minor changes regarding documentation and "pythonicness" that would be good to fit in while we're updating this code.
In the mean time I'll set the integration tests as the remaining changes won't affect them.
|
Hi @victoria-atkinson - one tiny documentation thing to fix then I'll build all the documentation and should be ready to merge. |
|
Going to resubmit integration test to double check. |
LonelyCat124
left a comment
There was a problem hiding this comment.
Hi @vkatkinson - almost good now - I missed a couple of things in my last review.
We want most things to importable from the psyclone.psyir.transformations level or equivalent, so there needs to be an import of the Transformation in the __init__.py in that directory - for now that will mean that its importable from psyclone.psyir.transformations and psyclone.transformations, but I'm ok with this change and don't want a deprecation warning yet - we can add that later once all transformations are removed from transformations.py.
Alongside that change, can you try changing the import in transformations.py to just use the from psyclone.psyir.transformations import ParallelRegionTrans. If it breaks everything due to a cyclical import then leave it as it is, but I'm hoping it should work.
Also can you also move the location of the Sphinx AutoAPI declaration for this transformation from transformations.py to __init__.py (see line 3080 of transformations.py).
|
@LonelyCat124 thanks Aidan. Think I've covered all your suggested changes. |
|
Happy with this now, will merge. |
No description provided.