diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index 8262832174dd4..9a9eddd36f130 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -1012,6 +1012,10 @@ defvar CompilerRTOnlyInt128Libcalls = [ __mulodi4 ]; +defvar DefaultRuntimeLibcallImpls_f80 = + !filter(entry, AllDefaultRuntimeLibcallImpls, + !match(!cast(entry.Provides), "F80")); + defvar DefaultRuntimeLibcallImpls_ppcf128 = !filter(entry, AllDefaultRuntimeLibcallImpls, !match(!cast(entry.Provides), "PPCF128")); @@ -1021,10 +1025,12 @@ defvar DefaultRuntimeLibcallImpls_f128 = !match(!cast(entry.Provides), "_F128")); defvar DefaultRuntimeLibcallImpls = +!listremove( !listremove( !listremove( !listremove(AllDefaultRuntimeLibcallImpls, Int128RTLibcalls), CompilerRTOnlyInt128Libcalls), + DefaultRuntimeLibcallImpls_f80), DefaultRuntimeLibcallImpls_ppcf128); defvar DefaultRuntimeLibcallImpls_atomic = @@ -1927,6 +1933,21 @@ def _allrem : RuntimeLibcallImpl; def _aullrem : RuntimeLibcallImpl; def _allmul : RuntimeLibcallImpl; +//===----------------------------------------------------------------------===// +// X86 Runtime Libcalls +//===----------------------------------------------------------------------===// + +def isX86_32 : RuntimeLibcallPredicate<"TT.getArch() == Triple::x86">; +def isX86_64 : RuntimeLibcallPredicate<"TT.getArch() == Triple::x86_64">; + +def X86_32SystemLibrary + : SystemRuntimeLibrary; + +def X86_64SystemLibrary + : SystemRuntimeLibrary; + //===----------------------------------------------------------------------===// // XCore Runtime Libcalls //===----------------------------------------------------------------------===//