tests: remove the now unused option -new-mangling-for-tests

This commit is contained in:
Erik Eckstein
2017-03-22 11:17:16 -07:00
parent 2dc6104cdc
commit c4a11f4c92
496 changed files with 616 additions and 620 deletions

View File

@@ -21,10 +21,6 @@
using namespace swift; using namespace swift;
using namespace Mangle; using namespace Mangle;
llvm::cl::opt<bool> MangleForTests(
"new-mangling-for-tests", llvm::cl::init(false),
llvm::cl::desc("Use new mangling for compiler tests"));
#ifndef NDEBUG #ifndef NDEBUG
llvm::cl::opt<bool> PrintSwiftManglingStats( llvm::cl::opt<bool> PrintSwiftManglingStats(

View File

@@ -2,7 +2,7 @@
// RUN: %build-clang-importer-objc-overlays // RUN: %build-clang-importer-objc-overlays
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -typecheck %s -verify -verify-ignore-unknown // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -typecheck %s -verify -verify-ignore-unknown
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-ir %s -D IRGEN | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir %s -D IRGEN | %FileCheck %s
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -print-module -source-filename="%s" -module-to-print SwiftPrivateAttr > %t.txt // RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -print-module -source-filename="%s" -module-to-print SwiftPrivateAttr > %t.txt
// RUN: %FileCheck -check-prefix=GENERATED-NEGATIVE %s < %t.txt // RUN: %FileCheck -check-prefix=GENERATED-NEGATIVE %s < %t.txt

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -emit-ir -o - -primary-file %s | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o - -primary-file %s | %FileCheck %s
// REQUIRES: OS=macosx // REQUIRES: OS=macosx

View File

@@ -1,7 +1,7 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %build-clang-importer-objc-overlays // RUN: %build-clang-importer-objc-overlays
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %build-clang-importer-objc-overlays // RUN: %build-clang-importer-objc-overlays
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop
// REQUIRES: OS=macosx // REQUIRES: OS=macosx

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-silgen -o - %s | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -emit-silgen -o - %s | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,5 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-module-path %t/Test.swiftmodule -emit-sil -o /dev/null -module-name Test %s -sdk "" -import-objc-header %S/Inputs/serialization-sil.h // RUN: %target-swift-frontend -emit-module-path %t/Test.swiftmodule -emit-sil -o /dev/null -module-name Test %s -sdk "" -import-objc-header %S/Inputs/serialization-sil.h
// RUN: %target-sil-func-extractor %t/Test.swiftmodule -func=_T04Test16testPartialApplyySoAA_pF -o - | %FileCheck %s // RUN: %target-sil-func-extractor %t/Test.swiftmodule -func=_T04Test16testPartialApplyySoAA_pF -o - | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -2,9 +2,9 @@
// Check if SIL printing+parsing of a clang imported function works. // Check if SIL printing+parsing of a clang imported function works.
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -parse-as-library -module-name=test -emit-sil %s -import-objc-header %S/Inputs/static_inline.h -o %t/test.sil // RUN: %target-swift-frontend -parse-as-library -module-name=test -emit-sil %s -import-objc-header %S/Inputs/static_inline.h -o %t/test.sil
// RUN: %FileCheck < %t/test.sil %s // RUN: %FileCheck < %t/test.sil %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -parse-as-library -module-name=test -O -emit-ir %t/test.sil -import-objc-header %S/Inputs/static_inline.h | %FileCheck --check-prefix=CHECK-IR %s // RUN: %target-swift-frontend -parse-as-library -module-name=test -O -emit-ir %t/test.sil -import-objc-header %S/Inputs/static_inline.h | %FileCheck --check-prefix=CHECK-IR %s
// CHECK: sil shared [clang c_inline_func] @c_inline_func : $@convention(c) (Int32) -> Int32 // CHECK: sil shared [clang c_inline_func] @c_inline_func : $@convention(c) (Int32) -> Int32

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
struct Foo { struct Foo {
// Allocating constructor - should have no line table info. // Allocating constructor - should have no line table info.
// CHECK: !DISubprogram(name: "init", linkageName: "_T012Constructors3FooVACs5Int64V1x_tcfC", // CHECK: !DISubprogram(name: "init", linkageName: "_T012Constructors3FooVACs5Int64V1x_tcfC",

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
public class Foo { public class Foo {
// CHECK: !DISubprogram(name: "deinit", linkageName: "_T011Destructors3FooCfD" // CHECK: !DISubprogram(name: "deinit", linkageName: "_T011Destructors3FooCfD"

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
class C { class C {
let n : Int64 let n : Int64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -Onone -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -Onone -emit-ir -g -o - | %FileCheck %s
public class C<T> public class C<T>
{ {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
class A { class A {
init(handler: (() -> ())) { } init(handler: (() -> ())) { }
} }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -c -g -o %t.o // RUN: %target-swift-frontend %s -c -g -o %t.o
// RUN: dwarfdump --apple-types %t.o | %FileCheck --check-prefix=CHECK-ACCEL %s // RUN: dwarfdump --apple-types %t.o | %FileCheck --check-prefix=CHECK-ACCEL %s
// RUN: dwarfdump --debug-info %t.o | %FileCheck --check-prefix=CHECK-DWARF %s // RUN: dwarfdump --debug-info %t.o | %FileCheck --check-prefix=CHECK-DWARF %s
// DISABLED <rdar://problem/28232630>: dwarfdump --verify %t.o // DISABLED <rdar://problem/28232630>: dwarfdump --verify %t.o

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
protocol IntegerArithmetic { protocol IntegerArithmetic {
static func uncheckedSubtract(_ lhs: Self, rhs: Self) -> (Self, Bool) static func uncheckedSubtract(_ lhs: Self, rhs: Self) -> (Self, Bool)

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -verify -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -verify -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
// Verify that arguments described by debug_value intrinsics are only // Verify that arguments described by debug_value intrinsics are only
// emitted once. // emitted once.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -disable-objc-attr-requires-foundation-module %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module %s -emit-ir -g -o - | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// CHECK: define{{.*}}@_T011autoclosure7call_meys5Int64VF // CHECK: define{{.*}}@_T011autoclosure7call_meys5Int64VF
// CHECK-NOT: ret void // CHECK-NOT: ret void

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
public protocol OS_dispatch_queue { public protocol OS_dispatch_queue {
} }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
class C { class C {
func withClosure(_ : () -> ()) -> () {} func withClosure(_ : () -> ()) -> () {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - -O -disable-llvm-optzns | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -g %s -o - -O -disable-llvm-optzns | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop
import Foundation import Foundation

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
public class C { public class C {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
import Swift import Swift

View File

@@ -31,7 +31,7 @@ public func demo() {
demo() demo()
// At -O0, we should have a single aggregate argument. // At -O0, we should have a single aggregate argument.
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK-O0 // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK-O0
// Verify that a reabstraction thunk does not have a line number. // Verify that a reabstraction thunk does not have a line number.
// CHECK-O0-NOT: DW_OP_bit_piece // CHECK-O0-NOT: DW_OP_bit_piece
// CHECK-O0-NOT: DW_OP_bit_piece // CHECK-O0-NOT: DW_OP_bit_piece

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-sil -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-sil -g -o - | %FileCheck %s
public protocol DelegateA {} public protocol DelegateA {}
public protocol DelegateB {} public protocol DelegateB {}
public protocol WithDelegate public protocol WithDelegate

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-sil -g -o - | %FileCheck -check-prefix=CHECK-SIL %s // RUN: %target-swift-frontend %s -emit-sil -g -o - | %FileCheck -check-prefix=CHECK-SIL %s
// Verify that -Onone shadow copies are emitted for debug_value_addr // Verify that -Onone shadow copies are emitted for debug_value_addr
// instructions. // instructions.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
import StdlibUnittest import StdlibUnittest
func foo<T>(_ x: T) -> () { func foo<T>(_ x: T) -> () {
// CHECK: define {{.*}} @_T011generic_arg3fooyxlF // CHECK: define {{.*}} @_T011generic_arg3fooyxlF

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// CHECK: define hidden swiftcc void @_T012generic_arg25ClassC3foo{{.*}}, %swift.type* %U // CHECK: define hidden swiftcc void @_T012generic_arg25ClassC3foo{{.*}}, %swift.type* %U
// CHECK: call void @llvm.dbg.declare(metadata %swift.opaque** %y.addr, metadata ![[U:.*]], metadata !{{[0-9]+}}) // CHECK: call void @llvm.dbg.declare(metadata %swift.opaque** %y.addr, metadata ![[U:.*]], metadata !{{[0-9]+}})

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func apply<Type>(_ T : Type, fn: (Type) -> Type) -> Type { return fn(T) } func apply<Type>(_ T : Type, fn: (Type) -> Type) -> Type { return fn(T) }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop
public struct Q<T> { public struct Q<T> {
let x: T let x: T

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
public struct S<Type> public struct S<Type>
{ {
let value : Type let value : Type

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -verify -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -verify -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
struct __CurrentErrno {} struct __CurrentErrno {}
struct CErrorOr<T> struct CErrorOr<T>

View File

@@ -1,5 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -gsil -emit-ir -o %t/out.ir // RUN: %target-swift-frontend %s -O -gsil -emit-ir -o %t/out.ir
// RUN: %FileCheck %s < %t/out.ir // RUN: %FileCheck %s < %t/out.ir
// RUN: %FileCheck %s --check-prefix=CHECK_OUT_SIL < %t/out.ir.gsil_0.sil // RUN: %FileCheck %s --check-prefix=CHECK_OUT_SIL < %t/out.ir.gsil_0.sil

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK2 // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK2
func use<T>(_ t: T) {} func use<T>(_ t: T) {}
public func f(_ i : Int?) public func f(_ i : Int?)

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -import-objc-header %S/Inputs/serialized-objc-header.h -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -import-objc-header %S/Inputs/serialized-objc-header.h -emit-ir -g -o - | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -Xllvm -sil-inline-generics=true %s -O -g -o - -emit-ir | %FileCheck %s // RUN: %target-swift-frontend -Xllvm -sil-inline-generics=true %s -O -g -o - -emit-ir | %FileCheck %s
public protocol P { public protocol P {
associatedtype DT1 associatedtype DT1
func getDT() -> DT1 func getDT() -> DT1

View File

@@ -1,6 +1,6 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-sil -emit-verbose-sil -o - \ // RUN: %target-swift-frontend %s -O -I %t -emit-sil -emit-verbose-sil -o - \
// RUN: | %FileCheck %s --check-prefix=CHECK-SIL // RUN: | %FileCheck %s --check-prefix=CHECK-SIL
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -O -I %t -emit-ir -g -o - | %FileCheck %s
public var glob : Int = 0 public var glob : Int = 0
@inline(never) public func hold(_ n : Int) { glob = n } @inline(never) public func hold(_ n : Int) { glob = n }

View File

@@ -1,8 +1,8 @@
// RUN: rm -rf %t // RUN: rm -rf %t
// RUN: mkdir -p %t // RUN: mkdir -p %t
// RUN: echo "public var x = Int64()" \ // RUN: echo "public var x = Int64()" \
// RUN: | %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name FooBar -emit-module -o %t - // RUN: | %target-swift-frontend -module-name FooBar -emit-module -o %t -
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-ir -g -o %t.ll // RUN: %target-swift-frontend %s -O -I %t -emit-ir -g -o %t.ll
// RUN: %FileCheck %s < %t.ll // RUN: %FileCheck %s < %t.ll
// RUN: %FileCheck %s -check-prefix=TRANSPARENT-CHECK < %t.ll // RUN: %FileCheck %s -check-prefix=TRANSPARENT-CHECK < %t.ll

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
class CGImageRef {} class CGImageRef {}
class UIImage { class UIImage {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o %t.ll // RUN: %target-swift-frontend %s -emit-ir -g -o %t.ll
// RUN: %FileCheck %s < %t.ll // RUN: %FileCheck %s < %t.ll
class UIWindow {} class UIWindow {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -S -g -o - | %FileCheck %s --check-prefix ASM-CHECK // RUN: %target-swift-frontend %s -S -g -o - | %FileCheck %s --check-prefix ASM-CHECK
// REQUIRES: CPU=i386_or_x86_64 // REQUIRES: CPU=i386_or_x86_64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -g -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -g -emit-ir %s | %FileCheck %s
public protocol P { public protocol P {
associatedtype AT; associatedtype AT;

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
@_fixed_layout @_fixed_layout
public struct UnicodeScalar { public struct UnicodeScalar {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -S -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -S -g -o - | %FileCheck %s
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
protocol A {} protocol A {}
protocol B {} protocol B {}
typealias C = B & A typealias C = B & A

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
protocol PointUtils { protocol PointUtils {
func distanceFromOrigin() -> Float func distanceFromOrigin() -> Float

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {} func markUsed<T>(_ t: T) {}
func use<T>(_ t: inout T) {} func use<T>(_ t: inout T) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -g -emit-ir -o - | %FileCheck %s // RUN: %target-swift-frontend %s -g -emit-ir -o - | %FileCheck %s
class X { class X {
init (i : Int64) { x = i } init (i : Int64) { x = i }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
// //
// A top-level closure is expected to have the main module as scope and not the // A top-level closure is expected to have the main module as scope and not the
// top_level_code function. // top_level_code function.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
public struct S { public struct S {
func f() { func f() {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
public struct stuffStruct { public struct stuffStruct {
var a: Int64 = 6 var a: Int64 = 6

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -Onone -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend %s -Onone -emit-ir -g -o - | %FileCheck %s
class ClassA class ClassA
{ {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -O %s -disable-llvm-optzns -emit-sil -g -o - | %FileCheck %s // RUN: %target-swift-frontend -O %s -disable-llvm-optzns -emit-sil -g -o - | %FileCheck %s
// CHECK: sil shared [noinline] @_T014specialization3sumxx_xtAA5ProtoRzlFAA7AddableV_Tg5 // CHECK: sil shared [noinline] @_T014specialization3sumxx_xtAA5ProtoRzlFAA7AddableV_Tg5
// CHECK-SAME: $@convention(thin) (Addable, Addable) -> Addable { // CHECK-SAME: $@convention(thin) (Addable, Addable) -> Addable {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s // RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
// Capture the pointer size from type Int // Capture the pointer size from type Int
// CHECK: %TSi = type <{ i[[PTRSIZE:[0-9]+]] }> // CHECK: %TSi = type <{ i[[PTRSIZE:[0-9]+]] }>

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-sil -emit-verbose-sil -g %s -o - | %FileCheck %s --check-prefix=SIL-CHECK // RUN: %target-swift-frontend -emit-sil -emit-verbose-sil -g %s -o - | %FileCheck %s --check-prefix=SIL-CHECK
// REQUIRES: objc_interop // REQUIRES: objc_interop
import Foundation import Foundation

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -g -emit-ir %s | %FileCheck %s --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK // RUN: %target-swift-frontend -g -emit-ir %s | %FileCheck %s --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK
// Test that we don't generate debug info for hidden global variables. // Test that we don't generate debug info for hidden global variables.

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -O -parse-stdlib -D INTERNAL_CHECKS_ENABLED -primary-file %s -emit-sil | %FileCheck %s --check-prefix=CHECKS // RUN: %target-swift-frontend -O -parse-stdlib -D INTERNAL_CHECKS_ENABLED -primary-file %s -emit-sil | %FileCheck %s --check-prefix=CHECKS
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -O -parse-stdlib -primary-file %s -emit-sil | %FileCheck %s --check-prefix=NOCHECKS // RUN: %target-swift-frontend -O -parse-stdlib -primary-file %s -emit-sil | %FileCheck %s --check-prefix=NOCHECKS
import Swift import Swift

View File

@@ -1,7 +1,7 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name OptimizationOptions -Onone -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=DEBUG // RUN: %target-swift-frontend -module-name OptimizationOptions -Onone -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=DEBUG
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name OptimizationOptions -O -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=RELEASE // RUN: %target-swift-frontend -module-name OptimizationOptions -O -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=RELEASE
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name OptimizationOptions -Ounchecked -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=UNCHECKED // RUN: %target-swift-frontend -module-name OptimizationOptions -Ounchecked -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=UNCHECKED
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name OptimizationOptions -Oplayground -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=PLAYGROUND // RUN: %target-swift-frontend -module-name OptimizationOptions -Oplayground -emit-sil -primary-file %s -o - | %FileCheck %s --check-prefix=PLAYGROUND
// REQUIRES: optimized_stdlib // REQUIRES: optimized_stdlib
// REQUIRES: swift_stdlib_no_asserts // REQUIRES: swift_stdlib_no_asserts

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-comments -source-filename %S/Inputs/comment_extensions.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s // RUN: %target-swift-ide-test -print-comments -source-filename %S/Inputs/comment_extensions.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s
// Content is in separate file in ./Inputs due to the "requires" keyword getting // Content is in separate file in ./Inputs due to the "requires" keyword getting
// recognized by lit. // recognized by lit.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-comments -source-filename %s | %FileCheck %s // RUN: %target-swift-ide-test -print-comments -source-filename %s | %FileCheck %s
// REQUIRES: no_asan // REQUIRES: no_asan
class Base { class Base {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-comments -source-filename %s | %FileCheck %s // RUN: %target-swift-ide-test -print-comments -source-filename %s | %FileCheck %s
protocol ParentProtocol1 { protocol ParentProtocol1 {
/// ParentProtocol1.onlyParent1() /// ParentProtocol1.onlyParent1()

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-comments -source-filename %s -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s // RUN: %target-swift-ide-test -print-comments -source-filename %s -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s
/// Brief. /// Brief.
/// ///

View File

@@ -1,7 +1,7 @@
//===--- Check that we convert comments to XML correctly. //===--- Check that we convert comments to XML correctly.
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -typecheck -verify -disable-objc-attr-requires-foundation-module %S/../Inputs/comment_to_something_conversion.swift // RUN: %target-swift-frontend -typecheck -verify -disable-objc-attr-requires-foundation-module %S/../Inputs/comment_to_something_conversion.swift
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-comments -source-filename %S/../Inputs/comment_to_something_conversion.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng > %t.txt // RUN: %target-swift-ide-test -print-comments -source-filename %S/../Inputs/comment_to_something_conversion.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng > %t.txt
// RUN: %FileCheck %S/../Inputs/comment_to_something_conversion.swift < %t.txt // RUN: %FileCheck %S/../Inputs/comment_to_something_conversion.swift < %t.txt
// RUN: %FileCheck %s -check-prefix=WRONG < %t.txt // RUN: %FileCheck %s -check-prefix=WRONG < %t.txt

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -disable-objc-attr-requires-foundation-module %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -disable-objc-attr-requires-foundation-module %s
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -new-mangling-for-tests -print-usrs -source-filename %s | %FileCheck %s -strict-whitespace // RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -print-usrs -source-filename %s | %FileCheck %s -strict-whitespace
import macros import macros

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-ide-test -new-mangling-for-tests -print-usrs -source-filename %s | %FileCheck %s -strict-whitespace // RUN: %target-swift-ide-test -print-usrs -source-filename %s | %FileCheck %s -strict-whitespace
// CHECK: [[@LINE+1]]:6 s:14swift_ide_test11InvalidEnumO{{$}} // CHECK: [[@LINE+1]]:6 s:14swift_ide_test11InvalidEnumO{{$}}
enum InvalidEnum { enum InvalidEnum {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -I %S/Inputs/abi %s -emit-ir | %FileCheck -check-prefix=%target-cpu-%target-os %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/abi %s -emit-ir | %FileCheck -check-prefix=%target-cpu-%target-os %s
// FIXME: rdar://problem/19648117 Needs splitting objc parts out // FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux // XFAIL: linux

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir %s | %FileCheck %s
import Builtin import Builtin
import Swift import Swift

View File

@@ -1,9 +1,9 @@
// RUN: %swift -Xllvm -new-mangling-for-tests -target x86_64-apple-macosx10.9 -module-name main %s -emit-ir -o - | %FileCheck %s // RUN: %swift -target x86_64-apple-macosx10.9 -module-name main %s -emit-ir -o - | %FileCheck %s
// RUN: %swift -Xllvm -new-mangling-for-tests -target i386-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s // RUN: %swift -target i386-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s
// RUN: %swift -Xllvm -new-mangling-for-tests -target x86_64-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s // RUN: %swift -target x86_64-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s
// RUN: %swift -Xllvm -new-mangling-for-tests -target armv7-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s // RUN: %swift -target armv7-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s
// RUN: %swift -Xllvm -new-mangling-for-tests -target arm64-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s // RUN: %swift -target arm64-apple-ios7.0 %s -module-name main -emit-ir -o - | %FileCheck %s
// RUN: %swift -Xllvm -new-mangling-for-tests -target x86_64-unknown-linux-gnu %s -disable-objc-interop -module-name main -emit-ir -o - | %FileCheck %s // RUN: %swift -target x86_64-unknown-linux-gnu %s -disable-objc-interop -module-name main -emit-ir -o - | %FileCheck %s
// REQUIRES: CODEGENERATOR=X86 // REQUIRES: CODEGENERATOR=X86
// REQUIRES: CODEGENERATOR=ARM // REQUIRES: CODEGENERATOR=ARM

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
import Swift import Swift

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir > %t.ll // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir > %t.ll
// RUN: %FileCheck %s -check-prefix=GLOBAL < %t.ll // RUN: %FileCheck %s -check-prefix=GLOBAL < %t.ll
// RUN: %FileCheck %s < %t.ll // RUN: %FileCheck %s < %t.ll
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s | %FileCheck %s
// REQUIRES: CPU=i386_or_x86_64 // REQUIRES: CPU=i386_or_x86_64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-runtime // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-runtime
import Swift import Swift

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -parse-stdlib -primary-file %s -emit-ir -o - -disable-objc-attr-requires-foundation-module | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -parse-stdlib -primary-file %s -emit-ir -o - -disable-objc-attr-requires-foundation-module | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime
// REQUIRES: executable_test // REQUIRES: executable_test
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64

View File

@@ -1,5 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | %FileCheck %s
// This is deliberately not a SIL test so that we can test SILGen too. // This is deliberately not a SIL test so that we can test SILGen too.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -I %S/Inputs/abi %s -emit-ir | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/abi %s -emit-ir | %FileCheck %s
import c_layout import c_layout

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -Xllvm -sil-disable-pass="External Defs To Decls" %s -emit-ir -disable-objc-attr-requires-foundation-module | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -Xllvm -sil-disable-pass="External Defs To Decls" %s -emit-ir -disable-objc-attr-requires-foundation-module | %FileCheck %s
// REQUIRES: CPU=i386_or_x86_64 // REQUIRES: CPU=i386_or_x86_64
// XFAIL: linux // XFAIL: linux

View File

@@ -4,11 +4,11 @@
// inlineable. // inlineable.
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -Xcc -O3 -emit-ir | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -Xcc -O3 -emit-ir | %FileCheck %s
// RUN: mkdir -p %t/Empty.framework/Modules/Empty.swiftmodule // RUN: mkdir -p %t/Empty.framework/Modules/Empty.swiftmodule
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-module-path %t/Empty.framework/Modules/Empty.swiftmodule/%target-swiftmodule-name %S/../Inputs/empty.swift -module-name Empty // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-module-path %t/Empty.framework/Modules/Empty.swiftmodule/%target-swiftmodule-name %S/../Inputs/empty.swift -module-name Empty
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -F %t -DIMPORT_EMPTY -Xcc -O3 -emit-ir > %t.ll // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -F %t -DIMPORT_EMPTY -Xcc -O3 -emit-ir > %t.ll
// RUN: %FileCheck %s < %t.ll // RUN: %FileCheck %s < %t.ll
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.ll // RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.ll

View File

@@ -1,6 +1,6 @@
// Same test as clang_inline.swift, but with the order swapped. // Same test as clang_inline.swift, but with the order swapped.
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -emit-ir -module-name clang_inline | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -sdk %S/Inputs -primary-file %s -emit-ir -module-name clang_inline | %FileCheck %s
// REQUIRES: CPU=i386_or_x86_64 // REQUIRES: CPU=i386_or_x86_64
// XFAIL: linux // XFAIL: linux

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s -disable-objc-attr-requires-foundation-module | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s -disable-objc-attr-requires-foundation-module | %FileCheck %s
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64
// XFAIL: linux // XFAIL: linux

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s | %FileCheck %s
protocol P {} protocol P {}
class A : P {} class A : P {}

View File

@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %build-irgen-test-overlays // RUN: %build-irgen-test-overlays
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -Xllvm -new-mangling-for-tests %s -emit-ir | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) %s -emit-ir | %FileCheck %s
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -2,7 +2,7 @@
// RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift // RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
// RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_enum.swiftmodule -module-name=resilient_enum -I %t %S/../Inputs/resilient_enum.swift // RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_enum.swiftmodule -module-name=resilient_enum -I %t %S/../Inputs/resilient_enum.swift
// RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_class.swiftmodule -module-name=resilient_class -I %t %S/../Inputs/resilient_class.swift // RUN: %target-swift-frontend -emit-module -enable-resilience -enable-class-resilience -emit-module-path=%t/resilient_class.swiftmodule -module-name=resilient_class -I %t %S/../Inputs/resilient_class.swift
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -I %t -emit-ir -enable-resilience -enable-class-resilience %s | %FileCheck %s // RUN: %target-swift-frontend -I %t -emit-ir -enable-resilience -enable-class-resilience %s | %FileCheck %s
// RUN: %target-swift-frontend -I %t -emit-ir -enable-resilience -enable-class-resilience -O %s // RUN: %target-swift-frontend -I %t -emit-ir -enable-resilience -enable-class-resilience -O %s
// CHECK: %swift.type = type { [[INT:i32|i64]] } // CHECK: %swift.type = type { [[INT:i32|i64]] }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -emit-ir -o - -primary-file %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o - -primary-file %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
// REQUIRES: objc_interop // REQUIRES: objc_interop
// XFAIL: CPU=armv7k // XFAIL: CPU=armv7k

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -stack-promotion-limit 48 -Onone -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -stack-promotion-limit 48 -Onone -emit-ir %s | %FileCheck %s
import Builtin import Builtin
import Swift import Swift

View File

@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir -p %t // RUN: rm -rf %t && mkdir -p %t
// RUN: %build-irgen-test-overlays // RUN: %build-irgen-test-overlays
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -Xllvm -new-mangling-for-tests %s -emit-ir | %FileCheck %s // RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) %s -emit-ir | %FileCheck %s
// REQUIRES: objc_interop // REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir | %FileCheck %s
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -module-name foo -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -module-name foo -emit-ir %s | %FileCheck %s
// CHECK: %swift.type = type { [[INT:i32|i64]] } // CHECK: %swift.type = type { [[INT:i32|i64]] }

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-sil -o - | %FileCheck %s --check-prefix=SIL // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-sil -o - | %FileCheck %s --check-prefix=SIL
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-ir -o - | %FileCheck %s --check-prefix=IR // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-ir -o - | %FileCheck %s --check-prefix=IR
// IR-NOT: __llvm_coverage_names // IR-NOT: __llvm_coverage_names
// IR-NOT: __profn // IR-NOT: __profn

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir %s | %FileCheck %s
// REQUIRES: CPU=x86_64 // REQUIRES: CPU=x86_64
// REQUIRES: objc_interop // REQUIRES: objc_interop

Some files were not shown because too many files have changed in this diff Show More