@@ -298,7 +298,7 @@ class ASTExtInfoBuilder {
298298 enum : unsigned {
299299 RepresentationMask = 0xF << 0 ,
300300 NoEscapeMask = 1 << 4 ,
301- ConcurrentMask = 1 << 5 ,
301+ SendableMask = 1 << 5 ,
302302 AsyncMask = 1 << 6 ,
303303 ThrowsMask = 1 << 7 ,
304304 DifferentiabilityMaskOffset = 8 ,
@@ -356,7 +356,7 @@ class ASTExtInfoBuilder {
356356
357357 constexpr bool isNoEscape () const { return bits & NoEscapeMask; }
358358
359- constexpr bool isConcurrent () const { return bits & ConcurrentMask ; }
359+ constexpr bool isSendable () const { return bits & SendableMask ; }
360360
361361 constexpr bool isAsync () const { return bits & AsyncMask; }
362362
@@ -419,8 +419,8 @@ class ASTExtInfoBuilder {
419419 }
420420 LLVM_NODISCARD
421421 ASTExtInfoBuilder withConcurrent (bool concurrent = true ) const {
422- return ASTExtInfoBuilder (concurrent ? (bits | ConcurrentMask )
423- : (bits & ~ConcurrentMask ),
422+ return ASTExtInfoBuilder (concurrent ? (bits | SendableMask )
423+ : (bits & ~SendableMask ),
424424 clangTypeInfo, globalActor);
425425 }
426426 LLVM_NODISCARD
@@ -524,7 +524,7 @@ class ASTExtInfo {
524524
525525 constexpr bool isNoEscape () const { return builder.isNoEscape (); }
526526
527- constexpr bool isConcurrent () const { return builder.isConcurrent (); }
527+ constexpr bool isSendable () const { return builder.isSendable (); }
528528
529529 constexpr bool isAsync () const { return builder.isAsync (); }
530530
@@ -648,7 +648,7 @@ class SILExtInfoBuilder {
648648 RepresentationMask = 0xF << 0 ,
649649 PseudogenericMask = 1 << 4 ,
650650 NoEscapeMask = 1 << 5 ,
651- ConcurrentMask = 1 << 6 ,
651+ SendableMask = 1 << 6 ,
652652 AsyncMask = 1 << 7 ,
653653 DifferentiabilityMaskOffset = 8 ,
654654 DifferentiabilityMask = 0x7 << DifferentiabilityMaskOffset,
@@ -666,12 +666,12 @@ class SILExtInfoBuilder {
666666 : bits(bits), clangTypeInfo(clangTypeInfo.getCanonical()) {}
667667
668668 static constexpr unsigned makeBits (Representation rep, bool isPseudogeneric,
669- bool isNoEscape, bool isConcurrent ,
669+ bool isNoEscape, bool isSendable ,
670670 bool isAsync,
671671 DifferentiabilityKind diffKind) {
672672 return ((unsigned )rep) | (isPseudogeneric ? PseudogenericMask : 0 ) |
673673 (isNoEscape ? NoEscapeMask : 0 ) |
674- (isConcurrent ? ConcurrentMask : 0 ) |
674+ (isSendable ? SendableMask : 0 ) |
675675 (isAsync ? AsyncMask : 0 ) |
676676 (((unsigned )diffKind << DifferentiabilityMaskOffset) &
677677 DifferentiabilityMask);
@@ -687,16 +687,16 @@ class SILExtInfoBuilder {
687687 ClangTypeInfo (nullptr )) {}
688688
689689 SILExtInfoBuilder (Representation rep, bool isPseudogeneric, bool isNoEscape,
690- bool isConcurrent , bool isAsync,
690+ bool isSendable , bool isAsync,
691691 DifferentiabilityKind diffKind, const clang::Type *type)
692692 : SILExtInfoBuilder(makeBits(rep, isPseudogeneric, isNoEscape,
693- isConcurrent , isAsync, diffKind),
693+ isSendable , isAsync, diffKind),
694694 ClangTypeInfo(type)) {}
695695
696696 // Constructor for polymorphic type.
697697 SILExtInfoBuilder (ASTExtInfoBuilder info, bool isPseudogeneric)
698698 : SILExtInfoBuilder(makeBits(info.getSILRepresentation(), isPseudogeneric,
699- info.isNoEscape(), info.isConcurrent (),
699+ info.isNoEscape(), info.isSendable (),
700700 info.isAsync(),
701701 info.getDifferentiabilityKind()),
702702 info.getClangTypeInfo()) {}
@@ -722,7 +722,7 @@ class SILExtInfoBuilder {
722722 // Is this function guaranteed to be no-escape by the type system?
723723 constexpr bool isNoEscape () const { return bits & NoEscapeMask; }
724724
725- constexpr bool isConcurrent () const { return bits & ConcurrentMask ; }
725+ constexpr bool isSendable () const { return bits & SendableMask ; }
726726
727727 constexpr bool isAsync () const { return bits & AsyncMask; }
728728
@@ -793,9 +793,9 @@ class SILExtInfoBuilder {
793793 clangTypeInfo);
794794 }
795795 LLVM_NODISCARD
796- SILExtInfoBuilder withConcurrent (bool isConcurrent = true ) const {
797- return SILExtInfoBuilder (isConcurrent ? (bits | ConcurrentMask )
798- : (bits & ~ConcurrentMask ),
796+ SILExtInfoBuilder withConcurrent (bool isSendable = true ) const {
797+ return SILExtInfoBuilder (isSendable ? (bits | SendableMask )
798+ : (bits & ~SendableMask ),
799799 clangTypeInfo);
800800 }
801801 LLVM_NODISCARD
@@ -885,7 +885,7 @@ class SILExtInfo {
885885
886886 constexpr bool isNoEscape () const { return builder.isNoEscape (); }
887887
888- constexpr bool isConcurrent () const { return builder.isConcurrent (); }
888+ constexpr bool isSendable () const { return builder.isSendable (); }
889889
890890 constexpr bool isAsync () const { return builder.isAsync (); }
891891
@@ -915,8 +915,8 @@ class SILExtInfo {
915915 return builder.withNoEscape (noEscape).build ();
916916 }
917917
918- SILExtInfo withConcurrent (bool isConcurrent = true ) const {
919- return builder.withConcurrent (isConcurrent ).build ();
918+ SILExtInfo withConcurrent (bool isSendable = true ) const {
919+ return builder.withConcurrent (isSendable ).build ();
920920 }
921921
922922 SILExtInfo withAsync (bool isAsync = true ) const {
0 commit comments