mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil-tooling] Rename sil-sort-output => emit-sorted-sil.
This standardizes on the name used for the same option in swiftc.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// RUN: rm -rf %t
|
||||
// RUN: mkdir -p %t
|
||||
// RUN: %target-swift-frontend -parse-sil -emit-sib -parse-as-library -parse-stdlib -module-name SemanticsAttr -o %t/SemanticsAttr.sib %s
|
||||
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil %t/SemanticsAttr.sib -o - -sil-sort-output | %FileCheck %s
|
||||
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil %t/SemanticsAttr.sib -o - -emit-sorted-sil | %FileCheck %s
|
||||
|
||||
sil_stage canonical
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -specdevirt -code-sinking -sil-sort-output | %FileCheck %s
|
||||
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -specdevirt -code-sinking -emit-sorted-sil | %FileCheck %s
|
||||
|
||||
sil_stage canonical
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// All bbs should have IDs that match the rpo order put out when printing with -sil-sort-output
|
||||
// All bbs should have IDs that match the rpo order put out when printing with -emit-sorted-sil
|
||||
|
||||
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil %s -module-name Swift -loop-region-view-text -o /dev/null | %FileCheck %s
|
||||
|
||||
|
||||
@@ -90,6 +90,12 @@ static llvm::cl::opt<std::string>
|
||||
static llvm::cl::opt<std::string> Triple("target",
|
||||
llvm::cl::desc("target triple"));
|
||||
|
||||
static llvm::cl::opt<bool>
|
||||
EnableSILSortOutput("emit-sorted-sil", llvm::cl::Hidden,
|
||||
llvm::cl::init(false),
|
||||
llvm::cl::desc("Sort Functions, VTables, Globals, "
|
||||
"WitnessTables by name to ease diffing."));
|
||||
|
||||
static llvm::cl::opt<bool> AssumeUnqualifiedOwnershipWhenParsing(
|
||||
"assume-parsing-unqualified-ownership-sil", llvm::cl::Hidden,
|
||||
llvm::cl::init(false),
|
||||
|
||||
@@ -143,7 +143,7 @@ static llvm::cl::opt<std::string>
|
||||
ModuleCachePath("module-cache-path", llvm::cl::desc("Clang module cache path"));
|
||||
|
||||
static llvm::cl::opt<bool>
|
||||
EnableSILSortOutput("sil-sort-output", llvm::cl::Hidden,
|
||||
EnableSILSortOutput("emit-sorted-sil", llvm::cl::Hidden,
|
||||
llvm::cl::init(false),
|
||||
llvm::cl::desc("Sort Functions, VTables, Globals, "
|
||||
"WitnessTables by name to ease diffing."));
|
||||
|
||||
Reference in New Issue
Block a user