[llvm] [RISCV][GISEL] Legalize G_VAARG through expansion. (PR #73065)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 18:28:23 PST 2023
================
@@ -0,0 +1,82 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
+# RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - | FileCheck %s
+
+# On RISC-V, the MinStackArgumentAlignment is 1 and the ABI Alignment for p0 is
+# greater than 1, so we will always generate code to adjust for this alignment.
+
+--- |
+ define void @va_arg_i32(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4, ptr %5, ptr %6, ptr %7, ...) {
----------------
arsenm wrote:
Don't need the IR section, just drop the name from the stack section
https://github.com/llvm/llvm-project/pull/73065
More information about the llvm-commits
mailing list