-
Notifications
You must be signed in to change notification settings - Fork 14.3k
ObjcRuntime.h: Add mips64, aarch64, and riscv64 to non-legacy dispatch #76694
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
97a9a27
Add mips64, aarch64, and riscv64 to ObjcRuntime dispatch
hmelder c9dd0b7
ObjcRuntime.h: Adjust formatting
hmelder 7c69da7
ObjCRuntime: format and update dispatch archs
hmelder 5d2ee5e
Clang driver dispatch-method test for gnustep runtime
hmelder 4a67b48
gnustep-dispatch-method: Add trailing space
hmelder a10dbee
CodeGenObjC: Add simple non-legacy dispatch gnustep test
hmelder c8cc84a
Revert "ObjCRuntime: format and update dispatch archs"
hmelder 9e77495
ObjCRuntime: Update gnustep dispatch archs with versioning
hmelder 73cace5
ObjCRuntime: fix formatting
hmelder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// DEFINE: %{triple} = | ||
// DEFINE: %{ver} = 1.6 | ||
// DEFINE: %{prefix} = CHECK-MSGSEND | ||
// DEFINE: %{check} = %clang --target=%{triple} -fobjc-runtime=gnustep-%{ver} -### -c %s 2>&1 | FileCheck -check-prefix=%{prefix} %s | ||
|
||
// REDEFINE: %{ver} = 1.6 | ||
// REDEFINE: %{triple} = i386-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{triple} = x86_64-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{triple} = arm-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{prefix} = CHECK-MSGLOOKUP | ||
// REDEFINE: %{triple} = aarch64-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{triple} = mips64-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{triple} = riscv64-unknown-freebsd | ||
// RUN: %{check} | ||
|
||
// REDEFINE: %{ver} = 1.9 | ||
// REDEFINE: %{prefix} = CHECK-MSGSEND | ||
// REDEFINE: %{triple} = aarch64-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{triple} = mips64-unknown-freebsd | ||
// RUN: %{check} | ||
// REDEFINE: %{prefix} = CHECK-MSGLOOKUP | ||
// REDEFINE: %{triple} = riscv64-unknown-freebsd | ||
// RUN: %{check} | ||
|
||
// REDEFINE: %{ver} = 2.2 | ||
// REDEFINE: %{prefix} = CHECK-MSGSEND | ||
// REDEFINE: %{triple} = riscv64-unknown-freebsd | ||
// RUN: %{check} | ||
|
||
|
||
// CHECK-MSGSEND: "-cc1"{{.*}} "-fobjc-dispatch-method=non-legacy" | ||
// CHECK-MSGLOOKUP-NOT: "-cc1"{{.*}} "-fobjc-dispatch-method=non-legacy" |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version check above is not quite right for these.
AArch64 support is in 1.9.
RV64 in 2.2.
I think mips64 is correct (it looks like I added the code 9 years ago, which probably lines up with the 1.6 release).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was my first approach, but it seems like GNUstep and libobjc2 unit tests are always emitting -fobjc-runtime=gnustep-2.0
So one would need to change this flag in the build configuration everytime libobjc2 gets updated.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do the version check and update the libobjc2 README to properly document this. I probably need to rewrite the detection in gnustep-make too -_-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine. We should bump that in both places to the correct version. It's better than having the compiler emit things that are not supported when targeting a specific version of the runtime.