[llvm] 50c19b4 - Fix MSVC natvis visualisation of llvm::FixedVectorTyID and ScalableVectorTyID

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 05:43:43 PST 2021


Author: Simon Pilgrim
Date: 2021-02-15T13:43:31Z
New Revision: 50c19b4c11ec9946fca536b9940680311726d2ef

URL: https://github.com/llvm/llvm-project/commit/50c19b4c11ec9946fca536b9940680311726d2ef
DIFF: https://github.com/llvm/llvm-project/commit/50c19b4c11ec9946fca536b9940680311726d2ef.diff

LOG: Fix MSVC natvis visualisation of llvm::FixedVectorTyID and ScalableVectorTyID

VectorTyID was replaced with FixedVectorTyID and ScalableVectorTyID

Added: 
    

Modified: 
    llvm/utils/LLVMVisualizers/llvm.natvis

Removed: 
    


################################################################################
diff  --git a/llvm/utils/LLVMVisualizers/llvm.natvis b/llvm/utils/LLVMVisualizers/llvm.natvis
index 69d2026feb3b..6e75ebd6f4bb 100644
--- a/llvm/utils/LLVMVisualizers/llvm.natvis
+++ b/llvm/utils/LLVMVisualizers/llvm.natvis
@@ -289,14 +289,18 @@ For later versions of Visual Studio, no setup is required.
         </Expand>
       </Synthetic>
 
-      <Item Name="ElementType" Condition="ID == llvm::Type::TypeID::ArrayTyID || ID == llvm::Type::TypeID::VectorTyID">*ContainedTys</Item>
+      <Item Name="ElementType" Condition="ID == llvm::Type::TypeID::ArrayTyID">*ContainedTys</Item>
       <Item Name="NumElements" Condition="ID == llvm::Type::TypeID::ArrayTyID">((llvm::ArrayType*)this)->NumElements</Item>
 
+      <Item Name="ElementType" Condition="ID == llvm::Type::TypeID::FixedVectorTyID">*ContainedTys</Item>
+      <Item Name="NumElements" Condition="ID == llvm::Type::TypeID::FixedVectorTyID">((llvm::VectorType*)this)->ElementQuantity</Item>
+
+      <Item Name="ElementType" Condition="ID == llvm::Type::TypeID::ScalableVectorTyID">*ContainedTys</Item>
+      <Item Name="MinNumElements" Condition="ID == llvm::Type::TypeID::ScalableVectorTyID">((llvm::VectorType*)this)->ElementQuantity</Item>
+
       <Item Name="AddressSpace" Condition="ID == llvm::Type::TypeID::PointerTyID">SubclassData</Item>
       <Item Name="PointeeType" Condition="ID == llvm::Type::TypeID::PointerTyID">*ContainedTys</Item>
 
-      <Item Name="NumElements" Condition="ID == llvm::Type::TypeID::VectorTyID">((llvm::VectorType*)this)->NumElements</Item>
-
       <Item Name="Context">Context</Item>
     </Expand>
   </Type>


        


More information about the llvm-commits mailing list