-
Notifications
You must be signed in to change notification settings - Fork 13.7k
[llvm] Support IFuncs on Darwin platforms #73686
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
jroelofs
merged 22 commits into
main
from
users/jroelofs/spr/llvm-support-ifuncs-on-darwin-platforms
Dec 14, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bc15209
[𝘀𝗽𝗿] initial version
jroelofs 8f6755e
git clang-format
jroelofs dc1fcb4
avoid writeback stp's
jroelofs bbeb3be
x86 support
jroelofs b2d46d6
review feedback
jroelofs e6af9ea
fix docs build
jroelofs a9cc93c
align data pointer
jroelofs 6fe823c
drop the non-manual .symbol_resolver lowering
jroelofs 72853bb
fix formatting
jroelofs 6be667f
rebase
jroelofs a28037b
review feedback
jroelofs fd1b139
fix formatting
jroelofs f43f925
clean up non-supported platform handling
jroelofs 53e4b6a
rebase
jroelofs 5edb8a9
rebase
jroelofs 76723d9
reword comment
jroelofs 7d34711
fix formatting
jroelofs 9c9296c
gisel lowering isn't darwin specific
jroelofs 9dd1e7e
rebase
jroelofs 9439ed0
apply ahmed's review feedback
jroelofs 29fff22
adjust per ahmed's clarification
jroelofs 9b7c25b
fix formatting
jroelofs 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
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 |
---|---|---|
|
@@ -2229,13 +2229,11 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs, | |
} | ||
|
||
// Check EVEX512 feature. | ||
if (MaxParameterWidth >= 512 && Attrs.hasFnAttr("target-features")) { | ||
Triple T(M.getTargetTriple()); | ||
if (T.isX86()) { | ||
StringRef TF = Attrs.getFnAttr("target-features").getValueAsString(); | ||
Check(!TF.contains("+avx512f") || !TF.contains("-evex512"), | ||
"512-bit vector arguments require 'evex512' for AVX512", V); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. drive-by fix. We don't need to create a Triple, since we already have one. |
||
if (MaxParameterWidth >= 512 && Attrs.hasFnAttr("target-features") && | ||
TT.isX86()) { | ||
StringRef TF = Attrs.getFnAttr("target-features").getValueAsString(); | ||
Check(!TF.contains("+avx512f") || !TF.contains("-evex512"), | ||
"512-bit vector arguments require 'evex512' for AVX512", V); | ||
} | ||
|
||
checkUnsignedBaseTenFuncAttr(Attrs, "patchable-function-prefix", V); | ||
|
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.