[llvm] [RISCV][GISel] Legalize G_STACKSAVE/RESTORE. (PR #108438)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 12:14:20 PDT 2024


================
@@ -0,0 +1,66 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
+; RUN: llc -global-isel=1 -mtriple=riscv32 -o - %s | FileCheck %s --check-prefix=RV32
+; RUN: llc -global-isel=1 -mtriple=riscv64 -o - %s | FileCheck %s --check-prefix=RV64
+
+declare void @use_addr(ptr)
+declare ptr @llvm.stacksave.p0()
+declare void @llvm.stackrestore.p0(ptr)
+
----------------
tschuett wrote:

https://discourse.llvm.org/t/recent-improvements-to-the-ir-parser/77366
At least the llvm. intrinsics are probably waste of space.

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


More information about the llvm-commits mailing list