DoxigAlpha

not

Function parameters

Parameters

#
self:*WipFunction
name:[]const u8

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= 16

Values

#

Source

Implementation

#
pub fn not(self: *WipFunction, val: Value, name: []const u8) Allocator.Error!Value {
    const ty = val.typeOfWip(self);
    const all_ones = try self.builder.splatValue(
        ty,
        try self.builder.intConst(ty.scalarType(self.builder), -1),
    );
    return self.bin(.xor, val, all_ones, name);
}