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
10 <Type Name="llvm::SmallVectorImpl<*>">
\r
11 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) == 0">empty</DisplayString>
\r
12 <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) != 0">{{ size={($T1*)EndX - ($T1*)BeginX} }}</DisplayString>
\r
14 <Item Name="[size]">($T1*)EndX - ($T1*)BeginX</Item>
\r
15 <Item Name="[capacity]">($T1*)CapacityX - ($T1*)BeginX</Item>
\r
17 <Size>($T1*)EndX - ($T1*)BeginX</Size>
\r
18 <ValuePointer>($T1*)BeginX</ValuePointer>
\r
23 <Type Name="llvm::SmallString<*>">
\r
24 <DisplayString>{BeginX,s}</DisplayString>
\r
25 <StringView>BeginX,s</StringView>
\r
27 <Item Name="[size]">(char*)EndX - (char*)BeginX</Item>
\r
28 <Item Name="[capacity]">(char*)CapacityX - (char*)BeginX</Item>
\r
30 <Size>(char*)EndX - (char*)BeginX</Size>
\r
31 <ValuePointer>(char*)BeginX</ValuePointer>
\r
36 <Type Name="llvm::StringRef">
\r
37 <DisplayString>{Data,[Length]s}</DisplayString>
\r
38 <StringView>Data,[Length]s</StringView>
\r
40 <Item Name="[size]">Length</Item>
\r
43 <ValuePointer>Data</ValuePointer>
\r
48 <Type Name="llvm::PointerIntPair<*,*,*,*>">
\r
49 <DisplayString>{(void*)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
\r
51 <Item Name="[ptr]">($T1*)(Value & PointerBitMask)</Item>
\r
52 <Item Name="[int]">($T3)((Value >> IntShift) & IntMask)</Item>
\r
56 <Type Name="llvm::PointerUnion<*,*>">
\r
57 <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">{"$T1", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
\r
58 <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">{"$T2", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
\r
60 <ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">($T1)(Val.Value & Val.PointerBitMask)</ExpandedItem>
\r
61 <ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">($T2)(Val.Value & Val.PointerBitMask)</ExpandedItem>
\r
65 <Type Name="llvm::PointerUnion3<*,*,*>">
\r
66 <DisplayString Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">{"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
67 <DisplayString Condition="(Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
68 <DisplayString Condition="(Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
70 <ExpandedItem Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
71 <ExpandedItem Condition="(Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
72 <ExpandedItem Condition="(Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
76 <Type Name="llvm::PointerUnion4<*,*,*,*>">
\r
77 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">{"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
78 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
79 <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
80 <DisplayString Condition="(Val.Val.Value & 3) == 3">{"$T4", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
\r
82 <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
83 <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
84 <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
85 <ExpandedItem Condition="(Val.Val.Value & 3) == 3">($T4)((Val.Val.Value >> 2) << 2)</ExpandedItem>
\r
89 <Type Name="llvm::iplist<*,*>">
\r
90 <DisplayString Condition="Head == 0">{{ empty }}</DisplayString>
\r
91 <DisplayString Condition="Head != 0">{{ head={Head} }}</DisplayString>
\r
94 <HeadPointer>Head</HeadPointer>
\r
95 <NextPointer>Next</NextPointer>
\r
96 <ValueNode>this</ValueNode>
\r
101 <Type Name="llvm::IntrusiveRefCntPtr<*>">
\r
102 <DisplayString Condition="Obj == 0">empty</DisplayString>
\r
103 <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
\r
104 <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt != 1)">RefPtr [{Obj->ref_cnt} refs] {*Obj}</DisplayString>
\r
106 <Item Condition="Obj != 0" Name="[refs]">Obj->ref_cnt</Item>
\r
107 <ExpandedItem Condition="Obj != 0">Obj</ExpandedItem>
\r
111 <Type Name="llvm::OwningPtr<*>">
\r
112 <DisplayString Condition="Ptr == 0">empty</DisplayString>
\r
113 <DisplayString Condition="Ptr != 0">OwningPtr {*Ptr}</DisplayString>
\r
115 <ExpandedItem Condition="Ptr != 0">Ptr</ExpandedItem>
\r
119 <Type Name="llvm::SmallPtrSet<*,*>">
\r
120 <DisplayString Condition="CurArray == SmallArray">{{ [Small Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
\r
121 <DisplayString Condition="CurArray != SmallArray">{{ [Big Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
\r
123 <Item Name="[size]">NumElements</Item>
\r
124 <Item Name="[capacity]">CurArraySize</Item>
\r
126 <Size>CurArraySize</Size>
\r
127 <ValuePointer>($T1*)CurArray</ValuePointer>
\r
132 <Type Name="llvm::DenseMap<*,*,*>">
\r
133 <DisplayString Condition="NumEntries == 0">empty</DisplayString>
\r
134 <DisplayString Condition="NumEntries != 0">{{ size={NumEntries}, buckets={NumBuckets} }}</DisplayString>
\r
136 <Item Name="[size]">NumEntries</Item>
\r
137 <Item Name="[buckets]">NumBuckets</Item>
\r
139 <Size>NumBuckets</Size>
\r
140 <ValuePointer>Buckets</ValuePointer>
\r
145 <Type Name="llvm::StringMap<*,*>">
\r
146 <DisplayString>{{ size={ItemSize}, buckets={NumBuckets} }}</DisplayString>
\r
148 <Item Name="[size]">ItemSize</Item>
\r
149 <Item Name="[buckets]">NumBuckets</Item>
\r
151 <Size>NumBuckets</Size>
\r
152 <ValuePointer>(MapEntryTy**)TheTable</ValuePointer>
\r
157 <Type Name="llvm::StringMapEntry<*>">
\r
158 <DisplayString Condition="StrLen == 0">empty</DisplayString>
\r
159 <DisplayString Condition="StrLen != 0">({this+1,s}, {second})</DisplayString>
\r
161 <Item Name="[key]">this+1,s</Item>
\r
162 <Item Name="[value]" Condition="StrLen != 0">second</Item>
\r
166 <Type Name="llvm::Triple">
\r
167 <DisplayString>{Data}</DisplayString>
\r
170 <Type Name="llvm::Optional<*>">
\r
171 <DisplayString Condition="!hasVal">empty</DisplayString>
\r
172 <DisplayString Condition="hasVal">{*(($T1 *)(unsigned char *)storage.buffer)}</DisplayString>
\r
174 <Item Name="[underlying]" Condition="hasVal">*(($T1 *)(unsigned char *)storage.buffer)</Item>
\r