-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clrjit.natvis file #52668
Merged
Merged
Add clrjit.natvis file #52668
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d8853a8
Add clrjit.natvis file
kunalspathak acea8a5
Review comments
kunalspathak 709e730
pass /NATVIS flag to linker
kunalspathak a210ad7
Include clrjit.natvis only for windows
kunalspathak 92fbd58
Update src/coreclr/jit/CMakeLists.txt
kunalspathak d8c7a7a
Add the missing review comment
kunalspathak 710fef4
minor typo
kunalspathak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Licensed to the .NET Foundation under one or more agreements. | ||
The .NET Foundation licenses this file to you under the MIT license. | ||
--> | ||
|
||
|
||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
|
||
<Type Name="Compiler"> | ||
<DisplayString>[{info.compFullName,sb} ({info.compMethodHashPrivate,x})]</DisplayString> | ||
<StringView>info.compFullName,sb</StringView> | ||
</Type> | ||
|
||
<Type Name="BasicBlock"> | ||
<DisplayString Condition="bbJumpKind==BBJ_COND || bbJumpKind==BBJ_ALWAYS || bbJumpKind==BBJ_LEAVE || bbJumpKind==BBJ_EHCATCHRET || bbJumpKind==BBJ_CALLFINALLY">BB{bbNum,d}->BB{bbJumpDest->bbNum,d}; {bbJumpKind,en}</DisplayString> | ||
<DisplayString>BB{bbNum,d}; {bbJumpKind,en}</DisplayString> | ||
</Type> | ||
|
||
<Type Name="EHblkDsc"> | ||
<DisplayString>type={ebdHandlerType}</DisplayString> | ||
</Type> | ||
|
||
<!-- GenTree --> | ||
<Type Name="GenTree"> | ||
<DisplayString>[{gtOper,en}, {gtType,en}}]</DisplayString> | ||
</Type> | ||
<Type Name="GenTreeIntCon"> | ||
<DisplayString>[IntCon={((GenTreeIntCon*)this)->gtIconVal, d}]</DisplayString> | ||
</Type> | ||
<Type Name="GenTreeDblCon"> | ||
<DisplayString>[DblCon={((GenTreeDblCon*)this)->gtDconVal, g}]</DisplayString> | ||
</Type> | ||
<Type Name="GenTreeStrCon"> | ||
<DisplayString>CNS_STR</DisplayString> | ||
</Type> | ||
<Type Name="GenTreeLngCon"> | ||
<DisplayString>[LngCon={((GenTreeLngCon*)this)->gtLconVal, l}]</DisplayString> | ||
</Type> | ||
<Type Name="GenTreeOp"> | ||
<DisplayString Condition="this->gtOper==GT_ASG">[{((GenTreeUnOp*)this)->gtOper,en}={this->gtOp2,na}]</DisplayString> | ||
<DisplayString Condition="this->gtOper==GT_CAST">[{((GenTreeCast*)this)->gtCastType,en} <- {((GenTreeUnOp*)this)->gtOp1->gtType,en}]</DisplayString> | ||
<DisplayString>[{gtOper,en}, {gtType,en}]</DisplayString> | ||
</Type> | ||
kunalspathak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<Type Name="LclVarDsc"> | ||
<DisplayString Condition="lvReason==0">[{lvType,en}]</DisplayString> | ||
<DisplayString>[{lvType,en}-{lvReason,s}]</DisplayString> | ||
</Type> | ||
|
||
<Type Name="GenTreeLclVar" Inheritable="false"> | ||
<DisplayString>[{gtOper,en}, {gtType,en} V{((GenTreeLclVar*)this)->_gtLclNum,u}]</DisplayString> | ||
</Type> | ||
|
||
<!-- Register allocation --> | ||
<Type Name="LinearScan"> | ||
<DisplayString>LinearScan</DisplayString> | ||
<Expand> | ||
<Item Name="AvailableRegs mask">this->m_AvailableRegs</Item> | ||
<CustomListItems> | ||
<Variable Name="reg" InitialValue="this->m_AvailableRegs" /> | ||
<Variable Name="regIndex" InitialValue="0" /> | ||
<Loop Condition="reg != 0"> | ||
<Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> | ||
<Exec>regIndex++</Exec> | ||
<Exec>reg = reg >> 1</Exec> | ||
</Loop> | ||
</CustomListItems> | ||
<Item Name="RegistersWithConstants mask">this->m_RegistersWithConstants</Item> | ||
<CustomListItems> | ||
<Variable Name="reg" InitialValue="this->m_RegistersWithConstants" /> | ||
<Variable Name="regIndex" InitialValue="0" /> | ||
<Loop Condition="reg != 0"> | ||
<Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> | ||
<Exec>regIndex++</Exec> | ||
<Exec>reg = reg >> 1</Exec> | ||
</Loop> | ||
</CustomListItems> | ||
</Expand> | ||
</Type> | ||
|
||
<Type Name="RefPosition"> | ||
<DisplayString>[#{rpNum,d} - {refType,en}]</DisplayString> | ||
<Expand> | ||
<Item Name="Referent" Condition="this->isPhysRegRef">(RegRecord*)this->referent</Item> | ||
<Item Name="Referent" Condition="!this->isPhysRegRef">(Interval*)this->referent</Item> | ||
<CustomListItems> | ||
<Variable Name="reg" InitialValue="this->registerAssignment" /> | ||
<Variable Name="regIndex" InitialValue="0" /> | ||
<Loop Condition="reg != 0"> | ||
<Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> | ||
<Exec>regIndex++</Exec> | ||
<Exec>reg = reg >> 1</Exec> | ||
</Loop> | ||
</CustomListItems> | ||
</Expand> | ||
</Type> | ||
|
||
<Type Name="Interval"> | ||
<DisplayString Condition="this->isLocalVar">[V{this->varNum,d}, #{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> | ||
<DisplayString Condition="this->isConstant">[C{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> | ||
<DisplayString>[I{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> | ||
</Type> | ||
|
||
<Type Name="RegRecord"> | ||
<DisplayString>[reg={((regNumber)regNum),en}, type={registerType, en}]</DisplayString> | ||
<Expand> | ||
<Item Name="[Assigned]">assignedInterval</Item> | ||
<Item Name="[Previous]">previousInterval</Item> | ||
</Expand> | ||
</Type> | ||
|
||
<!-- Emitter --> | ||
<Type Name="insGroup"> | ||
<DisplayString Condition="igFlags & 0x200">IG{igNum,d} [extend]</DisplayString> | ||
<DisplayString>IG{igNum,d]</DisplayString> | ||
kunalspathak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</Type> | ||
|
||
<!-- utils --> | ||
<Type Name="jitstd::list<*>"> | ||
<DisplayString Condition="m_nSize > 0">Size={m_nSize}</DisplayString> | ||
<DisplayString Condition="m_nSize == 0">Empty</DisplayString> | ||
<Expand> | ||
<LinkedListItems> | ||
<Size>m_nSize</Size> | ||
<HeadPointer>this->m_pHead</HeadPointer> | ||
<NextPointer>this->m_pNext</NextPointer> | ||
<ValueNode>this->m_value</ValueNode> | ||
</LinkedListItems> | ||
</Expand> | ||
</Type> | ||
|
||
</AutoVisualizer> |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, we still want it so ninja can rebuild when it changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a no op on platforms other than windows, you can move it under the win32 block you created