This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Reviewers
Meinersbur
bollu
Summary

The 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:54 AM
refactormyself requested review of this revision.May 9 2021, 3:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2021, 3:54 AM
Meinersbur added inline comments.May 10 2021, 9:23 AM
polly/lib/CodeGen/IslNodeBuilder.cpp
453

In addition to converting the function arguments, please also use the smart pointer inside the method.