[clang] [CIR] Upstream handling for delete array (PR #165225)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 3 23:50:43 PST 2025
================
@@ -4089,6 +4089,24 @@ def CIR_PrefetchOp : CIR_Op<"prefetch"> {
}];
}
+//===----------------------------------------------------------------------===//
+// 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`.
+ }];
+
+ let arguments = (ins CIR_PointerType:$address);
+
+ let assemblyFormat = [{
+ $address `:` type($address) attr-dict
----------------
xlauko wrote:
```suggestion
$address `:` qualified(type($address)) attr-dict
```
https://github.com/llvm/llvm-project/pull/165225
More information about the cfe-commits
mailing list