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::SmallPtrSet<*,*>">
\r
112 <DisplayString Condition="CurArray == SmallArray">{{ [Small Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
\r
113 <DisplayString Condition="CurArray != SmallArray">{{ [Big Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
\r
115 <Item Name="[size]">NumElements</Item>
\r
116 <Item Name="[capacity]">CurArraySize</Item>
\r
118 <Size>CurArraySize</Size>
\r
119 <ValuePointer>($T1*)CurArray</ValuePointer>
\r
124 <Type Name="llvm::DenseMap<*,*,*>">
\r
125 <DisplayString Condition="NumEntries == 0">empty</DisplayString>
\r
126 <DisplayString Condition="NumEntries != 0">{{ size={NumEntries}, buckets={NumBuckets} }}</DisplayString>
\r
128 <Item Name="[size]">NumEntries</Item>
\r
129 <Item Name="[buckets]">NumBuckets</Item>
\r
131 <Size>NumBuckets</Size>
\r
132 <ValuePointer>Buckets</ValuePointer>
\r
137 <Type Name="llvm::StringMap<*,*>">
\r
138 <DisplayString>{{ size={NumItems}, buckets={NumBuckets} }}</DisplayString>
\r
140 <Item Name="[size]">NumItems</Item>
\r
141 <Item Name="[buckets]">NumBuckets</Item>
\r
143 <Size>NumBuckets</Size>
\r
144 <ValuePointer>(MapEntryTy**)TheTable</ValuePointer>
\r
149 <Type Name="llvm::StringMapEntry<*>">
\r
150 <DisplayString Condition="StrLen == 0">empty</DisplayString>
\r
151 <DisplayString Condition="StrLen != 0">({this+1,s}, {second})</DisplayString>
\r
153 <Item Name="[key]">this+1,s</Item>
\r
154 <Item Name="[value]" Condition="StrLen != 0">second</Item>
\r
158 <Type Name="llvm::Triple">
\r
159 <DisplayString>{Data}</DisplayString>
\r
162 <Type Name="llvm::Optional<*>">
\r
163 <DisplayString Condition="!hasVal">empty</DisplayString>
\r
164 <DisplayString Condition="hasVal">{*(($T1 *)(unsigned char *)storage.buffer)}</DisplayString>
\r
166 <Item Name="[underlying]" Condition="hasVal">*(($T1 *)(unsigned char *)storage.buffer)</Item>
\r