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

Subprogram

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

Fields

Values

File

zig/llvm/ir.zig:1678
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
        pub const Subprogram = struct {
            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.MetadataBlock.Code.SUBPROGRAM) },
                .{ .literal = 0b111 }, // is distinct | has sp flags | has flags
                MetadataAbbrev, // scope
                MetadataAbbrev, // name
                MetadataAbbrev, // linkage name
                MetadataAbbrev, // file
                LineAbbrev, // line
                MetadataAbbrev, // type
                LineAbbrev, // scope line
                .{ .literal = 0 }, // containing type
                .{ .fixed = 32 }, // sp flags
                .{ .literal = 0 }, // virtual index
                .{ .fixed = 32 }, // flags
                MetadataAbbrev, // compile unit
                .{ .literal = 0 }, // template params
                .{ .literal = 0 }, // declaration
                .{ .literal = 0 }, // retained nodes
                .{ .literal = 0 }, // this adjustment
                .{ .literal = 0 }, // thrown types
                .{ .literal = 0 }, // annotations
                .{ .literal = 0 }, // target function name
            };

            scope: Builder.Metadata.Optional,
            name: Builder.Metadata.String.Optional,
            linkage_name: Builder.Metadata.String.Optional,
            file: Builder.Metadata.Optional,
            line: u32,
            ty: Builder.Metadata.Optional,
            scope_line: u32,
            sp_flags: Builder.Metadata.Subprogram.DISPFlags,
            flags: Builder.Metadata.DIFlags,
            compile_unit: Builder.Metadata.Optional,
        }