diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index 8e903224b1972..8262832174dd4 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -1012,15 +1012,21 @@ defvar CompilerRTOnlyInt128Libcalls = [ __mulodi4 ]; -defvar DefaultRuntimeLibcallImpls = - !listremove(!listremove(AllDefaultRuntimeLibcallImpls, - Int128RTLibcalls), - CompilerRTOnlyInt128Libcalls); +defvar DefaultRuntimeLibcallImpls_ppcf128 = + !filter(entry, AllDefaultRuntimeLibcallImpls, + !match(!cast(entry.Provides), "PPCF128")); defvar DefaultRuntimeLibcallImpls_f128 = - !filter(entry, DefaultRuntimeLibcallImpls, + !filter(entry, AllDefaultRuntimeLibcallImpls, !match(!cast(entry.Provides), "_F128")); +defvar DefaultRuntimeLibcallImpls = + !listremove( + !listremove( + !listremove(AllDefaultRuntimeLibcallImpls, Int128RTLibcalls), + CompilerRTOnlyInt128Libcalls), + DefaultRuntimeLibcallImpls_ppcf128); + defvar DefaultRuntimeLibcallImpls_atomic = !filter(entry, DefaultRuntimeLibcallImpls, !match(!cast(entry.Provides), "ATOMIC")); @@ -1841,6 +1847,7 @@ def PPCSystemLibrary (sub DefaultRuntimeLibcallImpls, memcpy, DefaultRuntimeLibcallImpls_f128), __extendkftf2, __trunctfkf2, + DefaultRuntimeLibcallImpls_ppcf128, LibmF128Libcalls, AIX32Calls, AIX64Calls, AvailableIf, LibcallImpls<(add Int128RTLibcalls), isPPC64>)>;