mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: in multi-threaded compilation, create all specializations of a function in the same LLVM module.
This increases the chances that multiple specializations from the same function can be merged with LLVM's function merge pass.
This commit is contained in:
@@ -863,6 +863,10 @@ public:
|
||||
validateSubclassScope(getClassSubclassScope(), isThunk(), Info);
|
||||
SpecializationInfo = Info;
|
||||
}
|
||||
|
||||
/// If this function is a specialization, return the original function from
|
||||
/// which this function was specialized.
|
||||
const SILFunction *getOriginOfSpecialization() const;
|
||||
|
||||
/// Retrieve the generic environment containing the mapping from interface
|
||||
/// types to context archetypes for this function. Only present if the
|
||||
|
||||
Reference in New Issue
Block a user