Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

CompositeType

Public Struct
std.zig.llvm.ir.ModuleBlock.MetadataBlock.CompositeType
pub const CompositeType = struct

Fields

tag: u32
name: Builder.Metadata.String.Optional
file: Builder.Metadata.Optional
line: u32
scope: Builder.Metadata.Optional
underlying_type: Builder.Metadata.Optional
size_in_bits: u64
align_in_bits: u64
flags: Builder.Metadata.DIFlags
elements: Builder.Metadata.Optional

Values

File

zig/llvm/ir.zig:1765
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
        pub const CompositeType = struct {
            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.MetadataBlock.Code.COMPOSITE_TYPE) },
                .{ .literal = 0 | 0x2 }, // is distinct | is not used in old type ref
                .{ .fixed = 32 }, // tag
                MetadataAbbrev, // name
                MetadataAbbrev, // file
                LineAbbrev, // line
                MetadataAbbrev, // scope
                MetadataAbbrev, // underlying type
                .{ .vbr = 6 }, // size in bits
                .{ .vbr = 6 }, // align in bits
                .{ .literal = 0 }, // offset in bits
                .{ .fixed = 32 }, // flags
                MetadataAbbrev, // elements
                .{ .literal = 0 }, // runtime lang
                .{ .literal = 0 }, // vtable holder
                .{ .literal = 0 }, // template params
                .{ .literal = 0 }, // raw id
                .{ .literal = 0 }, // discriminator
                .{ .literal = 0 }, // data location
                .{ .literal = 0 }, // associated
                .{ .literal = 0 }, // allocated
                .{ .literal = 0 }, // rank
                .{ .literal = 0 }, // annotations
            };

            tag: u32,
            name: Builder.Metadata.String.Optional,
            file: Builder.Metadata.Optional,
            line: u32,
            scope: Builder.Metadata.Optional,
            underlying_type: Builder.Metadata.Optional,
            size_in_bits: u64,
            align_in_bits: u64,
            flags: Builder.Metadata.DIFlags,
            elements: Builder.Metadata.Optional,
        }