hylo
hylo copied to clipboard
Uniformize the creation of function references
Declaration references to functions are typically turned into function references during IR generation. For example:
https://github.com/hylo-lang/hylo/blob/f73cfecf8024f6a58f37ccb759d6f22743663221/Sources/IR/Emitter.swift#L1267-L1268
Similar code is repeated in several places and should be refactored into a dedicated function.