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

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 21 12:25:56 PDT 2025


================
@@ -1419,6 +1419,50 @@ def CallOp : CIR_CallOpBase<"call", [NoRegionArguments]> {
     }]>];
 }
 
+//===----------------------------------------------------------------------===//
+// StackSave & StackRestoreOp
+//===----------------------------------------------------------------------===//
+
+def StackSaveOp : CIR_Op<"stacksave"> {
+  let summary = "remembers the current state of the function stack";
+  let description = [{
+    Remembers the current state of the function stack. Returns a pointer
----------------
andykaylor wrote:

```suggestion
    Saves current state of the function stack. Returns a pointer to an opaque object
```

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


More information about the cfe-commits mailing list