Repository navigation
Add codeview_annotation intrinsic - #160285
Conversation
codeview_annotation intrinsic
This comment has been minimized.
This comment has been minimized.
734844e to
0740b67
Compare
This comment has been minimized.
This comment has been minimized.
0740b67 to
7161ffd
Compare
This comment has been minimized.
This comment has been minimized.
7161ffd to
37c9de9
Compare
37c9de9 to
8a0ad0d
Compare
This comment has been minimized.
This comment has been minimized.
d012be4 to
6d91060
Compare
This comment has been minimized.
This comment has been minimized.
6d91060 to
07eceeb
Compare
|
cc @rust-lang/miri Any special-casing of Miri in the standard library requires review. cc @rust-lang/miri
cc @rust-lang/miri
cc @bjorn3 Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter |
|
r? @folkertdev rustbot has assigned @folkertdev. Use Why was this reviewer chosen?The reviewer was selected based on:
|
07eceeb to
e9d57be
Compare
The function does not caues any UB or non-determinism (it returns
I have now removed the changes in |
e9d57be to
457ca69
Compare
This comment has been minimized.
This comment has been minimized.
457ca69 to
9b1f38c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9b1f38c to
a339f69
Compare
There was a problem hiding this comment.
Some small things, @RalfJung does the const eval stuff look OK to you otherwise?
This comment has been minimized.
This comment has been minimized.
|
On the const-eval / Miri side there's just the fallback body and that seems reasonable to me. |
a339f69 to
9d8da0d
Compare
|
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. |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 5d8fec0 (parent) -> f4d7ecf (this PR) Test differencesShow 116 test diffsStage 1
Stage 2
Additionally, 96 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard f4d7ecfb0efc8330cef8f8020f192920d8721911 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (f4d7ecf): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (secondary 4.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 490.438s -> 497.38s (1.42%) |
View all comments
This PR adds:
codeview_annotation, which lowers to llvm.codeview.annotation and allows users to emit arbitraryS_ANNOTATIONrecords into PDB filesFor the underlying motivation and design details see:
codeview_annotationintrinsic compiler-team#1026codeview_annotationintrinsic libs-team#868Tracking issues:
codeview_annotationintrinsic #162252codeview_annotationAPI #163964Implementation details
CodeViewAnnotationArgs::ARGSfails to const eval.core::osmodule to a neutralcore_osin order to add the new modulecore::os::windows. It was earlier gated ondarwin_objc, which was not general enough.