[llvm] 77bcde6 - RuntimeLibcalls: Stop using defset for default calls (#147651)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 12 18:47:48 PDT 2025
Author: Matt Arsenault
Date: 2025-07-13T10:47:45+09:00
New Revision: 77bcde657b6107ed8f0918ea5aea9005b08817ab
URL: https://github.com/llvm/llvm-project/commit/77bcde657b6107ed8f0918ea5aea9005b08817ab
DIFF: https://github.com/llvm/llvm-project/commit/77bcde657b6107ed8f0918ea5aea9005b08817ab.diff
LOG: RuntimeLibcalls: Stop using defset for default calls (#147651)
This is redundant with the IsDefault field, so avoid a really
long enclosing pair of braces. This will make it easier to gradually
remove calls from the default set.
Added:
Modified:
llvm/include/llvm/IR/RuntimeLibcalls.td
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td
index ec08bdcb5a6db..ebea7ec533c32 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.td
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.td
@@ -430,7 +430,6 @@ def OBJC_SYNC_EXIT : RuntimeLibcall;
// Define implementation default libcalls
//--------------------------------------------------------------------
-defset list<RuntimeLibcallImpl> AllDefaultRuntimeLibcallImpls = {
let IsDefault = true in {
//--------------------------------------------------------------------
@@ -936,7 +935,6 @@ def memset : RuntimeLibcallImpl<MEMSET>;
def calloc : RuntimeLibcallImpl<CALLOC>;
} // End let IsDefault = true
-} // End defset AllDefaultRuntimeLibcallImpls
//--------------------------------------------------------------------
// Define implementation other libcalls
@@ -1027,8 +1025,8 @@ defset list<RuntimeLibcallImpl> LibmF128FiniteLibcalls = {
// unreasonable defaults like reporting f80 calls on most targets when
// they are relevant to only one.
-defvar AllDefaultLibCalls =
- !foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides);
+defvar AllDefaultRuntimeLibcallImpls
+ = !filter(entry, !instances<RuntimeLibcallImpl>(), entry.IsDefault);
// Exist in libgcc and compiler-rt for 64-bit targets, or if
// COMPILER_RT_ENABLE_SOFTWARE_INT128.
More information about the llvm-commits
mailing list