-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
arsenm
wants to merge
1
commit into
users/arsenm/hexagon/move-runtime-libcall-config-tablegen
Choose a base branch
from
users/arsenm/runtime-libcalls/stop-using-defset-default-libcall-impls
base: users/arsenm/hexagon/move-runtime-libcall-config-tablegen
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+2
−4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jul 9, 2025
@llvm/pr-subscribers-llvm-selectiondag @llvm/pr-subscribers-backend-hexagon Author: Matt Arsenault (arsenm) ChangesThis is redundant with the IsDefault field, so avoid a really Full diff: https://github.com/llvm/llvm-project/pull/147651.diff 1 Files Affected:
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.
|
RKSimon
approved these changes
Jul 9, 2025
8c552af
to
48350d5
Compare
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.
cab40d4
to
170b353
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.