================
@@ -3589,6 +3589,45 @@ 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`.
+
+ When present, the AST attribute provides the CXXDeleteExpr for generating
----------------
erichkeane wrote:
I quite dislike the AST being in here. What details do we need from the
expression that we cant already lower?
https://github.com/llvm/llvm-project/pull/185134
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits