Function hasResultWip [src]

Prototype

pub fn hasResultWip(self: Instruction.Index, wip: *const WipFunction) bool

Parameters

self: Instruction.Indexwip: *const WipFunction

Source

pub fn hasResultWip(self: Instruction.Index, wip: *const WipFunction) bool { return switch (wip.instructions.items(.tag)[@intFromEnum(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, }; }