================
@@ -2855,6 +2855,95 @@ def CIR_CallOp : CIR_CallOpBase<"call",
[NoRegionArguments]> {
];
}
+def CIR_TryCallOp : CIR_CallOpBase<"try_call",[
+ Terminator
+]> {
+ let summary = "try_call operation";
+ let description = [{
+ Mostly similar to `cir.call` but requires two destination
+ branches, one for follow on regular control-flow, and the other
+ one for handling exceptions in case it's thrown.
----------------
andykaylor wrote:
```suggestion
blocks, one which is used if the call returns without throwing an
exception (the "normal" destination) and another which is used
if an exception is thrown (the "unwind" destination).
```
https://github.com/llvm/llvm-project/pull/165303
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits