Skip to content

Commit 6eeff77

Browse files
committed
---
yaml --- r: 343293 b: refs/heads/master-rebranch c: c904a59 h: refs/heads/master i: 343291: 21eb460
1 parent a4f08c1 commit 6eeff77

File tree

144 files changed

+5185
-4592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+5185
-4592
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: 75d482a1f5218059a12d3865dba9d3c5d0568dba
1458+
refs/heads/master-rebranch: c904a59de761ede332239c104c434b830d87e556
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec

branches/master-rebranch/benchmark/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ set(SWIFT_BENCH_MODULES
8787
single-source/Exclusivity
8888
single-source/ExistentialPerformance
8989
single-source/Fibonacci
90-
single-source/FindStringNaive
9190
single-source/FlattenList
9291
single-source/FloatingPointParsing
9392
single-source/FloatingPointPrinting

branches/master-rebranch/benchmark/single-source/FindStringNaive.swift

Lines changed: 0 additions & 185 deletions
This file was deleted.

branches/master-rebranch/benchmark/utils/main.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ import ErrorHandling
7575
import Exclusivity
7676
import ExistentialPerformance
7777
import Fibonacci
78-
import FindStringNaive
7978
import FlattenList
8079
import FloatingPointParsing
8180
import FloatingPointPrinting
@@ -254,7 +253,6 @@ registerBenchmark(ErrorHandling)
254253
registerBenchmark(Exclusivity)
255254
registerBenchmark(ExistentialPerformance)
256255
registerBenchmark(Fibonacci)
257-
registerBenchmark(FindStringNaive)
258256
registerBenchmark(FlattenListLoop)
259257
registerBenchmark(FlattenListFlatMap)
260258
registerBenchmark(FloatingPointParsing)

branches/master-rebranch/include/swift/AST/ASTContext.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ namespace swift {
112112

113113
enum class KnownProtocolKind : uint8_t;
114114

115-
namespace namelookup {
116-
class ImportCache;
117-
}
118-
119115
namespace syntax {
120116
class SyntaxArena;
121117
}
@@ -687,9 +683,7 @@ class ASTContext final {
687683
/// If there is no Clang module loader, returns a null pointer.
688684
/// The loader is owned by the AST context.
689685
ClangModuleLoader *getDWARFModuleLoader() const;
690-
691-
namelookup::ImportCache &getImportCache() const;
692-
686+
693687
/// Asks every module loader to verify the ASTs it has loaded.
694688
///
695689
/// Does nothing in non-asserts (NDEBUG) builds.
@@ -826,7 +820,7 @@ class ASTContext final {
826820
/// of the given decl context.
827821
///
828822
/// \param IDC The context whose member decls should be lazily parsed.
829-
std::vector<Decl *> parseMembers(IterableDeclContext *IDC);
823+
void parseMembers(IterableDeclContext *IDC);
830824

831825
/// Get the lazy function data for the given generic context.
832826
///

branches/master-rebranch/include/swift/AST/ASTTypeIDZone.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ SWIFT_TYPEID(AncestryFlags)
3333
SWIFT_TYPEID_NAMED(GenericSignature *, GenericSignature)
3434
SWIFT_TYPEID_NAMED(GenericTypeParamType *, GenericTypeParamType)
3535
SWIFT_TYPEID(Requirement)
36-
SWIFT_TYPEID_NAMED(IterableDeclContext *, IterableDeclContext)

branches/master-rebranch/include/swift/AST/ASTTypeIDs.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,19 @@
1717
#ifndef SWIFT_AST_ASTTYPEIDS_H
1818
#define SWIFT_AST_ASTTYPEIDS_H
1919

20-
#include "swift/Basic/LLVM.h"
2120
#include "swift/Basic/TypeID.h"
2221
namespace swift {
2322

2423
class CustomAttr;
25-
class Decl;
2624
class GenericSignature;
2725
class GenericTypeParamType;
28-
class IterableDeclContext;
2926
class NominalTypeDecl;
30-
class OperatorDecl;
3127
struct PropertyWrapperBackingPropertyInfo;
3228
struct PropertyWrapperTypeInfo;
3329
enum class CtorInitializerKind;
3430
struct PropertyWrapperMutability;
35-
class ProtocolDecl;
3631
class Requirement;
37-
enum class ResilienceExpansion : unsigned;
3832
class Type;
39-
class ValueDecl;
4033
class VarDecl;
4134
class TypeAliasDecl;
4235
class Type;

branches/master-rebranch/include/swift/AST/Attr.def

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ SIMPLE_DECL_ATTR(_weakLinked, WeakLinked,
362362
OnSubscript | OnConstructor | OnEnumElement | OnExtension | UserInaccessible,
363363
75)
364364
SIMPLE_DECL_ATTR(frozen, Frozen,
365-
OnEnum | OnStruct,
365+
OnEnum | OnStruct |
366+
UserInaccessible,
366367
76)
367368
DECL_ATTR_ALIAS(_frozen, Frozen)
368369
SIMPLE_DECL_ATTR(_forbidSerializingReference, ForbidSerializingReference,

branches/master-rebranch/include/swift/AST/Builtins.def

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,6 @@ BUILTIN_MISC_OPERATION(Strideof, "strideof", "n", Special)
418418
/// IsPOD has type T.Type -> Bool
419419
BUILTIN_MISC_OPERATION(IsPOD, "ispod", "n", Special)
420420

421-
/// IsConcrete has type (T.Type) -> Bool
422-
///
423-
/// If the meta type T is concrete, we can always transform this to `true` at
424-
/// any time in SIL. If it's generic, then we lower it to `false` right before
425-
/// IRGen in IRGenPrepare. This allows for the optimizer to specialize this at
426-
/// -O and eliminate conditional code.
427-
BUILTIN_MISC_OPERATION(IsConcrete, "isConcrete", "n", Special)
428-
429421
/// IsBitwiseTakable has type T.Type -> Bool
430422
BUILTIN_MISC_OPERATION(IsBitwiseTakable, "isbitwisetakable", "n", Special)
431423

branches/master-rebranch/include/swift/AST/Decl.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7248,17 +7248,6 @@ void simple_display(llvm::raw_ostream &out, const Decl *decl);
72487248
/// Display ValueDecl subclasses.
72497249
void simple_display(llvm::raw_ostream &out, const ValueDecl *decl);
72507250

7251-
/// Display ExtensionDecls.
7252-
inline void simple_display(llvm::raw_ostream &out, const ExtensionDecl *decl) {
7253-
simple_display(out, static_cast<const Decl *>(decl));
7254-
}
7255-
7256-
/// Display NominalTypeDecls.
7257-
inline void simple_display(llvm::raw_ostream &out,
7258-
const NominalTypeDecl *decl) {
7259-
simple_display(out, static_cast<const Decl *>(decl));
7260-
}
7261-
72627251
/// Extract the source location from the given declaration.
72637252
SourceLoc extractNearestSourceLoc(const Decl *decl);
72647253

@@ -7272,11 +7261,6 @@ inline SourceLoc extractNearestSourceLoc(const GenericTypeDecl *type) {
72727261
return extractNearestSourceLoc(static_cast<const Decl *>(type));
72737262
}
72747263

7275-
/// Extract the source location from the given declaration.
7276-
inline SourceLoc extractNearestSourceLoc(const NominalTypeDecl *type) {
7277-
return extractNearestSourceLoc(static_cast<const Decl *>(type));
7278-
}
7279-
72807264
/// Extract the source location from the given declaration.
72817265
inline SourceLoc extractNearestSourceLoc(const AbstractFunctionDecl *func) {
72827266
return extractNearestSourceLoc(static_cast<const Decl *>(func));

branches/master-rebranch/include/swift/AST/DeclContext.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,8 @@ class IterableDeclContext {
699699
/// time, but I think it's a better trade to just keep a count here.
700700
unsigned MemberCount : 29;
701701

702-
/// Whether we have already added the parsed members into the context.
703-
unsigned AddedParsedMembers : 1;
702+
/// Whether parsing the members of this context has been delayed.
703+
unsigned HasUnparsedMembers : 1;
704704

705705
/// Whether delayed parsing detected a possible operator definition
706706
/// while skipping the body of this context.
@@ -722,8 +722,8 @@ class IterableDeclContext {
722722
IterableDeclContext(IterableDeclContextKind kind)
723723
: LastDeclAndKind(nullptr, kind) {
724724
MemberCount = 0;
725-
AddedParsedMembers = 0;
726725
HasOperatorDeclarations = 0;
726+
HasUnparsedMembers = 0;
727727
HasNestedClassDeclarations = 0;
728728
}
729729

@@ -732,7 +732,13 @@ class IterableDeclContext {
732732
return LastDeclAndKind.getInt();
733733
}
734734

735-
bool hasUnparsedMembers() const;
735+
bool hasUnparsedMembers() const {
736+
return HasUnparsedMembers;
737+
}
738+
739+
void setHasUnparsedMembers() {
740+
HasUnparsedMembers = 1;
741+
}
736742

737743
bool maybeHasOperatorDeclarations() const {
738744
return HasOperatorDeclarations;
@@ -833,14 +839,9 @@ void simple_display(llvm::raw_ostream &out, const ParamT *dc) {
833839
out << "(null)";
834840
}
835841

836-
void simple_display(llvm::raw_ostream &out, const IterableDeclContext *idc);
837-
838842
/// Extract the source location from the given declaration context.
839843
SourceLoc extractNearestSourceLoc(const DeclContext *dc);
840844

841-
/// Extract the source location from the given declaration context.
842-
SourceLoc extractNearestSourceLoc(const IterableDeclContext *idc);
843-
844845
} // end namespace swift
845846

846847
namespace llvm {

0 commit comments

Comments
 (0)