-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[IRBuilder] Add getByteTy and use it in CreatePtrAdd #106539
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: users/s-barannikov/byte/3-bytewise-value
Are you sure you want to change the base?
[IRBuilder] Add getByteTy and use it in CreatePtrAdd #106539
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
nikic
left a comment
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.
For this and #106540, I'm not convinced that we should actually make the canonical i8 type for ptradd byte width dependent. The only thing that matters is that the used type has an alloc size of one byte, so always using i8 should be fine.
I'd rather have the question "is this GEP a ptradd" be answerable without DL.
Indeed, it is the type alloc size that matters most.
I'd like it too. I imagine the issue will resolve itself once we have |
3b86337 to
a0d5c61
Compare
2a28c47 to
ccdc8a1
Compare
a0d5c61 to
9a1fad3
Compare
ccdc8a1 to
4d3f0b6
Compare
9a1fad3 to
67765a6
Compare
4d3f0b6 to
6d95f98
Compare
67765a6 to
555e531
Compare
6d95f98 to
b8c2041
Compare
555e531 to
3036dfc
Compare
b8c2041 to
c335952
Compare
3036dfc to
81781bc
Compare
c335952 to
517a87c
Compare
81781bc to
1f68188
Compare
517a87c to
1655f41
Compare
1f68188 to
4650b11
Compare
1655f41 to
caa10b7
Compare
The change requires DataLayout instance to be available, which, in turn, requires insertion point to be set. In-tree tests detected only one case when the function was called without setting an insertion point, it was changed to create a constant expression directly.
4650b11 to
c5eb6f7
Compare
caa10b7 to
29393ec
Compare

The change requires DataLayout instance to be available, which, in turn,
requires insertion point to be set. In-tree tests detected only one case
when the function was called without setting an insertion point, it was
changed to create a constant expression directly.