[llvm] Add the 'initializes' attribute langref and support (PR #84803)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 06:55:38 PDT 2024


nikic wrote:

Why did this change back to storing ConstantRangeList in the Attribute rather than the efficient TrailingObjects / ArrayRef representation? If this was just because of the memory leak issue, I think an easy to solve that would have been to a) use the normal Alloc for allocation (instead of a separate SpecificBumpPtrAllocator) and b) add a vector to which all allocated pointers are added. Then in the LLVMContext dtor call the dtors of everything in the vector.

https://github.com/llvm/llvm-project/pull/84803


More information about the llvm-commits mailing list