[clang] [CIR] Upstream TryCallOp (PR #165303)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 12:38:10 PST 2025


================
@@ -2707,6 +2707,98 @@ def CIR_CallOp : CIR_CallOpBase<"call", [NoRegionArguments]> {
   ];
 }
 
+def CIR_TryCallOp : CIR_CallOpBase<"try_call",[
----------------
andykaylor wrote:

This should probably have a verifier. The two destinations need to be valid blocks in the same region as the caller, and the landing pad destination needs to be a landing pad (though I'm not sure exactly how to verify that and it probably can't be done yet).

https://github.com/llvm/llvm-project/pull/165303


More information about the cfe-commits mailing list