mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename NoDTC to NoTypeCheck. NFC.
Swift SVN r26973
This commit is contained in:
@@ -45,7 +45,7 @@ bool swift::ArraySemanticsCall::isValidSignature() {
|
||||
// All other calls can be consider valid.
|
||||
default: break;
|
||||
case ArrayCallKind::kArrayPropsIsNative:
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoDTC: {
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck: {
|
||||
// @guaranteed/@owned Self
|
||||
if (SemanticsCall->getNumArguments() != 1)
|
||||
return false;
|
||||
@@ -120,8 +120,8 @@ ArrayCallKind swift::ArraySemanticsCall::getKind() const {
|
||||
auto Kind =
|
||||
llvm::StringSwitch<ArrayCallKind>(F->getSemanticsString())
|
||||
.Case("array.props.isNative", ArrayCallKind::kArrayPropsIsNative)
|
||||
.Case("array.props.isNativeNoDTC",
|
||||
ArrayCallKind::kArrayPropsIsNativeNoDTC)
|
||||
.Case("array.props.isNativeNoTypeCheck",
|
||||
ArrayCallKind::kArrayPropsIsNativeNoTypeCheck)
|
||||
.Case("array.init", ArrayCallKind::kArrayInit)
|
||||
.Case("array.uninitialized", ArrayCallKind::kArrayUninitialized)
|
||||
.Case("array.check_subscript", ArrayCallKind::kCheckSubscript)
|
||||
@@ -211,7 +211,7 @@ bool swift::ArraySemanticsCall::canHoist(SILInstruction *InsertBefore,
|
||||
|
||||
case ArrayCallKind::kCheckIndex:
|
||||
case ArrayCallKind::kArrayPropsIsNative:
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoDTC:
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck:
|
||||
case ArrayCallKind::kGetElementAddress:
|
||||
return canHoistArrayArgument(SemanticsCall, getSelf(), InsertBefore, DT);
|
||||
|
||||
@@ -333,7 +333,7 @@ ApplyInst *swift::ArraySemanticsCall::hoistOrCopy(SILInstruction *InsertBefore,
|
||||
auto Kind = getKind();
|
||||
switch (Kind) {
|
||||
case ArrayCallKind::kArrayPropsIsNative:
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoDTC: {
|
||||
case ArrayCallKind::kArrayPropsIsNativeNoTypeCheck: {
|
||||
assert(SemanticsCall->getNumArguments() == 1 &&
|
||||
"Expect 'self' parameter only");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user