Repository navigation
Debug info for local array of structs through extra stride metadata - #2072
Merged
Tristan Labelle (tristanlabelle) merged 7 commits intoApr 17, 2019
Merged
Tristan Labelle (tristanlabelle) merged 7 commits into
Tristan Labelle (tristanlabelle) merged 7 commits into
Conversation
Tristan Labelle (tristanlabelle)
requested review from
Adam Yang (adam-yang) and
Tex Riddell (tex3d)
March 27, 2019 18:18
|
✅ Build DirectXShaderCompiler 1.0.1607 completed (commit 15741379ad by @MrTrillian) |
|
❌ Build DirectXShaderCompiler 1.0.1620 failed (commit ec45bd7d03 by @MrTrillian) |
|
✅ Build DirectXShaderCompiler 1.0.1623 completed (commit d18113d60a by @MrTrillian) |
|
✅ Build DirectXShaderCompiler 1.0.1711 completed (commit 585728be25 by @MrTrillian) |
Adam Yang (adam-yang)
approved these changes
Apr 16, 2019
Tristan Labelle (tristanlabelle)
changed the base branch from
master
to
debug-info-staging
April 17, 2019 19:07
Contributor
Author
|
Retargeted to |
Tristan Labelle (tristanlabelle)
merged this pull request
into
microsoft:debug-info-staging
Apr 17, 2019
Tristan Labelle (tristanlabelle)
deleted the
array-of-structs-debug-info-with-strides
branch
April 17, 2019 19:09
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.
Arrays of structs lose element contiguity when SROA'd into separate arrays of struct elements. This cannot be represented by
@llvm.dbg.declare/valueandDIExpressions. This change modifies the@llvm.dbg.declare'sDIExpressionto abit_pieceof only the leading contiguous elements, and tags the call with a new!dx.dbg.varlayoutmetadata that contains stride information usable by backends to reconstruct the information.The change only applies to local variables, though is written to be extensible to arguments and globalvariables. There are some difficulties with those however: