Skip to content

RuntimeLibcalls: Stop using defset for default calls #147651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: users/arsenm/hexagon/move-runtime-libcall-config-tablegen
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions llvm/include/llvm/IR/RuntimeLibcalls.td
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ def MEMCPY_ALIGN_4 : RuntimeLibcall;
// Define implementation default libcalls
//--------------------------------------------------------------------

defset list<RuntimeLibcallImpl> AllDefaultRuntimeLibcallImpls = {
let IsDefault = true in {

//--------------------------------------------------------------------
Expand Down Expand Up @@ -908,7 +907,6 @@ def memset : RuntimeLibcallImpl<MEMSET>;
def calloc : RuntimeLibcallImpl<CALLOC>;

} // End let IsDefault = true
} // End defset AllDefaultRuntimeLibcallImpls

//--------------------------------------------------------------------
// Define implementation other libcalls
Expand Down Expand Up @@ -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.
Expand Down