[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:
Michael Gottesman
2016-12-08 18:21:37 -08:00
parent 0bfda96ace
commit 8972b43abb
5 changed files with 10 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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),

View File

@@ -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."));