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 Function

isTerminatorWip

Public Function
std.zig.llvm.Builder.Function.Instruction.Index.isTerminatorWip
pub fn isTerminatorWip(self: Instruction.Index, wip: *const WipFunction) bool

Params

File

zig/llvm/Builder.zig:5587
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
            pub fn isTerminatorWip(self: Instruction.Index, wip: *const WipFunction) bool {
                return switch (wip.instructions.items(.tag)[@backingInt(self)]) {
                    .br,
                    .br_cond,
                    .indirectbr,
                    .ret,
                    .@"ret void",
                    .@"switch",
                    .@"unreachable",
                    => true,
                    else => false,
                };
            }