Function neg [src]
Prototype
pub fn neg(self: *WipFunction, val: Value, name: []const u8) Allocator.Error!Value
Parameters
self: *WipFunction
val: Value
name: []const u8
Source
pub fn neg(self: *WipFunction, val: Value, name: []const u8) Allocator.Error!Value {
return self.bin(.sub, try self.builder.zeroInitValue(val.typeOfWip(self)), val, name);
}