Function callIntrinsic [src]

Prototype

pub fn callIntrinsic( self: *WipFunction, fast: FastMathKind, function_attributes: FunctionAttributes, id: Intrinsic, overload: []const Type, args: []const Value, name: []const u8, ) Allocator.Error!Value

Parameters

self: *WipFunctionfast: FastMathKindfunction_attributes: FunctionAttributesid: Intrinsicoverload: []const Typeargs: []const Valuename: []const u8

Source

pub fn callIntrinsic( self: *WipFunction, fast: FastMathKind, function_attributes: FunctionAttributes, id: Intrinsic, overload: []const Type, args: []const Value, name: []const u8, ) Allocator.Error!Value { const intrinsic = try self.builder.getIntrinsic(id, overload); return self.call( fast.toCallKind(), CallConv.default, function_attributes, intrinsic.typeOf(self.builder), intrinsic.toValue(self.builder), args, name, ); }