diff --git a/test/IRGen/Inputs/weak_import_availability_helper.swift b/test/IRGen/Inputs/weak_import_availability_helper.swift index a5d1f1db0e126..31c2acd63e617 100644 --- a/test/IRGen/Inputs/weak_import_availability_helper.swift +++ b/test/IRGen/Inputs/weak_import_availability_helper.swift @@ -26,7 +26,7 @@ extension ConditionallyAvailableStruct { } @available(macOS, unavailable) -public struct UnvailableStruct { +public struct UnavailableStruct { public func unavailableMethod() {} } diff --git a/test/IRGen/big_types_corner_cases.sil b/test/IRGen/big_types_corner_cases.sil index c92af768f3c13..270cd16c66cf1 100644 --- a/test/IRGen/big_types_corner_cases.sil +++ b/test/IRGen/big_types_corner_cases.sil @@ -126,12 +126,12 @@ bb0(%0 : $Builtin.Int64, %1 : $() -> @owned BigStruct): return undef : $BigStruct } -// CHECK-LABEL: define swiftcc void @poninter_to_mod_ret(ptr %0, ptr %1) +// CHECK-LABEL: define swiftcc void @pointer_to_mod_ret(ptr %0, ptr %1) // CHECK: [[CALL:%.*]] = call swiftcc { ptr, ptr } %0(ptr swiftself %1) // CHECK: extractvalue { ptr, ptr } [[CALL]], 0 // CHECK: extractvalue { ptr, ptr } [[CALL]], 1 // CHECK: ret void -sil @poninter_to_mod_ret : $@convention(thin) (@owned @callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct) -> () { +sil @pointer_to_mod_ret : $@convention(thin) (@owned @callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct) -> () { bb0(%funcpointer : $@callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct): %papply = apply %funcpointer() : $@callee_owned () -> @owned @callee_owned (@owned Builtin.Int64) -> @owned BigStruct %ret = tuple () diff --git a/test/IRGen/comdat.swift b/test/IRGen/comdat.swift index e85eb939af45b..ae4007f891f59 100644 --- a/test/IRGen/comdat.swift +++ b/test/IRGen/comdat.swift @@ -9,6 +9,6 @@ // CHECK-1: "$s6comdat1C33_{{.*}}LLCMa" = comdat any // CHECK-1: "$s6comdat1C33_{{.*}}LLCMn" = comdat any -// Ensure that no foward declaration is emitted +// Ensure that no forward declaration is emitted // CHECK-2-NOT: "$s6comdat1C33_{{.*}}LLCMa" = comdat any // CHECK-2-NOT: "$s6comdat1C33_{{.*}}LLCMn" = comdat any diff --git a/test/IRGen/debug_fragment_merge.sil b/test/IRGen/debug_fragment_merge.sil index 3bf615891fc20..0c65e6c093749 100644 --- a/test/IRGen/debug_fragment_merge.sil +++ b/test/IRGen/debug_fragment_merge.sil @@ -2,7 +2,7 @@ // Checking the below on 32 bit architectures would be cumbersome: each // fragment is 32 bits long, which changes the number of checks as well as the -// arithmethic on the bounds of each fragment. +// arithmetic on the bounds of each fragment. // REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e // CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR:[0-9]+]], metadata !DIExpression(DW_OP_LLVM_fragment, 192, 64){{.*}} !dbg ![[LOC1:[0-9]+]] diff --git a/test/IRGen/existentials.sil b/test/IRGen/existentials.sil index f2789a537a036..8c3d3ebe14cac 100644 --- a/test/IRGen/existentials.sil +++ b/test/IRGen/existentials.sil @@ -124,7 +124,7 @@ entry(%arg : $*any Constrained): } // Make sure we don't instantiate metadata for constrained existentials. Metadata -// instatiation is not supported on older runtimes. +// instantiation is not supported on older runtimes. // OPT: define{{.*}} void @constrained_protocol( // OPT: call {{.*}} @"$s12existentials11Constrained_pSi1TAaBPRts_XPWOc" diff --git a/test/IRGen/keypaths.sil b/test/IRGen/keypaths.sil index c8f47b43bcc5f..10d8f183a84a3 100644 --- a/test/IRGen/keypaths.sil +++ b/test/IRGen/keypaths.sil @@ -584,14 +584,14 @@ public class GC2 { public var y: String } -sil @class_constrainted : $@convention(thin) () -> () { +sil @class_constrained : $@convention(thin) () -> () { bb0: %k = keypath $KeyPath, <τ_0_0 where τ_0_0 : C> (root $τ_0_0; stored_property #C.y : $String) %t = tuple () return %t : $() } -sil @generic_class_constrainted : $@convention(thin) > () -> () { +sil @generic_class_constrained : $@convention(thin) > () -> () { bb0: %k = keypath $KeyPath, <τ_0_0, τ_0_1 where τ_0_1 : GC2<τ_0_0>> (root $τ_0_1; stored_property #GC2.y : $String) %t = tuple () diff --git a/test/IRGen/opaque_result_type_substitution_2.swift b/test/IRGen/opaque_result_type_substitution_2.swift index f14ccb78a859a..5de0c45c46372 100644 --- a/test/IRGen/opaque_result_type_substitution_2.swift +++ b/test/IRGen/opaque_result_type_substitution_2.swift @@ -71,7 +71,7 @@ extension Thing { } } -struct OutterThing : Thing { +struct OuterThing : Thing { let content: Content init(_ c: Content) { diff --git a/test/IRGen/typed_throws.swift b/test/IRGen/typed_throws.swift index f7e633cfa16ca..c4fd0a260f701 100644 --- a/test/IRGen/typed_throws.swift +++ b/test/IRGen/typed_throws.swift @@ -122,7 +122,7 @@ struct MyError: Error { // CHECK: define hidden swiftcc { float, i64, float } @"$s12typed_throws8mayThrow1x1ySf_s5Int32VSftSb_yXltAA7MyErrorVYKF" // CHECK: [[CONVERTED:%.*]] = ptrtoint ptr {{%.*}} to i64 -// CEHCK: insertvalue { float, i64, float } undef, i64 [[CONVERTED]], 1 +// CHECK: insertvalue { float, i64, float } undef, i64 [[CONVERTED]], 1 // CHECK: } @inline(never) func mayThrow(x: Bool, y: AnyObject) throws(MyError) -> (Float, Int32, Float) { diff --git a/test/IRGen/typelayout_based_value_operation.sil b/test/IRGen/typelayout_based_value_operation.sil index 21b85684dc116..d0fbcfa7fc45e 100644 --- a/test/IRGen/typelayout_based_value_operation.sil +++ b/test/IRGen/typelayout_based_value_operation.sil @@ -16,12 +16,12 @@ public struct A { public class C {} -// CHECK-LABEL: define{{.*}} void @testDestroyValueTrival( +// CHECK-LABEL: define{{.*}} void @testDestroyValueTrivial( // CHECK-NEXT: entry: // CHECK-NEXT: ret void // CHECK-NEXT: } -sil @testDestroyValueTrival : $@convention(thin) (@in A) -> () { +sil @testDestroyValueTrivial : $@convention(thin) (@in A) -> () { entry(%arg : $*A): destroy_addr %arg : $*A %ret = tuple () diff --git a/test/IRGen/weak_import_availability.swift b/test/IRGen/weak_import_availability.swift index 347ebd9f34332..034652c1629d8 100644 --- a/test/IRGen/weak_import_availability.swift +++ b/test/IRGen/weak_import_availability.swift @@ -115,14 +115,14 @@ public func useConditionallyAvailableMethod(s: ConditionallyAvailableStruct) { @available(macOS, unavailable) public func useUnavailableStruct() { - blackHole(UnvailableStruct.self) + blackHole(UnavailableStruct.self) } -// CHECK-LABEL: declare extern_weak swiftcc %swift.metadata_response @"$s31weak_import_availability_helper16UnvailableStructVMa"(i64) +// CHECK-LABEL: declare extern_weak swiftcc %swift.metadata_response @"$s31weak_import_availability_helper17UnavailableStructVMa"(i64) @available(macOS, unavailable) -public func useUnavailableMethod(s: UnvailableStruct) { +public func useUnavailableMethod(s: UnavailableStruct) { s.unavailableMethod() } -// CHECK-LABEL: declare extern_weak swiftcc void @"$s31weak_import_availability_helper16UnvailableStructV17unavailableMethodyyF"(ptr noalias swiftself) +// CHECK-LABEL: declare extern_weak swiftcc void @"$s31weak_import_availability_helper17UnavailableStructV17unavailableMethodyyF"(ptr noalias swiftself)