-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebe4772
commit 19f58f4
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="boost::unordered::unordered_flat_map<*>"> | ||
<Intrinsic Name="sz" Expression="table_.size_"/> | ||
<DisplayString Condition="sz() == 0">empty</DisplayString> | ||
<DisplayString>{{ size={sz()} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">sz()</Item> | ||
<CustomListItems MaxItemsPerView="1024"> | ||
<Variable Name="p" InitialValue="table_.arrays.elements" /> | ||
<Variable Name="pg" InitialValue="table_.arrays.groups" /> | ||
<Variable Name="n" InitialValue="0" /> | ||
<Size>sz()</Size> | ||
<Loop> | ||
<If Condition="n==15"> | ||
<Break Condition="reinterpret_cast<const unsigned char*>(&pg->m)[n] == 1"/> | ||
<Exec>n=0</Exec> | ||
<Exec>pg++</Exec> | ||
</If> | ||
<Else> | ||
<If Condition="reinterpret_cast<const unsigned char*>(&pg->m)[n] > 1"> | ||
<Item>*p</Item> | ||
</If> | ||
<Exec>n++</Exec> | ||
<Exec>p++</Exec> | ||
</Else> | ||
</Loop> | ||
</CustomListItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="slang::real_t"> | ||
<DisplayString>{v}</DisplayString> | ||
</Type> | ||
<Type Name="slang::shortreal_t"> | ||
<DisplayString>{v}</DisplayString> | ||
</Type> | ||
<Type Name="slang::ConstantValue"> | ||
<DisplayString>{value}</DisplayString> | ||
</Type> | ||
<Type Name="slang::ConstantValue::NullPlaceholder"> | ||
<DisplayString>null</DisplayString> | ||
</Type> | ||
<Type Name="slang::ConstantValue::UnboundedPlaceholder"> | ||
<DisplayString>$</DisplayString> | ||
</Type> | ||
<Type Name="slang::SVInt"> | ||
<DisplayString Condition="bitWidth <= BITS_PER_WORD && !unknownFlag && signFlag">{bitWidth}'sd{val}</DisplayString> | ||
<DisplayString Condition="bitWidth <= BITS_PER_WORD && !unknownFlag && !signFlag">{bitWidth}'d{val}</DisplayString> | ||
<DisplayString Condition="unknownFlag"><unknown bits></DisplayString> | ||
<DisplayString>{{bits={bitWidth} signed={signFlag}}}</DisplayString> | ||
</Type> | ||
</AutoVisualizer> |