mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move most type metadata lookups into their own readnone
functions, and make those functions memoize the result. This memoization can be both threadsafe and extremely fast because of the memory ordering rules of the platforms we're targeting: x86 is very permissive, and ARM has a very convenient address-dependence rule which happens to exactly match the semantics we need. Swift SVN r20381
This commit is contained in:
@@ -112,6 +112,8 @@ NODE(Type)
|
||||
NODE(TypeAlias)
|
||||
NODE(TypeList)
|
||||
NODE(TypeMetadata)
|
||||
NODE(TypeMetadataAccessFunction)
|
||||
NODE(TypeMetadataLazyCache)
|
||||
NODE(UncurriedFunctionType)
|
||||
NODE(Unknown)
|
||||
NODE(Unmanaged)
|
||||
|
||||
Reference in New Issue
Block a user