FunctionReference
public struct FunctionReference : Constant, Hashable, Sendable
extension FunctionReference: CustomStringConvertible
A Hylo IR reference to a user function.
-
The ID of the referred IR function.
Declaration
Swift
public let function: Function.ID -
The type of the referred IR function.
Declaration
Swift
public let type: IR.Type -
If
functionis generic, arguments corresponding to its generic parameters.Declaration
Swift
public let specialization: GenericArguments -
Creates a reference to
f, which is inmodule, without specialization.Requires
faccepts no generic parameters. -
Creates a reference to
f, which is inmodule, specialized byspecializationinscopeOfUse.Declaration
-
Creates a reference to the lowered form of
dinmodule, without specialization.Requires
dcan be lowered to an IR function.Declaration
Swift
public init(to d: AnyDeclID, in module: inout Module) -
Creates a reference to the lowered form of
dinmodule, specialized byspecializationinscopeOfUse.Requires
dcan be lowered to an IR function.Declaration
Swift
public init( to d: AnyDeclID, in module: inout Module, specializedBy specialization: GenericArguments, in scopeOfUse: AnyScopeID ) -
Declaration
Swift
public var description: String { get }
View on GitHub