This is an archive of the discontinued LLVM Phabricator instance.

[polly] In IslNodeBuilder::addParameters() use isl::noexception bindings [NFC]
Needs ReviewPublic

Authored by refactormyself on May 9 2021, 3:51 AM.

Details

Reviewers
Meinersbur
bollu
Summary

C++ bindings in isl_noexception provide better pointer management.
This allows the use of convenient memory management tools in C++.

  • Replace the isl C entities with isl_noexception bindings
  • Refactor calls to this function

No functional changes were made.

Diff Detail

Event Timeline

refactormyself created this revision.May 9 2021, 3:51 AM
refactormyself requested review of this revision.May 9 2021, 3:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2021, 3:51 AM
Meinersbur added inline comments.May 10 2021, 9:12 AM
polly/lib/CodeGen/CodeGeneration.cpp
270

manage( .release()) is redundant: release() removes the smart pointer just for manage() to put it into into a new one.