================
@@ -4610,32 +4632,41 @@ def CIR_ArrayCtor : CIR_Op<"array.ctor"> {
     Optional<CIR_AnyIntType>:$num_elements
   );
 
-  let regions = (region SizedRegion<1>:$body);
-  let assemblyFormat = [{
-    $addr (`,` $num_elements^)? `:` qualified(type($addr))
-    (`,` type($num_elements)^)? $body attr-dict
-  }];
+  let regions = (region SizedRegion<1>:$body, AnyRegion:$partial_dtor);
+  let hasCustomAssemblyFormat = 1;
----------------
xlauko wrote:

is custom format really needed, isn't it just:
```
  $addr (`,` $num_elements^)? `:` qualified(type($addr))
  (`,` type($num_elements)^)? $body
  (`partial_dtor` $partial_dtor^)?
  attr-dict
```

https://github.com/llvm/llvm-project/pull/190834
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to