Zig 0.17.0-dev (Split by item) 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.
std › zig › llvm › Builder › WipFunction › Instruction › Index › hasResultWip Public Function hasResultWip Doc Source Public Function std.zig.llvm.Builder.WipFunction.Instruction.Index.hasResultWip
pub fn hasResultWip (self : Instruction .Index , wip : *const WipFunction ) bool Params File zig/llvm/Builder.zig: 5601
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 pub fn hasResultWip (self : Instruction .Index , wip : *const WipFunction ) bool {
return switch (wip .instructions .items (.tag )[@backingInt (self )]) {
.br ,
.br_cond ,
.fence ,
.indirectbr ,
.ret ,
.@"ret void" ,
.store ,
.@"store atomic" ,
.@"switch" ,
.@"unreachable" ,
.block ,
=> false ,
.call ,
.@"call fast" ,
.@"musttail call" ,
.@"musttail call fast" ,
.@"notail call" ,
.@"notail call fast" ,
.@"tail call" ,
.@"tail call fast" ,
=> self .typeOfWip (wip ) != .void ,
else => true ,
};
}