[clang] [CIR] Add support for array delete handling (PR #184827)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 10:00:12 PST 2026


================
@@ -3589,6 +3589,43 @@ def CIR_LLVMIntrinsicCallOp : CIR_Op<"call_llvm_intrinsic"> {
   ];
 }
 
+//===----------------------------------------------------------------------===//
+// DeleteArrayOp
+//===----------------------------------------------------------------------===//
+
+def CIR_DeleteArrayOp : CIR_Op<"delete_array"> {
+  let summary = "Delete address representing an array";
+  let description = [{
+    `cir.delete_array` operation deletes an array. For example, `delete[] ptr;`
+    will be translated to `cir.delete.array %ptr`.
----------------
AmrDeveloper wrote:

Can you please add the Example section in the op

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


More information about the cfe-commits mailing list