-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
reland [InlineAsm] wrap ConstraintCode in enum class NFC #66264
Conversation
This reverts commit ee643b7. Fix up build failures I missed in llvm#66003
0ab9f2a
to
fd0fa2b
Compare
@llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-backend-risc-v Changesreland [InlineAsm] wrap ConstraintCode in enum class NFC (#66003)This reverts commit ee643b7. Fix up build failures in targets I missed in #66003 Kept as 3 commits for reviewers to see better what's changed. Will squash when
-- Patch is 69.25 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/66264.diff 50 Files Affected:
<pre>
diff --git a/llvm/include/llvm/CodeGen/TargetLowering.h b/llvm/include/llvm/CodeGen/TargetLowering.h
/// Try to replace an X constraint, which matches anything, with another that
|
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.
Looks good, I spot checked the Mips and SystemZ issues I saw locally. I think some stuff just got lost in your rebase attempt. I see the buildkite checks on Linux passed on this PR and the previous one.
Thanks, looks like 142c89c is the culprit of that unittest failure on windows. |
return getData(); | ||
uint32_t D = getData(); | ||
assert(D <= static_cast<uint32_t>(ConstraintCode::Max) && | ||
D >= static_cast<uint32_t>(ConstraintCode::Unknown) && |
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.
Note that this triggers type-limits
warning (if it's enabled) on GCC 7 and 8.
error: comparison of unsigned expression >= 0 is always true
Don't know if there is a nice way to silence it and if we want to keep this check.
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.
Thanks for the report.
I'm about to delete this newly added code in #66297.
reland [InlineAsm] wrap ConstraintCode in enum class NFC (llvm#66003) This reverts commit ee643b7. Fix up build failures in targets I missed in llvm#66003 Kept as 3 commits for reviewers to see better what's changed. Will squash when merging. - reland [InlineAsm] wrap ConstraintCode in enum class NFC (llvm#66003) - fix all the targets I missed in llvm#66003 - fix off by one found by llvm/test/CodeGen/SystemZ/inline-asm-addr.ll
reland [InlineAsm] wrap ConstraintCode in enum class NFC (#66003)
This reverts commit ee643b7.
Fix up build failures in targets I missed in #66003
Kept as 3 commits for reviewers to see better what's changed. Will squash when
merging.