[llvm] r362860 - Visualizer for APInt and remove obsolete visualizer
Mike Spertus via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 17:23:08 PDT 2019
Author: mps
Date: Fri Jun 7 17:23:08 2019
New Revision: 362860
URL: http://llvm.org/viewvc/llvm-project?rev=362860&view=rev
Log:
Visualizer for APInt and remove obsolete visualizer
Visualizer for the simple case of APInt (uints < 2^64)
as will be required for Clang ConstantArrayType visualizer.
Also, removed obsolete VS2013 SmallVectorVisualizer as VS2013
is no longer supported.
Modified:
llvm/trunk/utils/LLVMVisualizers/llvm.natvis
Modified: llvm/trunk/utils/LLVMVisualizers/llvm.natvis
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/LLVMVisualizers/llvm.natvis?rev=362860&r1=362859&r2=362860&view=diff
==============================================================================
--- llvm/trunk/utils/LLVMVisualizers/llvm.natvis (original)
+++ llvm/trunk/utils/LLVMVisualizers/llvm.natvis Fri Jun 7 17:23:08 2019
@@ -8,20 +8,6 @@ For Visual Studio 2013 only, put this fi
For later versions of Visual Studio, no setup is required.
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
- <!-- VS2013 -->
- <Type Name="llvm::SmallVectorImpl<*>" Priority="MediumLow">
- <DisplayString Condition="Size == 0">empty</DisplayString>
- <DisplayString Condition="Size != 0">{{ size={Size} }}</DisplayString>
- <Expand>
- <Item Name="[size]">Size</Item>
- <Item Name="[capacity]">Capacity</Item>
- <ArrayItems>
- <Size>Size</Size>
- <ValuePointer>($T1*)BeginX</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
- <!-- VS2015 and up -->
<Type Name="llvm::SmallVectorImpl<*>">
<DisplayString IncludeView ="elt0" Condition="Size == 0"></DisplayString>
<DisplayString IncludeView ="elt0">{(($T1*)BeginX)[0]}{*this,view(elt1)}</DisplayString>
@@ -45,6 +31,11 @@ For later versions of Visual Studio, no
</ArrayItems>
</Expand>
</Type>
+ <Type Name="llvm::APInt">
+ <!-- For now, only handle up to 64-bit unsigned ints -->
+ <DisplayString Condition="BitWidth <= 64">{U.VAL}</DisplayString>
+ <DisplayString>Cannot visualize APInts longer than 64 bits</DisplayString>
+ </Type>
<Type Name="llvm::ArrayRef<*>">
<DisplayString Condition="Length == 0">empty</DisplayString>
<DisplayString Condition="Length != 0">{{ size={Length} }}</DisplayString>
More information about the llvm-commits
mailing list