Repository navigation
Add composite debug fragment support - #1087
Merged
nihalpasham merged 2 commits intoAug 20, 2026
Merged
Conversation
uurl
force-pushed
the
feat/226-debug-composite-fragments
branch
from
August 20, 2026 06:39
5705b61 to
3c0746d
Compare
Signed-off-by: Raul Estrada <[email protected]>
uurl
force-pushed
the
feat/226-debug-composite-fragments
branch
from
August 20, 2026 06:42
3c0746d to
4d6bab7
Compare
Collaborator
|
This was referenced Aug 20, 2026
nihalpasham
previously approved these changes
Aug 20, 2026
nihalpasham
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1086
Part of #226
Summary
Add support for rustc MIR composite debug-variable fragments through the MIR-to-LLVM debug pipeline.
This allows scalarized pieces of a source variable to retain their relationship to the original source-level variable and be exported using
DW_OP_LLVM_fragment.Changes
add fragment metadata carrying:
import supported rustc MIR composite debug fragments instead of discarding them
preserve fragment metadata through MIR-to-LLVM lowering
preserve fragment metadata when mem2reg salvages a debug-tagged alloca into
mir.dbg_valueemit fragment-aware
llvm.dbg.declareexpressions:!DIExpression(DW_OP_LLVM_fragment, <offset_bits>, <size_bits>)All validation passed.