mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Modeling builtins as first-class function values doesn't really make sense because there's no real function value to emit, and modeling them this way complicates passes that work with builtins because they have to invent function types for builtin invocations. It's much more straightforward to have a single instruction that references the builtin by ID, along with the type information for the necessary values, type parameters, and results, so add a new "builtin" instruction that directly represents a builtin invocation. NFC yet. Swift SVN r22690
18 KiB
18 KiB