[clang] [CIR] Upstream TryCallOp (PR #165303)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 25 14:47:39 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list