[llvm] TableGen: Allow defining sets of runtime libraries (PR #144978)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 19:30:06 PDT 2025


================
@@ -889,7 +889,41 @@ def memset : RuntimeLibcallImpl<MEMSET>;
 def calloc : RuntimeLibcallImpl<CALLOC>;
 
 } // End let IsDefault = true
-} // End defset DefaultRuntimeLibcallImpls
+} // End defset AllDefaultRuntimeLibcallImpls
+
+
+// FIXME: Should move to explicit opt-in to different sets of libcalls
+// instead of trying to remove from a default set. We have
+// unreasonable defaults like reporting f80 calls on most targets when
+// they are relevant to only one.
+
+defvar AllDefaultLibCalls =
+    !foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides);
+
+// These libcalls are only available in compiler-rt, not libgcc for
+// 32-bit arch.
+defvar LibCallsCompilerRT64OrLibGCC = [
----------------
arsenm wrote:

This comment was just copied from the old exclusion list in RuntimeLibcalls.cpp, this just logically inverted how it works 

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


More information about the llvm-commits mailing list