Repository navigation
Check supported features per CodegenBackend - #164714
TechnoPorg wants to merge 3 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6b41a28 to
d911333
Compare
This comment has been minimized.
This comment has been minimized.
d911333 to
5a76d73
Compare
This comment has been minimized.
This comment has been minimized.
7d42993 to
303edbe
Compare
303edbe to
d009976
Compare
This comment has been minimized.
This comment has been minimized.
d009976 to
06c8b9f
Compare
This comment has been minimized.
This comment has been minimized.
b7a90aa to
7550093
Compare
|
Some changes occurred in src/tools/compiletest cc @jieyouxu
Some changes occurred in tests/ui/sanitizer cc @rcvalle
cc @bjorn3 |
|
In the absence of input on the design, I've made some changes to how the features are validated that feel reasonable to me :) @ZuseZ4 as we'd hoped, this simplifies the validation of codegen options when using TPDE. @RalfJung would you like to see any/all of the other LLVM-specific codegen options moved into |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7550093 to
e628fd1
Compare
|
cc @rust-lang/miri |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Closes #164533
Of the possible designs discussed in that issue, this goes with the struct option rather than the
CodegenBackendmethod option, as the former is easier to attach toSession, whereas the latter would require passing around theCodegenBackend.There is a remarkable number of LLVM-specific compiler options that get ignored by other backends, and I'm not sure which of these, if any, we should attempt to validate with other backends.
This PR is a draft because I'm not familiar enough with the compiler yet to say what the best design is, and I think it's easier to iterate on it with actual code in front of us:
Session, rather than in its methods?r? @ZuseZ4
cc @RalfJung, @antoyo, @GuillaumeGomez, @bjorn3 as participants on the issue thread.
@rustbot label C-cleanup T-compiler A-codegen