-
Notifications
You must be signed in to change notification settings - Fork 13.9k
rustc_codegen_llvm: adapt for LLVM 22 change to pass masked intrinsic alignment as an attribute #147950
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
base: master
Are you sure you want to change the base?
Conversation
… alignment as an attribute This was a bit more invasive than I had kind of hoped. An alternate approach would be to add an extra call_intrinsic_with_attrs() that would have the new-in-this-change signature for call_intrinsic, but this felt about equivalent and made it a little easier to audit the relevant callsites of call_intrinsic().
The job Click to see the possible cause of the failure (guessed by this bot)
|
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 alignment in CodegenFnAttrs is the function alignment -- setting that on an intrinsic call does not make sense. The attribute needs to be set on the argument, not the function.
@rustbot label llvm-main |
Crud, alright. I'll take a fresh crack at this tomorrow or Thursday then, unless someone else beats me to it. @rustbot label +S-waiting-on-author -S-waiting-on-review |
Do I need to use |
This was a bit more invasive than I had kind of hoped. An alternate approach would be to add an extra call_intrinsic_with_attrs() that would have the new-in-this-change signature for call_intrinsic, but this felt about equivalent and made it a little easier to audit the relevant callsites of call_intrinsic().
Related LLVM change is llvm/llvm-project#163802.
@rustbot label llvm-main