Uh oh!
There was an error while loading. Please reload this page.
Refactor vtable codegen - #86291
Conversation
rust-highfive
commented
Jun 14, 2021
Some changes occured to rustc_codegen_cranelift cc @bjorn3 Some changes occured to the CTFE / Miri engine cc @rust-lang/miri |
rust-highfive
commented
Jun 14, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
7fd6b81 to
d8937cbCompare
This comment has been minimized.
This comment has been minimized.
d8937cb to
80a6cefComparebjorn3
commented
Jun 14, 2021
Would it be possible to have miri create an |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
80a6cef to
7b237e7Comparepetrochenkov
commented
Jun 14, 2021
r? @bjorn3 |
This comment has been minimized.
This comment has been minimized.
bjorn3
commented
Jun 14, 2021
That seems like it is a miscompilation. |
crlf0710
commented
Jun 14, 2021
Indeed, i'll try to investigate. |
Uh oh!
There was an error while loading. Please reload this page.
7b237e7 to
7be091eComparecrlf0710
commented
Jun 14, 2021
Seems i found the bug. I need to add an initial 3 in function |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
…ternal representation.
7be091e to
a86d3a7Comparecrlf0710
commented
Jun 14, 2021
I think i've found the bug and got it fixed... let's wait to see if the test suite has anything more to say here. |
RalfJung
commented
Jun 15, 2021
I think that would be nice, but it seems orthogonal to this PR so should probably be done separately. I know very little about the codegen backends so I don't think I can do much mentoring for this refactor... |
bjorn3
commented
Jun 15, 2021
@bors r+ |
bors
commented
Jun 15, 2021
📌 Commit a86d3a7 has been approved by |
bjorn3
commented
Jun 15, 2021
The first step would be to refactor the vtable generation in miri to create an |
crlf0710
commented
Jun 15, 2021
Thanks! I've recorded this in #86324 to avoid forgetting about it. |
bors
commented
Jun 16, 2021
bors
commented
Jun 16, 2021
☀️ Test successful - checks-actions |
Uh oh!
There was an error while loading. Please reload this page.
Refactor vtable codegen This refactor the codegen of vtables of miri interpreter, llvm, cranelift codegen backends. This is preparation for the implementation of trait upcasting feature. cc rust-lang#65991 Note that aside from code reorganization, there's an internal behavior change here that now InstanceDef::Virtual's index now include the three metadata slots, and now the first method is with index 3. cc `@RalfJung` `@bjorn3`
This refactor the codegen of vtables of miri interpreter, llvm, cranelift codegen backends.
This is preparation for the implementation of trait upcasting feature. cc #65991
Note that aside from code reorganization, there's an internal behavior change here that now InstanceDef::Virtual's index now include the three metadata slots, and now the first method is with index 3.
cc @RalfJung@bjorn3