-
Notifications
You must be signed in to change notification settings - Fork 82
Sort archs and make the generate predictable #153
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
Conversation
src/intrinsic/archs.rs
Outdated
"llvm.objectsize.v8i16.p0i8" => "__builtin_object_size", | ||
"llvm.stackrestore" => "__builtin_stack_restore", | ||
"llvm.stacksave" => "__builtin_stack_save", | ||
"llvm.trap" => "__builtin_trap", |
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 don't think any of these are used by stdarch or any other part of the standard library.
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.
llvm.trap
is in the rustc code.
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.
It is only used inside cg_llvm as implementation for the abort
builder function. cg_gcc directly calls the abort
builtin function there.
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.
llvm.debugtrap
is needed by the breakpoint
intrinsic.
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.
Wouldn't the implementation of said intrinsic directly call the right gcc builtin?
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.
Oh, you're right.
It seems like these functions shouldn't be added then. Is it fine to still have the sorting predictable? |
Indeed. We can add them later if needed. Yes, please, go ahead for the sorting. |
8a138f2
to
035ac03
Compare
Done! |
Sorry for the noise, I didn't pay attention to the order of the archs. It's now predictable so this shouldn't happen again.
This PR adds the "general" intrinsics (not bound to any arch).
Last part of #151.