[llvm] TableGen: Allow defining sets of runtime libraries (PR #144978)

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 11:14:15 PDT 2025


================
@@ -22,27 +25,84 @@ let IsDefault = true in {
 // Ignore non-default in initDefaultLibCallNames.
 def bzero : RuntimeLibcallImpl<BZERO>;
 
+def ___memset : RuntimeLibcallImpl<MEMSET, "___memset">;
+def ___memcpy : RuntimeLibcallImpl<MEMCPY, "___memcpy">;
+
+def calloc  : RuntimeLibcallImpl<CALLOC, "calloc">;
+
+def CompilerRTLibcalls : LibcallImpls<(add __ashlsi3, __lshrdi3)>;
+def LibmLibcalls : LibcallImpls<(add sqrtl_f80)>;
+
+//def AllCalls : LibcallImpls<(add CompilerRTLibcalls, LibmLibcalls, __ashlsi3)>;
----------------
dpaoliello wrote:

Planning on uncommenting these later?

https://github.com/llvm/llvm-project/pull/144978


More information about the llvm-commits mailing list