xref: /llvm-project/mlir/utils/MLIRVisualizers/mlir.natvis (revision f98bb414f58ee447481e4de19625baff22718343)
1<?xml version="1.0" encoding="utf-8"?>
2<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3  <Type Name="mlir::detail::StorageUserBase&lt;*&gt;">
4    <!--handles mlir::Type-->
5    <DisplayString>{"$T3"}</DisplayString>
6    <Expand>
7      <ExpandedItem>($T3*)impl</ExpandedItem>
8    </Expand>
9  </Type>
10
11  <Type Name="mlir::Value">
12    <DisplayString>{ownerAndKind}</DisplayString>
13    <Expand>
14      <Item Name="OpResult" Condition=
15            "((ownerAndKind.Value &gt;&gt; ImplType::InfoTy::IntShift) &amp; ImplType::InfoTy::IntMask) &lt; mlir::Value::Kind::TrailingOpResult">
16        (Operation*)(ImplType::InfoTy::PointerBitMask &amp; ownerAndKind.Value)
17      </Item>
18      <Item Name="TrailingOpResult" Condition=
19            "((ownerAndKind.Value &gt;&gt; ImplType::InfoTy::IntShift) &amp; ImplType::InfoTy::IntMask) == mlir::Value::Kind::TrailingOpResult">
20        (detail::TrailingOpResult*)(ImplType::InfoTy::PointerBitMask &amp; ownerAndKind.Value)
21      </Item>
22      <Item Name="BlockArgument" Condition=
23            "((ownerAndKind.Value &gt;&gt; ImplType::InfoTy::IntShift) &amp; ImplType::InfoTy::IntMask) == mlir::Value::Kind::BlockArgument">
24        (detail::BlockArgumentImpl*)(ImplType::InfoTy::PointerBitMask &amp; ownerAndKind.Value)
25      </Item>
26      <Item Name="ownerAndKind">ownerAndKind</Item>
27    </Expand>
28  </Type>
29
30  <Type Name="mlir::Location">
31    <Expand>
32      <ExpandedItem >(LocationAttr)impl</ExpandedItem>
33    </Expand>
34  </Type>
35</AutoVisualizer>
36
37