[PATCH] D39971: Port ScopInfo to the isl cpp bindings
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 19 10:25:59 PST 2017
Meinersbur added a comment.
Looks great (whatever you decide to to with the inline comment)
================
Comment at: lib/Analysis/ScopInfo.cpp:3383
-Scop::~Scop() {
- isl_set_free(Context);
- isl_set_free(AssumedContext);
- isl_set_free(InvalidContext);
- isl_schedule_free(Schedule);
-
- ParameterIds.clear();
-
- for (auto &AS : RecordedAssumptions)
- isl_set_free(AS.Set);
-
- // Free the alias groups
- for (MinMaxVectorPairTy &MinMaxAccessPair : MinMaxAliasGroups) {
- for (MinMaxAccessTy &MMA : MinMaxAccessPair.first) {
- isl_pw_multi_aff_free(MMA.first);
- isl_pw_multi_aff_free(MMA.second);
- }
- for (MinMaxAccessTy &MMA : MinMaxAccessPair.second) {
- isl_pw_multi_aff_free(MMA.first);
- isl_pw_multi_aff_free(MMA.second);
- }
- }
-
- for (const auto &IAClass : InvariantEquivClasses)
- isl_set_free(IAClass.ExecutionContext);
-
- // Explicitly release all Scop objects and the underlying isl objects before
- // we release the isl context.
- Stmts.clear();
- ScopArrayInfoSet.clear();
- ScopArrayInfoMap.clear();
- ScopArrayNameMap.clear();
- AccessFunctions.clear();
-}
+Scop::~Scop() = default;
----------------
Could we just remove the dtor? Or declare `= default` in the header? Is there is a motivation to make it more explicit that there is a default dtor?
https://reviews.llvm.org/D39971
More information about the llvm-commits
mailing list