This is an archive of the discontinued LLVM Phabricator instance.

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

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

With isl::ast_node, we prefer using its accessor methods over calling the C API.

840–841

same here