-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flang] Move genMinMaxlocReductionLoop to a common location.
The shared library build doesn't like references of genMinMaxlocReductionLoop, in Optimizer/Transforms, from HLFIR/Optimizer/Transforms. For the moment I've moved the code to the header file where it can be shared, like other methods in Utils.h
- Loading branch information
1 parent
b0b7be2
commit 202917f
Showing
2 changed files
with
128 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
202917f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clementval had to do 2572f45 after this commit. It does not look right that
FIRDialect
component depends on the HLFIR dialect generated files. I guess it is not that broken as it could be if we had to makeFIRDialect
component dependent onHLFIRDialect
component, but it still looks awkward. Can we extract this utilities into a separate component somewhere inlib/Optimizer/Transforms/Utils
, and set up the dependencies on FIR and HLFIR there?202917f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello. Yeah I can try and work on that. I didn't find a great place for it when I was looking, it might need somewhere new. I'll see what I can figure out.
202917f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!