[compiler-rt] [RISCV][compiler-rt] Asm funcs should be hidden (PR #226633)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 00:12:42 PDT 2026


================
@@ -21,229 +21,163 @@
 // For the ilp32e/lp64e abis, entry points are grouped into 1s, since this is
 // the minimum grouping which will maintain the required 4-byte stack alignment.
 
-  .text
+#include "assembly.h"
+
+TEXT_SECTION
+
+// Like DEFINE_COMPILERRT_FUNCTION but without:
+// - Section change (TEXT_SECTION)
+// - Subsections via symbols (FILE_LEVEL_DIRECTIVE)
+//
+// This is needed because `__riscv_restore_<N>` could fallthrough to a later
+// `__riscv_restore_<N>` tail.
+#define DEFINE_COMPILERRT_OVELAPPING_FUNCTION(name) \
----------------
arichardson wrote:

Should this go into assembly.h instead? We are reusing it again in the other file, and I could imagine this being useful for other architectures too?

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


More information about the llvm-commits mailing list