Skip to content

Commit

Permalink
Update natvis to show VNs (#104485)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Jul 10, 2024
1 parent cd9cc87 commit a2b7214
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/coreclr/jit/clrjit.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,27 @@ Documentation for VS debugger format specifiers: https://learn.microsoft.com/vis
<!-- GenTree -->

<Type Name="GenTree">
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en}]</DisplayString>
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en}], {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeIntCon">
<DisplayString>{gtTreeID, d}: [IntCon={((GenTreeIntCon*)this)-&gt;gtIconVal, d}]</DisplayString>
<DisplayString>{gtTreeID, d}: [IntCon={((GenTreeIntCon*)this)-&gt;gtIconVal, d}], {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeDblCon">
<DisplayString>{gtTreeID, d}: [DblCon={((GenTreeDblCon*)this)-&gt;gtDconVal, g}]</DisplayString>
<DisplayString>{gtTreeID, d}: [DblCon={((GenTreeDblCon*)this)-&gt;gtDconVal, g}], {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeStrCon">
<DisplayString>CNS_STR</DisplayString>
<DisplayString>CNS_STR, {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeVecCon">
<DisplayString>CNS_VEC</DisplayString>
<DisplayString>CNS_VEC, {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeLngCon">
<DisplayString>{gtTreeID, d}: [LngCon={((GenTreeLngCon*)this)-&gt;gtLconVal, l}]</DisplayString>
<DisplayString>{gtTreeID, d}: [LngCon={((GenTreeLngCon*)this)-&gt;gtLconVal, l}], {gtVNPair}</DisplayString>
</Type>
<Type Name="GenTreeOp">
<DisplayString Condition="this->gtOper==GT_CAST">{gtTreeID, d}: [{((GenTreeCast*)this)-&gt;gtCastType,en} &lt;- {((GenTreeUnOp*)this)-&gt;gtOp1-&gt;gtType,en}]</DisplayString>
<DisplayString Condition="this->gtOper==GT_HWINTRINSIC">{gtTreeID, d}: [{((GenTreeHWIntrinsic*)this)-&gt;gtHWIntrinsicId,en}, {gtType,en}]</DisplayString>
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en}]</DisplayString>
<DisplayString Condition="this->gtOper==GT_CAST">{gtTreeID, d}: [{((GenTreeCast*)this)-&gt;gtCastType,en} &lt;- {((GenTreeUnOp*)this)-&gt;gtOp1-&gt;gtType,en}], {gtVNPair}</DisplayString>
<DisplayString Condition="this->gtOper==GT_HWINTRINSIC">{gtTreeID, d}: [{((GenTreeHWIntrinsic*)this)-&gt;gtHWIntrinsicId,en}, {gtType,en}], {gtVNPair}</DisplayString>
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en}], {gtVNPair}</DisplayString>
</Type>

<Type Name="Statement">
Expand All @@ -83,11 +83,16 @@ Documentation for VS debugger format specifiers: https://learn.microsoft.com/vis
</Type>

<Type Name="GenTreeLclVar" Inheritable="false">
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en} V{((GenTreeLclVar*)this)-&gt;_gtLclNum,u}]</DisplayString>
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en} V{((GenTreeLclVar*)this)-&gt;_gtLclNum,u}], {gtVNPair}</DisplayString>
</Type>

<Type Name="GenTreeLclFld" Inheritable="false">
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en} V{((GenTreeLclFld*)this)-&gt;_gtLclNum,u}[+{((GenTreeLclFld*)this)-&gt;m_lclOffs,u}]]</DisplayString>
<DisplayString>{gtTreeID, d}: [{gtOper,en}, {gtType,en} V{((GenTreeLclFld*)this)-&gt;_gtLclNum,u}[+{((GenTreeLclFld*)this)-&gt;m_lclOffs,u}]], {gtVNPair}</DisplayString>
</Type>

<!-- VN -->
<Type Name="ValueNumPair">
<DisplayString>VNP=[L: ${m_liberal,xb}, C: ${m_liberal,xb}]</DisplayString>
</Type>

<!-- Scalar evolution -->
Expand Down

0 comments on commit a2b7214

Please sign in to comment.