Skip to content

Commit 652b9c5

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 bf2e5ce commit 652b9c5

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
@@ -402,7 +402,6 @@ def MEMCPY_ALIGN_4 : RuntimeLibcall;
402402
// Define implementation default libcalls
403403
//--------------------------------------------------------------------
404404

405-
defset list<RuntimeLibcallImpl> AllDefaultRuntimeLibcallImpls = {
406405
let IsDefault = true in {
407406

408407
//--------------------------------------------------------------------
@@ -908,7 +907,6 @@ def memset : RuntimeLibcallImpl<MEMSET>;
908907
def calloc : RuntimeLibcallImpl<CALLOC>;
909908

910909
} // End let IsDefault = true
911-
} // End defset AllDefaultRuntimeLibcallImpls
912910

913911
//--------------------------------------------------------------------
914912
// Define implementation other libcalls
@@ -999,8 +997,8 @@ defset list<RuntimeLibcallImpl> LibmF128FiniteLibcalls = {
999997
// unreasonable defaults like reporting f80 calls on most targets when
1000998
// they are relevant to only one.
1001999

1002-
defvar AllDefaultLibCalls =
1003-
!foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides);
1000+
defvar AllDefaultRuntimeLibcallImpls
1001+
= !filter(entry, !instances<RuntimeLibcallImpl>(), entry.IsDefault);
10041002

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

0 commit comments

Comments
 (0)