[clang] [CIR] Add support for array cleanups (PR #150499)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 25 06:21:18 PDT 2025
================
@@ -2272,6 +2272,23 @@ def CIR_ArrayCtor : CIR_ArrayInitDestroy<"array.ctor"> {
}];
}
+def CIR_ArrayDtor : CIR_ArrayInitDestroy<"array.dtor"> {
+ let summary = "Destroy array elements with C++ dtors";
+ let description = [{
+ Destroy each array element using the same C++ destructor. This
+ operation has one region, with one single block. The block has an
+ incoming argument for the current array index to initialize.
+
+ ```mlir
----------------
xlauko wrote:
```suggestion
incoming argument for the current array index to initialize.
Example:
```mlir
```
https://github.com/llvm/llvm-project/pull/150499
More information about the cfe-commits
mailing list