2013-01-25 23:37:25 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Visual Studio 2012 Native Debugging Visualizers for LLVM
|
|
|
|
|
|
|
|
Put this file into "%USERPROFILE%\Documents\Visual Studio 2012\Visualizers"
|
|
|
|
or create a symbolic link so it updates automatically.
|
|
|
|
-->
|
|
|
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
|
|
|
|
|
|
|
<Type Name="llvm::SmallVectorImpl<*>">
|
|
|
|
<DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) == 0">empty</DisplayString>
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) != 0">{{ size={($T1*)EndX - ($T1*)BeginX} }}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
|
|
|
<Item Name="[size]">($T1*)EndX - ($T1*)BeginX</Item>
|
|
|
|
<Item Name="[capacity]">($T1*)CapacityX - ($T1*)BeginX</Item>
|
|
|
|
<ArrayItems>
|
|
|
|
<Size>($T1*)EndX - ($T1*)BeginX</Size>
|
|
|
|
<ValuePointer>($T1*)BeginX</ValuePointer>
|
|
|
|
</ArrayItems>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::SmallString<*>">
|
|
|
|
<DisplayString>{BeginX,s}</DisplayString>
|
|
|
|
<StringView>BeginX,s</StringView>
|
|
|
|
<Expand>
|
|
|
|
<Item Name="[size]">(char*)EndX - (char*)BeginX</Item>
|
|
|
|
<Item Name="[capacity]">(char*)CapacityX - (char*)BeginX</Item>
|
|
|
|
<ArrayItems>
|
|
|
|
<Size>(char*)EndX - (char*)BeginX</Size>
|
|
|
|
<ValuePointer>(char*)BeginX</ValuePointer>
|
|
|
|
</ArrayItems>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::StringRef">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString>{Data,[Length]s}</DisplayString>
|
|
|
|
<StringView>Data,[Length]s</StringView>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[size]">Length</Item>
|
2013-01-25 23:37:25 +00:00
|
|
|
<ArrayItems>
|
|
|
|
<Size>Length</Size>
|
|
|
|
<ValuePointer>Data</ValuePointer>
|
|
|
|
</ArrayItems>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::PointerIntPair<*,*,*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString>{(void*)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[ptr]">($T1*)(Value & PointerBitMask)</Item>
|
|
|
|
<Item Name="[int]">($T3)((Value >> IntShift) & IntMask)</Item>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::PointerUnion<*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">{"$T1", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
|
|
|
|
<DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">{"$T2", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">($T1)(Val.Value & Val.PointerBitMask)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">($T2)(Val.Value & Val.PointerBitMask)</ExpandedItem>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::PointerUnion3<*,*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">{"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
|
|
|
<DisplayString Condition="(Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
|
|
|
<DisplayString Condition="(Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::PointerUnion4<*,*,*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<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>
|
|
|
|
<DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
|
|
|
<DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
|
|
|
<DisplayString Condition="(Val.Val.Value & 3) == 3">{"$T4", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
|
|
|
<ExpandedItem Condition="(Val.Val.Value & 3) == 3">($T4)((Val.Val.Value >> 2) << 2)</ExpandedItem>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::iplist<*,*>">
|
|
|
|
<DisplayString Condition="Head == 0">{{ empty }}</DisplayString>
|
|
|
|
<DisplayString Condition="Head != 0">{{ head={Head} }}</DisplayString>
|
|
|
|
<Expand>
|
|
|
|
<LinkedListItems>
|
|
|
|
<HeadPointer>Head</HeadPointer>
|
|
|
|
<NextPointer>Next</NextPointer>
|
|
|
|
<ValueNode>this</ValueNode>
|
|
|
|
</LinkedListItems>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::IntrusiveRefCntPtr<*>">
|
|
|
|
<DisplayString Condition="Obj == 0">empty</DisplayString>
|
|
|
|
<DisplayString Condition="(Obj != 0) && (Obj->ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
|
|
|
|
<DisplayString Condition="(Obj != 0) && (Obj->ref_cnt != 1)">RefPtr [{Obj->ref_cnt} refs] {*Obj}</DisplayString>
|
|
|
|
<Expand>
|
|
|
|
<Item Condition="Obj != 0" Name="[refs]">Obj->ref_cnt</Item>
|
2014-02-07 22:57:20 +00:00
|
|
|
<ExpandedItem Condition="Obj != 0">Obj</ExpandedItem>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::SmallPtrSet<*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="CurArray == SmallArray">{{ [Small Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
|
|
|
|
<DisplayString Condition="CurArray != SmallArray">{{ [Big Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[size]">NumElements</Item>
|
|
|
|
<Item Name="[capacity]">CurArraySize</Item>
|
|
|
|
<ArrayItems>
|
|
|
|
<Size>CurArraySize</Size>
|
|
|
|
<ValuePointer>($T1*)CurArray</ValuePointer>
|
|
|
|
</ArrayItems>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::DenseMap<*,*,*>">
|
|
|
|
<DisplayString Condition="NumEntries == 0">empty</DisplayString>
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="NumEntries != 0">{{ size={NumEntries}, buckets={NumBuckets} }}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[size]">NumEntries</Item>
|
|
|
|
<Item Name="[buckets]">NumBuckets</Item>
|
2013-01-25 23:37:25 +00:00
|
|
|
<ArrayItems>
|
|
|
|
<Size>NumBuckets</Size>
|
|
|
|
<ValuePointer>Buckets</ValuePointer>
|
|
|
|
</ArrayItems>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::StringMap<*,*>">
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString>{{ size={ItemSize}, buckets={NumBuckets} }}</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[size]">ItemSize</Item>
|
|
|
|
<Item Name="[buckets]">NumBuckets</Item>
|
|
|
|
<ArrayItems>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Size>NumBuckets</Size>
|
2014-02-07 22:57:20 +00:00
|
|
|
<ValuePointer>(MapEntryTy**)TheTable</ValuePointer>
|
|
|
|
</ArrayItems>
|
2013-01-25 23:37:25 +00:00
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::StringMapEntry<*>">
|
|
|
|
<DisplayString Condition="StrLen == 0">empty</DisplayString>
|
2014-02-07 22:57:20 +00:00
|
|
|
<DisplayString Condition="StrLen != 0">({this+1,s}, {second})</DisplayString>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Expand>
|
2014-02-07 22:57:20 +00:00
|
|
|
<Item Name="[key]">this+1,s</Item>
|
2013-01-25 23:37:25 +00:00
|
|
|
<Item Name="[value]" Condition="StrLen != 0">second</Item>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
|
|
|
|
|
|
|
<Type Name="llvm::Triple">
|
|
|
|
<DisplayString>{Data}</DisplayString>
|
|
|
|
</Type>
|
2014-03-03 21:15:07 +00:00
|
|
|
|
|
|
|
<Type Name="llvm::Optional<*>">
|
|
|
|
<DisplayString Condition="!hasVal">empty</DisplayString>
|
|
|
|
<DisplayString Condition="hasVal">{*(($T1 *)(unsigned char *)storage.buffer)}</DisplayString>
|
|
|
|
<Expand>
|
|
|
|
<Item Name="[underlying]" Condition="hasVal">*(($T1 *)(unsigned char *)storage.buffer)</Item>
|
|
|
|
</Expand>
|
|
|
|
</Type>
|
2013-01-25 23:37:25 +00:00
|
|
|
</AutoVisualizer>
|