From cf3a31ebdb594253219dab74ef12fceff48cec1c Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 9 Jul 2025 14:06:33 +0900 Subject: [PATCH] RuntimeLibcalls: Stop using defset for default calls 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. --- llvm/include/llvm/IR/RuntimeLibcalls.td | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 AllDefaultRuntimeLibcallImpls = { let IsDefault = true in { //-------------------------------------------------------------------- @@ -936,7 +935,6 @@ def memset : RuntimeLibcallImpl; def calloc : RuntimeLibcallImpl; } // End let IsDefault = true -} // End defset AllDefaultRuntimeLibcallImpls //-------------------------------------------------------------------- // Define implementation other libcalls @@ -1027,8 +1025,8 @@ defset list 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(), entry.IsDefault); // Exist in libgcc and compiler-rt for 64-bit targets, or if // COMPILER_RT_ENABLE_SOFTWARE_INT128.