[llvm-bugs] [Bug 49824] New: [Meta] Prefer C++ wrapper API for ISL.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 2 18:34:48 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49824

            Bug ID: 49824
           Summary: [Meta] Prefer C++ wrapper API for ISL.
           Product: Polly
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: isl
          Assignee: polly-dev at googlegroups.com
          Reporter: llvm at meinersbur.de
                CC: llvm-bugs at lists.llvm.org

The ISL C++ wrapper library isl-noexceptions.h manages resources using RAII.
Manually allocation and releasing ISL object led to many use-after-free bugs
and resource leaks (which ISL complains about in isl_ctx_free). RAII makes this
resource handling less error prone. In addition, the C++ wrapper provides
mechanisms to ensure that errors are not silently ignored, for instance, when
the operation limit is reached.

This is a meta-bug since there are too many function not yet using the C++
wrapper to track them individually.

Recent reviews for converting use of the C APU to C++ include:
https://reviews.llvm.org/D98765
https://reviews.llvm.org/D98455
https://reviews.llvm.org/D97751
https://reviews.llvm.org/D97425

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210403/8ae48c28/attachment-0001.html>


More information about the llvm-bugs mailing list