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

DerivedType

Public Struct
std.zig.llvm.ir.ModuleBlock.MetadataBlock.DerivedType
pub const DerivedType = 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
offset_in_bits: u64

Values

File

zig/llvm/ir.zig:1804
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
        pub const DerivedType = struct {
            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.MetadataBlock.Code.DERIVED_TYPE) },
                .{ .literal = 0 }, // is distinct
                .{ .fixed = 32 }, // tag
                MetadataAbbrev, // name
                MetadataAbbrev, // file
                LineAbbrev, // line
                MetadataAbbrev, // scope
                MetadataAbbrev, // underlying type
                .{ .vbr = 6 }, // size in bits
                .{ .vbr = 6 }, // align in bits
                .{ .vbr = 6 }, // offset in bits
                .{ .literal = 0 }, // flags
                .{ .literal = 0 }, // extra data
            };

            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,
            offset_in_bits: u64,
        }