This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Refactoring isReductionParallel() and getMinimalDependenceDistance() from Integer Set Libarary(ISL) to take the C++ wrapper
Needs RevisionPublic

Authored by prateekpardeshi on Mar 17 2021, 2:11 AM.

Details

Reviewers
Meinersbur
bollu
Summary

Polly use algorithms from the Integer Set Library (isl), which is a library written in C and which is incompatible with the rest of the LLVM as it is written in C++.

Changes made:

  • Refactoring isReductionParallel() and getMinimalDependenceDistance() to take C++ bindings instead of reference-counting in C isl lib.
  • Addition of manage_copy() to be used as reference for C objects instead of isReductionParallel() and getMinimalDependenceDistance()

Tests:

  • ninja opt: Passed ✔️
  • ninja check-polly-tests : Passed ✔️
  • ninja polly-update-format: Passed ✔️

Diff Detail

Event Timeline

prateekpardeshi requested review of this revision.Mar 17 2021, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 2:12 AM

Thank for the patch.

Could you change "Refabricating" to "Refactor"? It refers to Code Refactoring.

polly/include/polly/CodeGen/IslAst.h
162–163

For the refactoring of this function to be complete, can you also make it return a isl::pw_aff?

prateekpardeshi retitled this revision from [Polly] Refabricating isReductionParallel() and getMinimalDependenceDistance() from Integer Set Libarary(ISL) to take the C++ wrapper to [Polly] Refractoring isReductionParallel() and getMinimalDependenceDistance() from Integer Set Libarary(ISL) to take the C++ wrapper.Mar 17 2021, 7:41 AM
prateekpardeshi edited the summary of this revision. (Show Details)
prateekpardeshi retitled this revision from [Polly] Refractoring isReductionParallel() and getMinimalDependenceDistance() from Integer Set Libarary(ISL) to take the C++ wrapper to [Polly] Refactoring isReductionParallel() and getMinimalDependenceDistance() from Integer Set Libarary(ISL) to take the C++ wrapper.Mar 17 2021, 7:45 AM
prateekpardeshi updated this revision to Diff 331266.EditedMar 17 2021, 7:50 AM

Changes made:
making changes in code

Changes made:
making changes in code

For future updates, could you be more detailed?

polly/include/polly/CodeGen/IslAst.h
162–163

Removing __isl_give is not the change I asked for,

Meinersbur requested changes to this revision.Mar 31 2021, 12:46 PM
This revision now requires changes to proceed.Mar 31 2021, 12:46 PM