[SIL] Add asmname attribute to SIL functions and global variables

The asmname attribute allows one to specify the name that will be used
when lowering a given SIL declaration to LLVM IR. It is not currently
exposed in the surface language.

Make sure this attribute round-trips through the parser and
serialization.

Part of rdar://137014448O.
This commit is contained in:
Doug Gregor
2025-10-13 16:31:22 -07:00
parent 232323a84a
commit 3e1ea3c0f7
12 changed files with 210 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t SWIFTMODULE_VERSION_MINOR = 965; // WriteImplKindField and ReadWriteImplKindField size
const uint16_t SWIFTMODULE_VERSION_MINOR = 966; // SIL asmname
/// A standard hash seed used for all string hashes in a serialized module.
///