@@ -2386,7 +2386,7 @@ class ParameterTypeFlags {
23862386 Specifier = 7 << SpecifierShift,
23872387 NoDerivative = 1 << 6 ,
23882388 Isolated = 1 << 7 ,
2389- CompileTimeConst = 1 << 8 ,
2389+ CompileTimeLiteral = 1 << 8 ,
23902390 Sending = 1 << 9 ,
23912391 Addressable = 1 << 10 ,
23922392 NumBits = 11
@@ -2404,20 +2404,20 @@ class ParameterTypeFlags {
24042404
24052405 ParameterTypeFlags (bool variadic, bool autoclosure, bool nonEphemeral,
24062406 ParamSpecifier specifier, bool isolated, bool noDerivative,
2407- bool compileTimeConst , bool isSending, bool isAddressable)
2407+ bool compileTimeLiteral , bool isSending, bool isAddressable)
24082408 : value((variadic ? Variadic : 0 ) | (autoclosure ? AutoClosure : 0 ) |
24092409 (nonEphemeral ? NonEphemeral : 0 ) |
24102410 uint8_t (specifier) << SpecifierShift | (isolated ? Isolated : 0 ) |
24112411 (noDerivative ? NoDerivative : 0 ) |
2412- (compileTimeConst ? CompileTimeConst : 0 ) |
2412+ (compileTimeLiteral ? CompileTimeLiteral : 0 ) |
24132413 (isSending ? Sending : 0 ) |
24142414 (isAddressable ? Addressable : 0 )) {}
24152415
24162416 // / Create one from what's present in the parameter type
24172417 inline static ParameterTypeFlags
24182418 fromParameterType (Type paramTy, bool isVariadic, bool isAutoClosure,
24192419 bool isNonEphemeral, ParamSpecifier ownership,
2420- bool isolated, bool isNoDerivative, bool compileTimeConst ,
2420+ bool isolated, bool isNoDerivative, bool compileTimeLiteral ,
24212421 bool isSending, bool isAddressable);
24222422
24232423 bool isNone () const { return !value; }
@@ -2428,7 +2428,7 @@ class ParameterTypeFlags {
24282428 bool isShared () const { return getValueOwnership () == ValueOwnership::Shared;}
24292429 bool isOwned () const { return getValueOwnership () == ValueOwnership::Owned; }
24302430 bool isIsolated () const { return value.contains (Isolated); }
2431- bool isCompileTimeConst () const { return value.contains (CompileTimeConst ); }
2431+ bool isCompileTimeLiteral () const { return value.contains (CompileTimeLiteral ); }
24322432 bool isNoDerivative () const { return value.contains (NoDerivative); }
24332433 bool isSending () const { return value.contains (Sending); }
24342434 bool isAddressable () const { return value.contains (Addressable); }
@@ -2450,9 +2450,9 @@ class ParameterTypeFlags {
24502450 : ParamSpecifier::Default);
24512451 }
24522452
2453- ParameterTypeFlags withCompileTimeConst (bool isConst) const {
2454- return ParameterTypeFlags (isConst ? value | ParameterTypeFlags::CompileTimeConst
2455- : value - ParameterTypeFlags::CompileTimeConst );
2453+ ParameterTypeFlags withCompileTimeLiteral (bool isConst) const {
2454+ return ParameterTypeFlags (isConst ? value | ParameterTypeFlags::CompileTimeLiteral
2455+ : value - ParameterTypeFlags::CompileTimeLiteral );
24562456 }
24572457
24582458 ParameterTypeFlags withShared (bool isShared) const {
@@ -2598,7 +2598,7 @@ class YieldTypeFlags {
25982598 /* autoclosure*/ false ,
25992599 /* nonEphemeral*/ false , getOwnershipSpecifier (),
26002600 /* isolated*/ false , /* noDerivative*/ false ,
2601- /* compileTimeConst */ false ,
2601+ /* compileTimeLiteral */ false ,
26022602 /* is sending*/ false ,
26032603 /* is addressable*/ false );
26042604 }
@@ -3391,8 +3391,8 @@ class AnyFunctionType : public TypeBase {
33913391 // / Whether or not the parameter is 'sending'.
33923392 bool isSending () const { return Flags.isSending (); }
33933393
3394- // / Whether the parameter is 'isCompileTimeConst '.
3395- bool isCompileTimeConst () const { return Flags.isCompileTimeConst (); }
3394+ // / Whether the parameter is 'isCompileTimeLiteral '.
3395+ bool isCompileTimeLiteral () const { return Flags.isCompileTimeLiteral (); }
33963396
33973397 // / Whether the parameter is marked '@noDerivative'.
33983398 bool isNoDerivative () const { return Flags.isNoDerivative (); }
@@ -8077,7 +8077,7 @@ inline TupleTypeElt TupleTypeElt::getWithType(Type T) const {
80778077inline ParameterTypeFlags ParameterTypeFlags::fromParameterType (
80788078 Type paramTy, bool isVariadic, bool isAutoClosure, bool isNonEphemeral,
80798079 ParamSpecifier ownership, bool isolated, bool isNoDerivative,
8080- bool compileTimeConst , bool isSending, bool isAddressable) {
8080+ bool compileTimeLiteral , bool isSending, bool isAddressable) {
80818081 // FIXME(Remove InOut): The last caller that needs this is argument
80828082 // decomposition. Start by enabling the assertion there and fixing up those
80838083 // callers, then remove this, then remove
@@ -8088,7 +8088,7 @@ inline ParameterTypeFlags ParameterTypeFlags::fromParameterType(
80888088 ownership = ParamSpecifier::InOut;
80898089 }
80908090 return {isVariadic, isAutoClosure, isNonEphemeral, ownership,
8091- isolated, isNoDerivative, compileTimeConst , isSending,
8091+ isolated, isNoDerivative, compileTimeLiteral , isSending,
80928092 isAddressable};
80938093}
80948094
0 commit comments