Skip to content

Commit cf3a31e

Browse files
committed
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.
1 parent 8363278 commit cf3a31e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ def OBJC_SYNC_EXIT : RuntimeLibcall;
430430
// Define implementation default libcalls
431431
//--------------------------------------------------------------------
432432

433-
defset list<RuntimeLibcallImpl> AllDefaultRuntimeLibcallImpls = {
434433
let IsDefault = true in {
435434

436435
//--------------------------------------------------------------------
@@ -936,7 +935,6 @@ def memset : RuntimeLibcallImpl<MEMSET>;
936935
def calloc : RuntimeLibcallImpl<CALLOC>;
937936

938937
} // End let IsDefault = true
939-
} // End defset AllDefaultRuntimeLibcallImpls
940938

941939
//--------------------------------------------------------------------
942940
// Define implementation other libcalls
@@ -1027,8 +1025,8 @@ defset list<RuntimeLibcallImpl> LibmF128FiniteLibcalls = {
10271025
// unreasonable defaults like reporting f80 calls on most targets when
10281026
// they are relevant to only one.
10291027

1030-
defvar AllDefaultLibCalls =
1031-
!foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides);
1028+
defvar AllDefaultRuntimeLibcallImpls
1029+
= !filter(entry, !instances<RuntimeLibcallImpl>(), entry.IsDefault);
10321030

10331031
// Exist in libgcc and compiler-rt for 64-bit targets, or if
10341032
// COMPILER_RT_ENABLE_SOFTWARE_INT128.

0 commit comments

Comments
 (0)