[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 21 01:06:22 PDT 2025


================
@@ -1419,6 +1419,48 @@ def CallOp : CIR_CallOpBase<"call", [NoRegionArguments]> {
     }]>];
 }
 
+//===----------------------------------------------------------------------===//
+// StackSave & StackRestoreOp
+//===----------------------------------------------------------------------===//
+
+def StackSaveOp : CIR_Op<"stack_save"> {
----------------
xlauko wrote:

nit: These should probably mention that operations correspond and mirror semantics of  `llvm.stacksave` and `llvm.stackrestore` intrinsics.

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


More information about the cfe-commits mailing list