llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-backend-hexagon Author: Matt Arsenault (arsenm) <details> <summary>Changes</summary> 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. --- Full diff: https://github.com/llvm/llvm-project/pull/147651.diff 1 Files Affected: - (modified) llvm/include/llvm/IR/RuntimeLibcalls.td (+2-4) ``````````diff diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index 61b082b8a6101..ee4892ee186cd 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -402,7 +402,6 @@ def MEMCPY_ALIGN_4 : RuntimeLibcall; // Define implementation default libcalls //-------------------------------------------------------------------- -defset list<RuntimeLibcallImpl> AllDefaultRuntimeLibcallImpls = { let IsDefault = true in { //-------------------------------------------------------------------- @@ -908,7 +907,6 @@ def memset : RuntimeLibcallImpl<MEMSET>; def calloc : RuntimeLibcallImpl<CALLOC>; } // End let IsDefault = true -} // End defset AllDefaultRuntimeLibcallImpls //-------------------------------------------------------------------- // Define implementation other libcalls @@ -999,8 +997,8 @@ defset list<RuntimeLibcallImpl> LibmF128FiniteLibcalls = { // unreasonable defaults like reporting f80 calls on most targets when // they are relevant to only one. -defvar AllDefaultLibCalls = - !foreach(entry, AllDefaultRuntimeLibcallImpls, entry.Provides); +defvar AllDefaultRuntimeLibcallImpls + = !filter(entry, !instances<RuntimeLibcallImpl>(), entry.IsDefault); // Exist in libgcc and compiler-rt for 64-bit targets, or if // COMPILER_RT_ENABLE_SOFTWARE_INT128. `````````` </details> https://github.com/llvm/llvm-project/pull/147651 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits