|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | +Licensed to the .NET Foundation under one or more agreements. |
| 5 | +The .NET Foundation licenses this file to you under the MIT license. |
| 6 | +--> |
| 7 | + |
| 8 | + |
| 9 | +<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> |
| 10 | + |
| 11 | + <Type Name="Compiler"> |
| 12 | + <DisplayString>[{info.compFullName,sb} ({info.compMethodHashPrivate,x})]</DisplayString> |
| 13 | + <StringView>info.compFullName,sb</StringView> |
| 14 | + </Type> |
| 15 | + |
| 16 | + <Type Name="BasicBlock"> |
| 17 | + <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> |
| 18 | + <DisplayString>BB{bbNum,d}; {bbJumpKind,en}</DisplayString> |
| 19 | + </Type> |
| 20 | + |
| 21 | + <Type Name="EHblkDsc"> |
| 22 | + <DisplayString>type={ebdHandlerType}</DisplayString> |
| 23 | + </Type> |
| 24 | + |
| 25 | + <!-- GenTree --> |
| 26 | + <Type Name="GenTree"> |
| 27 | + <DisplayString>[{gtOper,en}, {gtType,en}}]</DisplayString> |
| 28 | + </Type> |
| 29 | + <Type Name="GenTreeIntCon"> |
| 30 | + <DisplayString>[IntCon={((GenTreeIntCon*)this)->gtIconVal, d}]</DisplayString> |
| 31 | + </Type> |
| 32 | + <Type Name="GenTreeDblCon"> |
| 33 | + <DisplayString>[DblCon={((GenTreeDblCon*)this)->gtDconVal, g}]</DisplayString> |
| 34 | + </Type> |
| 35 | + <Type Name="GenTreeStrCon"> |
| 36 | + <DisplayString>CNS_STR</DisplayString> |
| 37 | + </Type> |
| 38 | + <Type Name="GenTreeLngCon"> |
| 39 | + <DisplayString>[LngCon={((GenTreeLngCon*)this)->gtLconVal, l}]</DisplayString> |
| 40 | + </Type> |
| 41 | + <Type Name="GenTreeOp"> |
| 42 | + <DisplayString Condition="this->gtOper==GT_ASG">[{this->gtOp1,na}={this->gtOp2,na}]</DisplayString> |
| 43 | + <DisplayString Condition="this->gtOper==GT_CAST">[{((GenTreeCast*)this)->gtCastType,en} <- {((GenTreeUnOp*)this)->gtOp1->gtType,en}]</DisplayString> |
| 44 | + <DisplayString>[{gtOper,en}, {gtType,en}]</DisplayString> |
| 45 | + </Type> |
| 46 | + |
| 47 | + <Type Name="LclVarDsc"> |
| 48 | + <DisplayString Condition="lvReason==0">[{lvType,en}]</DisplayString> |
| 49 | + <DisplayString>[{lvType,en}-{lvReason,s}]</DisplayString> |
| 50 | + </Type> |
| 51 | + |
| 52 | + <Type Name="GenTreeLclVar" Inheritable="false"> |
| 53 | + <DisplayString>[{gtOper,en}, {gtType,en} V{((GenTreeLclVar*)this)->_gtLclNum,u}]</DisplayString> |
| 54 | + </Type> |
| 55 | + |
| 56 | + <!-- Register allocation --> |
| 57 | + <Type Name="LinearScan"> |
| 58 | + <DisplayString>LinearScan</DisplayString> |
| 59 | + <Expand> |
| 60 | + <Item Name="AvailableRegs mask">this->m_AvailableRegs</Item> |
| 61 | + <CustomListItems> |
| 62 | + <Variable Name="reg" InitialValue="this->m_AvailableRegs" /> |
| 63 | + <Variable Name="regIndex" InitialValue="0" /> |
| 64 | + <Loop Condition="reg != 0"> |
| 65 | + <Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> |
| 66 | + <Exec>regIndex++</Exec> |
| 67 | + <Exec>reg = reg >> 1</Exec> |
| 68 | + </Loop> |
| 69 | + </CustomListItems> |
| 70 | + <Item Name="RegistersWithConstants mask">this->m_RegistersWithConstants</Item> |
| 71 | + <CustomListItems> |
| 72 | + <Variable Name="reg" InitialValue="this->m_RegistersWithConstants" /> |
| 73 | + <Variable Name="regIndex" InitialValue="0" /> |
| 74 | + <Loop Condition="reg != 0"> |
| 75 | + <Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> |
| 76 | + <Exec>regIndex++</Exec> |
| 77 | + <Exec>reg = reg >> 1</Exec> |
| 78 | + </Loop> |
| 79 | + </CustomListItems> |
| 80 | + </Expand> |
| 81 | + </Type> |
| 82 | + |
| 83 | + <Type Name="RefPosition"> |
| 84 | + <DisplayString>[#{rpNum,d} - {refType,en}]</DisplayString> |
| 85 | + <Expand> |
| 86 | + <Item Name="Referent" Condition="this->isPhysRegRef">(RegRecord*)this->referent</Item> |
| 87 | + <Item Name="Referent" Condition="!this->isPhysRegRef">(Interval*)this->referent</Item> |
| 88 | + <CustomListItems> |
| 89 | + <Variable Name="reg" InitialValue="this->registerAssignment" /> |
| 90 | + <Variable Name="regIndex" InitialValue="0" /> |
| 91 | + <Loop Condition="reg != 0"> |
| 92 | + <Item Condition="(reg & 1) != 0">((regNumber)regIndex),en</Item> |
| 93 | + <Exec>regIndex++</Exec> |
| 94 | + <Exec>reg = reg >> 1</Exec> |
| 95 | + </Loop> |
| 96 | + </CustomListItems> |
| 97 | + </Expand> |
| 98 | + </Type> |
| 99 | + |
| 100 | + <Type Name="Interval"> |
| 101 | + <DisplayString Condition="this->isLocalVar">[V{this->varNum,d}, #{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> |
| 102 | + <DisplayString Condition="this->isConstant">[C{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> |
| 103 | + <DisplayString>[I{this->intervalIndex, d}, reg={(regNumber)physReg, en}]</DisplayString> |
| 104 | + </Type> |
| 105 | + |
| 106 | + <Type Name="RegRecord"> |
| 107 | + <DisplayString>[reg={((regNumber)regNum),en}, type={registerType, en}]</DisplayString> |
| 108 | + <Expand> |
| 109 | + <Item Name="[Assigned]">assignedInterval</Item> |
| 110 | + <Item Name="[Previous]">previousInterval</Item> |
| 111 | + </Expand> |
| 112 | + </Type> |
| 113 | + |
| 114 | + <!-- Emitter --> |
| 115 | + <Type Name="insGroup"> |
| 116 | + <DisplayString Condition="igFlags & 0x200">IG{igNum,d} [extend]</DisplayString> |
| 117 | + <DisplayString>IG{igNum,d}</DisplayString> |
| 118 | + </Type> |
| 119 | + |
| 120 | + <!-- utils --> |
| 121 | + <Type Name="jitstd::list<*>"> |
| 122 | + <DisplayString Condition="m_nSize > 0">Size={m_nSize}</DisplayString> |
| 123 | + <DisplayString Condition="m_nSize == 0">Empty</DisplayString> |
| 124 | + <Expand> |
| 125 | + <LinkedListItems> |
| 126 | + <Size>m_nSize</Size> |
| 127 | + <HeadPointer>this->m_pHead</HeadPointer> |
| 128 | + <NextPointer>this->m_pNext</NextPointer> |
| 129 | + <ValueNode>this->m_value</ValueNode> |
| 130 | + </LinkedListItems> |
| 131 | + </Expand> |
| 132 | + </Type> |
| 133 | + |
| 134 | +</AutoVisualizer> |
0 commit comments