Skip to content

Commit b1c46d2

Browse files
committed
Helper list for common case
1 parent 5605530 commit b1c46d2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,11 @@ defvar LibmHasExp10F80 = LibcallImpls<(add exp10l_f80), hasExp10>;
11221122
defvar LibmHasExp10F128 = LibcallImpls<(add exp10l_f128), hasExp10>;
11231123
defvar LibmHasExp10PPCF128 = LibcallImpls<(add exp10l_ppcf128), hasExp10>;
11241124

1125+
defvar DefaultLibmExp10 = [
1126+
LibmHasExp10F32, LibmHasExp10F64, LibmHasExp10F128
1127+
];
1128+
1129+
11251130
defvar WindowsMathRemovals = [
11261131
ldexpf, ldexp_f80, ldexp_f128, ldexp_ppcf128,
11271132
frexpf, frexp_f80, frexp_f128, frexp_ppcf128
@@ -1144,7 +1149,6 @@ defvar LibmHasLdexpF80 = LibcallImpls<(add ldexp_f80), isNotOSWindowsOrIsCygwinM
11441149
defvar LibmHasFrexpF128 = LibcallImpls<(add frexp_f128), isNotOSWindowsOrIsCygwinMinGW>;
11451150
defvar LibmHasLdexpF128 = LibcallImpls<(add ldexp_f128), isNotOSWindowsOrIsCygwinMinGW>;
11461151

1147-
11481152
//===----------------------------------------------------------------------===//
11491153
// Objective-C Runtime Libcalls
11501154
//===----------------------------------------------------------------------===//
@@ -1221,7 +1225,7 @@ def AArch64SystemLibrary : SystemRuntimeLibrary<
12211225
LibcallImpls<(add bzero), isOSDarwin>,
12221226
DarwinExp10, DarwinSinCosStret,
12231227
LibmHasSinCosF32, LibmHasSinCosF64, LibmHasSinCosF128,
1224-
LibmHasExp10F32, LibmHasExp10F64, LibmHasExp10F128)
1228+
DefaultLibmExp10)
12251229
>;
12261230

12271231
// Prepend a # to every name
@@ -1492,7 +1496,7 @@ def ARMSystemLibrary
14921496
AEABIDivRemCalls,
14931497
DarwinSinCosStret, DarwinExp10,
14941498
LibmHasSinCosF32, LibmHasSinCosF64, LibmHasSinCosF128,
1495-
LibmHasExp10F32, LibmHasExp10F64, LibmHasExp10F128,
1499+
DefaultLibmExp10,
14961500

14971501
// Use divmod compiler-rt calls for iOS 5.0 and later.
14981502
LibcallImpls<(add __divmodsi4, __udivmodsi4),

0 commit comments

Comments
 (0)