[llvm] [AArch64][GlobalISel] Implement selectVaStartAAPCS (PR #106979)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 04:42:47 PDT 2024


================
@@ -0,0 +1,569 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=aarch64-unknown-linux-gnu -O0 -global-isel=0 -o - < %s | FileCheck %s --check-prefixes=CHECK,CHECK-SD
+; RUN: llc -mtriple=aarch64-unknown-linux-gnu -O0 -global-isel=1 -global-isel-abort=1 -o - < %s | FileCheck %s --check-prefixes=CHECK,CHECK-GI
+
+target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
+
+%struct.__va_list = type { ptr, ptr, ptr, i32, i32 }
+
+declare void @llvm.va_start(ptr) nounwind
+declare void @llvm.va_end(ptr) nounwind
+declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture)
+declare void @llvm.va_start.p0(ptr)
+declare void @llvm.va_end.p0(ptr)
+declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture)
+
+; To make the outputs more readable
+attributes #0 = { uwtable "frame-pointer"="all" }
----------------
arsenm wrote:

Attribute groups go at the end 

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


More information about the llvm-commits mailing list