|
26 | 26 | #include "swift/AST/DiagnosticsSIL.h" |
27 | 27 | #include "swift/AST/Expr.h" |
28 | 28 | #include "swift/AST/GenericEnvironment.h" |
29 | | -#include "swift/AST/SubstitutionMap.h" |
30 | | -#include "swift/AST/SubstitutionList.h" |
31 | | -#include "swift/AST/ProtocolConformance.h" |
| 29 | +#include "swift/AST/Module.h" |
32 | 30 | #include "swift/AST/ParameterList.h" |
| 31 | +#include "swift/AST/ProtocolConformance.h" |
| 32 | +#include "swift/AST/SubstitutionList.h" |
| 33 | +#include "swift/AST/SubstitutionMap.h" |
33 | 34 | #include "swift/Basic/Defer.h" |
34 | | -#include "swift/Serialization/SerializedSILLoader.h" |
35 | 35 | #include "swift/SIL/AbstractionPattern.h" |
36 | 36 | #include "swift/SIL/Dominance.h" |
37 | | -#include "swift/SIL/SILCloner.h" |
| 37 | +#include "swift/SIL/FormalLinkage.h" |
38 | 38 | #include "swift/SIL/SILBuilder.h" |
| 39 | +#include "swift/SIL/SILCloner.h" |
39 | 40 | #include "swift/SIL/TypeLowering.h" |
40 | 41 | #include "swift/SILOptimizer/Analysis/DominanceAnalysis.h" |
41 | 42 | #include "swift/SILOptimizer/PassManager/Passes.h" |
42 | 43 | #include "swift/SILOptimizer/PassManager/Transforms.h" |
| 44 | +#include "swift/Serialization/SerializedSILLoader.h" |
43 | 45 | #include "llvm/ADT/DenseMap.h" |
44 | 46 | #include "llvm/ADT/Hashing.h" |
45 | 47 | #include "llvm/ADT/SmallPtrSet.h" |
@@ -977,9 +979,8 @@ static void convertFromIntegerLiteral(intmax_t value, |
977 | 979 | auto *ebilProto = |
978 | 980 | astCtx.getProtocol(KnownProtocolKind::ExpressibleByBuiltinIntegerLiteral); |
979 | 981 | // `init(_builtinIntegerLiteral:)` |
980 | | - DeclName builtinLitInitName(astCtx, astCtx.Id_init, { |
981 | | - astCtx.getIdentifier("_builtinIntegerLiteral") |
982 | | - }); |
| 982 | + DeclName builtinLitInitName(astCtx, DeclBaseName::createConstructor(), |
| 983 | + {astCtx.getIdentifier("_builtinIntegerLiteral")}); |
983 | 984 | auto *initBILDecl = |
984 | 985 | cast<ConstructorDecl>(ebilProto->lookupDirect(builtinLitInitName)[0]); |
985 | 986 | SILDeclRef initBILDeclRef(initBILDecl); |
@@ -1022,9 +1023,8 @@ static void convertFromIntegerLiteral(intmax_t value, |
1022 | 1023 | // `ExpressibleByIntegerLiteral.init(integerLiteral: %4)`. |
1023 | 1024 | auto *eilProto = |
1024 | 1025 | astCtx.getProtocol(KnownProtocolKind::ExpressibleByIntegerLiteral); |
1025 | | - DeclName intLitInitName(astCtx, astCtx.Id_init, { |
1026 | | - astCtx.getIdentifier("integerLiteral") |
1027 | | - }); |
| 1026 | + DeclName intLitInitName(astCtx, DeclBaseName::createConstructor(), |
| 1027 | + {astCtx.getIdentifier("integerLiteral")}); |
1028 | 1028 | auto *initILDecl = |
1029 | 1029 | cast<ConstructorDecl>(eilProto->lookupDirect(intLitInitName)[0]); |
1030 | 1030 | SILDeclRef initILDeclRef(initILDecl); |
@@ -1091,7 +1091,8 @@ static void convertToIndirectSeed(intmax_t value, CanType type, |
1091 | 1091 | CanMetatypeType::get(type, MetatypeRepresentation::Thick)); |
1092 | 1092 | auto *metatype = builder.createMetatype(loc, metatypeTy); |
1093 | 1093 | // Call `init(_:)` through `VectorNumeric` protocol. |
1094 | | - DeclName initName(astCtx, astCtx.Id_init, { Identifier() }); |
| 1094 | + DeclName initName(astCtx, DeclBaseName::createConstructor(), |
| 1095 | + {Identifier()}); |
1095 | 1096 | // Allocate buffer for passing the indirect scalar value. |
1096 | 1097 | // %2 = alloc_stack $<scalar type> |
1097 | 1098 | auto scalarValBuf = |
@@ -1242,9 +1243,9 @@ static SILFunction *getOrCreateGradient( |
1242 | 1243 | } else { |
1243 | 1244 | auto loq = seedSILTy.isTrivial(module) |
1244 | 1245 | ? LoadOwnershipQualifier::Trivial : LoadOwnershipQualifier::Take; |
1245 | | - auto seedBufAccess = |
1246 | | - builder.createBeginAccess(loc, seedBuf, SILAccessKind::Read, |
1247 | | - SILAccessEnforcement::Static); |
| 1246 | + auto seedBufAccess = builder.createBeginAccess( |
| 1247 | + loc, seedBuf, SILAccessKind::Read, SILAccessEnforcement::Static, |
| 1248 | + /*noNestedConflict=*/false); |
1248 | 1249 | auto seed = builder.createLoad(loc, seedBufAccess, loq); |
1249 | 1250 | builder.createEndAccess(loc, seedBufAccess, /*aborted*/ false); |
1250 | 1251 | args.push_back(seed); |
|
0 commit comments