Scope of changes:
- Moved addUserAssumptions function to ScopBuilder class.
- Moved buildConditionSets functions to polly namespace.
- Moved getRepresentingInvariantLoadSCEV to public section of the Scop class
Paths
| Differential D65241
[Polly][NFC][ScopBuilder] Move addUserAssumptions to ScopBuilder ClosedPublic Authored by domada on Jul 24 2019, 1:23 PM.
Details Summary Scope of changes:
Diff Detail Event TimelineComment Actions [remark] Summary: getRepresentingInvariantLoadSCEV is already in the Scop class. Did you want to say changing its visibility to public? [serious] buildConditionSets is now in the ScopInfo header and therefore made made accessible to the world. This is the opposite of the goal of moving things to ScopBuilder. Is this maybe an intermediate step before also moving buildConditionSets to ScopBuilder?
Comment Actions
Indeed. I want to make it public, because I think that it can be hellpful in the future if we want to remove friendship between ScopBuilder and Scop class. I have fixed summary.
Yes. It is an intermediate step. I have noticed, that buildConditionSets functions are also used by buildDomains which are still inside Scop class. In the next step I want to move buildDomains and buildConditionSets to ScopBuilder. Maybe you can make a final review when I propose next patch with moved buildDomains functions? Comment Actions
Sure Comment Actions https://reviews.llvm.org/D65729 -> this patch moves buildConditionSets functions to ScopBuilder class. It is not possible to move them enterily in patch 65241 because some Scop functions use these functions. That's why I have decided to make them visible by adding their declaration to ScopInfo.h file. Patch 65729 solves this dependency and it moves all buildConditionSets functions to ScopBuilder class. This revision is now accepted and ready to land.Aug 5 2019, 3:32 PM Closed by commit rL368089: [NFC][ScopBuilder] Move addUserAssumptions to ScopBuilder (authored by domada). · Explain WhyAug 6 2019, 2:25 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 211592 polly/include/polly/ScopBuilder.h
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp
|
[nit] Missing space before doxygen comment