Alex Zinenko 46c8422d83 [mlir][transform] change RaggedArray internals
Change the internal storage scheme from storing a MutableArrayRef to
storing an explicit offset+length pair. Storing an ArrayRef is dangerous
because it contains the pointer to the first element in the range, but
the entire storage vector may be reallocated, making the pointer
dangling. We don't know when the reallocation happends, so we can't
update the ArrayRefs. Store the explicit offset instead and construct
ArrayRefs on-the-fly.

Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D146239
2023-03-16 23:13:53 +00:00
..
2023-03-15 22:55:35 -07:00

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.