1 <?xml version="1.0" encoding="utf-8"?>
\r
3 Visual Studio 2012 Native Debugging Visualizers for LLVM
\r
5 Put this file into "%USERPROFILE%\Documents\Visual Studio 2012\Visualizers"
\r
6 or create a symbolic link so it updates automatically.
\r
8 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
\r
9 <Type Name="llvm::SmallVector<*,*>">
\r
10 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) == 0">empty</DisplayString>
\r
11 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) != 0">{{ size={($T1*)EndX - ($T1*)BeginX} }}</DisplayString>
\r
13 <Item Name="[size]">($T1*)EndX - ($T1*)BeginX</Item>
\r
14 <Item Name="[capacity]">($T1*)CapacityX - ($T1*)BeginX</Item>
\r
16 <Size>($T1*)EndX - ($T1*)BeginX</Size>
\r
17 <ValuePointer>($T1*)BeginX</ValuePointer>
\r
22 <Type Name="llvm::SmallVectorImpl<*>">
\r
23 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) == 0">empty</DisplayString>
\r
24 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) != 0">[{($T1*)EndX - ($T1*)BeginX}]</DisplayString>
\r
26 <Item Name="[size]">($T1*)EndX - ($T1*)BeginX</Item>
\r
27 <Item Name="[capacity]">($T1*)CapacityX - ($T1*)BeginX</Item>
\r
29 <Size>($T1*)EndX - ($T1*)BeginX</Size>
\r
30 <ValuePointer>($T1*)BeginX</ValuePointer>
\r
35 <Type Name="llvm::SmallString<*>">
\r
36 <DisplayString>{BeginX,s}</DisplayString>
\r
37 <StringView>BeginX,s</StringView>
\r
39 <Item Name="[size]">(char*)EndX - (char*)BeginX</Item>
\r
40 <Item Name="[capacity]">(char*)CapacityX - (char*)BeginX</Item>
\r
42 <Size>(char*)EndX - (char*)BeginX</Size>
\r
43 <ValuePointer>(char*)BeginX</ValuePointer>
\r
48 <Type Name="llvm::StringRef">
\r
49 <DisplayString>[{Length}] {Data,s}</DisplayString>
\r
50 <StringView>Data,s</StringView>
\r
52 <Item Name="[length]">Length</Item>
\r
55 <ValuePointer>Data</ValuePointer>
\r
60 <Type Name="llvm::PointerIntPair<*,*,*,*>">
\r
61 <DisplayString>{Value & PointerBitMask} [{(Value >> IntShift) & IntMask}]</DisplayString>
\r
63 <Item Name="[ptr]">Value & PointerBitMask</Item>
\r
64 <Item Name="[int]">(Value >> IntShift) & IntMask</Item>
\r
68 <Type Name="llvm::PointerUnion<*,*>">
\r
69 <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">[P1] {($T1)(Val.Value & Val.PointerBitMask)}</DisplayString>
\r
70 <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">[P2] {($T2)(Val.Value & Val.PointerBitMask)}</DisplayString>
\r
72 <Item Name="[ptr]" Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">($T1)(Val.Value & Val.PointerBitMask)</Item>
\r
73 <Item Name="[ptr]" Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">($T2)(Val.Value & Val.PointerBitMask)</Item>
\r
77 <Type Name="llvm::PointerUnion3<*,*,*>">
\r
78 <DisplayString Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">[P1] {($T1)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
79 <DisplayString Condition="(Val.Val.Value & 2) == 2">[P2] {($T2)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
80 <DisplayString Condition="(Val.Val.Value & 1) == 1">[P3] {($T3)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
82 <Item Name="[ptr]" Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</Item>
\r
83 <Item Name="[ptr]" Condition="(Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</Item>
\r
84 <Item Name="[ptr]" Condition="(Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</Item>
\r
88 <Type Name="llvm::PointerUnion4<*,*,*,*>">
\r
89 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">[P1] {($T1)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
90 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">[P2] {($T2)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
91 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">[P3] {($T3)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
92 <DisplayString Condition="(Val.Val.Value & 3) == 3">[P4] {($T4)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
94 <Item Name="[ptr]" Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</Item>
\r
95 <Item Name="[ptr]" Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</Item>
\r
96 <Item Name="[ptr]" Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</Item>
\r
97 <Item Name="[ptr]" Condition="(Val.Val.Value & 3) == 3">($T4)((Val.Val.Value >> 2) << 2)</Item>
\r
101 <Type Name="llvm::iplist<*,*>">
\r
102 <DisplayString Condition="Head == 0">{{ empty }}</DisplayString>
\r
103 <DisplayString Condition="Head != 0">{{ head={Head} }}</DisplayString>
\r
106 <HeadPointer>Head</HeadPointer>
\r
107 <NextPointer>Next</NextPointer>
\r
108 <ValueNode>this</ValueNode>
\r
113 <Type Name="llvm::IntrusiveRefCntPtr<*>">
\r
114 <DisplayString Condition="Obj == 0">empty</DisplayString>
\r
115 <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
\r
116 <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt != 1)">RefPtr [{Obj->ref_cnt} refs] {*Obj}</DisplayString>
\r
118 <Item Condition="Obj != 0" Name="[refs]">Obj->ref_cnt</Item>
\r
119 <Item Condition="Obj != 0" Name="[ptr]">Obj</Item>
\r
123 <Type Name="llvm::OwningPtr<*>">
\r
124 <DisplayString Condition="Ptr == 0">empty</DisplayString>
\r
125 <DisplayString Condition="Ptr != 0">OwningPtr {*Ptr}</DisplayString>
\r
127 <Item Condition="Ptr != 0" Name="[ptr]">Ptr</Item>
\r
131 <Type Name="llvm::SmallPtrSet<*,*>">
\r
132 <DisplayString Condition="CurArray == SmallArray">{{ [Small Mode] elements={NumElements}, arraySize={CurArraySize} }}</DisplayString>
\r
133 <DisplayString Condition="CurArray != SmallArray">{{ [Big Mode] elements={NumElements}, arraySize={CurArraySize} }}</DisplayString>
\r
135 <Item Name="[NumElements]">NumElements</Item>
\r
136 <Item Name="[CurArraySize]">CurArraySize</Item>
\r
138 <Size>CurArraySize + 1</Size>
\r
139 <ValueNode>($T1*)&CurArray[$i]</ValueNode>
\r
144 <Type Name="llvm::DenseMap<*,*,*>">
\r
145 <DisplayString Condition="NumEntries == 0">empty</DisplayString>
\r
146 <DisplayString Condition="NumEntries != 0">{{ entries={NumEntries}, buckets={NumBuckets} }}</DisplayString>
\r
148 <Item Name="[NumEntries]">NumEntries</Item>
\r
149 <Item Name="[NumBuckets]">NumBuckets</Item>
\r
151 <Size>NumBuckets</Size>
\r
152 <ValuePointer>Buckets</ValuePointer>
\r
157 <Type Name="llvm::StringMap<*,*>">
\r
158 <DisplayString>{{ NumBuckets={NumBuckets}, ItemSize={ItemSize} }}</DisplayString>
\r
160 <Item Name="[NumBuckets]">NumBuckets</Item>
\r
161 <Item Name="[ItemSize]">ItemSize</Item>
\r
163 <Size>NumBuckets</Size>
\r
164 <ValueNode>(llvm::StringMapEntry<$T1>*)TheTable[$i]</ValueNode>
\r
169 <Type Name="llvm::StringMapEntry<*>">
\r
170 <DisplayString Condition="StrLen == 0">empty</DisplayString>
\r
171 <DisplayString Condition="StrLen != 0">({((llvm::StringMapEntry<$T1>*)this)+1,s}, {second})</DisplayString>
\r
173 <Item Name="[key]">((llvm::StringMapEntry<$T1>*)this)+1,s</Item>
\r
174 <Item Name="[value]" Condition="StrLen != 0">second</Item>
\r
178 <Type Name="llvm::Triple">
\r
179 <DisplayString>{Data}</DisplayString>
\r