pub fn not(self: *WipFunction, val: Value, name: []const u8) Allocator.Error!Value
self: *WipFunction
val: Value
name: []const u8
6584 6585 6586 6587 6588 6589 6590 6591
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); }