mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Introduce @specialized attribute
Implements SE-0460 -- the non-underscored version of @specialized. It allows to specify "internal" (not abi affecting) specializations. rdar://150033316
This commit is contained in:
@@ -65,8 +65,8 @@ void SILFunctionBuilder::addFunctionAttributes(
|
||||
F->addSemanticsAttr(semantics::FORCE_EMIT_OPT_REMARK_PREFIX);
|
||||
|
||||
// Propagate @_specialize.
|
||||
for (auto *A : Attrs.getAttributes<SpecializeAttr>()) {
|
||||
auto *SA = cast<SpecializeAttr>(A);
|
||||
for (auto *A : Attrs.getAttributes<AbstractSpecializeAttr>()) {
|
||||
auto *SA = cast<AbstractSpecializeAttr>(A);
|
||||
auto kind =
|
||||
SA->getSpecializationKind() == SpecializeAttr::SpecializationKind::Full
|
||||
? SILSpecializeAttr::SpecializationKind::Full
|
||||
|
||||
Reference in New Issue
Block a user