mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Lower AST @noDerivative attribute to SIL.
Add SILGen test.
This commit is contained in:
@@ -4127,6 +4127,13 @@ public:
|
||||
return ExtInfo(NoEscape ? (Bits | NoEscapeMask) : (Bits & ~NoEscapeMask),
|
||||
Other);
|
||||
}
|
||||
ExtInfo
|
||||
withDifferentiabilityKind(DifferentiabilityKind differentiability) const {
|
||||
return ExtInfo(
|
||||
(Bits & ~DifferentiabilityMask) |
|
||||
((unsigned)differentiability << DifferentiabilityMaskOffset),
|
||||
Other);
|
||||
}
|
||||
|
||||
std::pair<unsigned, const void *> getFuncAttrKey() const {
|
||||
return std::make_pair(Bits, Other.ClangFunctionType);
|
||||
|
||||
Reference in New Issue
Block a user