[compiler-rt] [AArch64][compiler-rt] Guard sme-abi-vg.c with !defined(DISABLE_AARCH64_FMV) (PR #94973)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 05:48:34 PDT 2024


https://github.com/kmclaughlin-arm created https://github.com/llvm/llvm-project/pull/94973

This prevents build failures when building with `DISABLE_AARCH64_FMV`,
see https://github.com/llvm/llvm-project/pull/92921.

>From f946f33d98b721263ce8fcffa2e32bc5f2094b88 Mon Sep 17 00:00:00 2001
From: Kerry McLaughlin <kerry.mclaughlin at arm.com>
Date: Mon, 10 Jun 2024 12:27:29 +0000
Subject: [PATCH] [AArch64][compiler-rt] Guard sme-abi-vg.c with
 !defined(DISABLE_AARCH64_FMV)

---
 compiler-rt/lib/builtins/aarch64/sme-abi-vg.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compiler-rt/lib/builtins/aarch64/sme-abi-vg.c b/compiler-rt/lib/builtins/aarch64/sme-abi-vg.c
index e384ab7f87c46..273f49020079d 100644
--- a/compiler-rt/lib/builtins/aarch64/sme-abi-vg.c
+++ b/compiler-rt/lib/builtins/aarch64/sme-abi-vg.c
@@ -4,6 +4,8 @@
 
 #include "../cpu_model/aarch64.h"
 
+#if !defined(DISABLE_AARCH64_FMV)
+
 struct FEATURES {
   long long features;
 };
@@ -43,3 +45,5 @@ __arm_get_current_vg(void) __arm_streaming_compatible {
 
   return 0;
 }
+
+#endif // !defined(DISABLE_AARCH64_FMV)



More information about the llvm-commits mailing list