[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 03:28:09 PDT 2025
================
@@ -1419,6 +1419,48 @@ def CallOp : CIR_CallOpBase<"call", [NoRegionArguments]> {
}]>];
}
+//===----------------------------------------------------------------------===//
+// StackSave & StackRestoreOp
+//===----------------------------------------------------------------------===//
+
+def StackSaveOp : CIR_Op<"stack_save"> {
----------------
AmrDeveloper wrote:
> nit: Also any reason not to mirror llvm names, i.e. to have cir.stacksave and cir.stackrestore?
I found that we use the same name pattern in general, for example `get_global`, `ptr_stride ` ...etc, but I think in this case we can mirror the llvm names, I will update it
https://github.com/llvm/llvm-project/pull/136426
More information about the cfe-commits
mailing list