mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[NewPM][opt] Translate "-O#" to NPM's "default<O#>"
Fixes 52 check-llvm tests under NPM. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D83367
This commit is contained in:
parent
bcce08feb7
commit
e8d13f6c1b
@ -1,8 +1,8 @@
|
|||||||
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -debug-pass=Structure < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=DEFAULT-Os
|
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -debug-pass=Structure < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=DEFAULT-Os
|
||||||
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -passes='lto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-PRELINK-Os
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='lto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-PRELINK-Os
|
||||||
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -passes='thinlto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-PRELINK-Os
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='thinlto-pre-link<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-PRELINK-Os
|
||||||
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -passes='lto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-POSTLINK-Os
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='lto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=LTO-POSTLINK-Os
|
||||||
; RUN: opt -mtriple=x86_64-- -Os -hot-cold-split=true -passes='thinlto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-POSTLINK-Os
|
; RUN: opt -mtriple=x86_64-- -hot-cold-split=true -passes='thinlto<Os>' -debug-pass-manager < %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=THINLTO-POSTLINK-Os
|
||||||
|
|
||||||
; REQUIRES: asserts
|
; REQUIRES: asserts
|
||||||
|
|
||||||
|
@ -746,6 +746,18 @@ int main(int argc, char **argv) {
|
|||||||
for (const auto &P : PassList) {
|
for (const auto &P : PassList) {
|
||||||
Passes.push_back(P->getPassArgument());
|
Passes.push_back(P->getPassArgument());
|
||||||
}
|
}
|
||||||
|
if (OptLevelO0)
|
||||||
|
Passes.push_back("default<O0>");
|
||||||
|
if (OptLevelO1)
|
||||||
|
Passes.push_back("default<O1>");
|
||||||
|
if (OptLevelO2)
|
||||||
|
Passes.push_back("default<O2>");
|
||||||
|
if (OptLevelO3)
|
||||||
|
Passes.push_back("default<O3>");
|
||||||
|
if (OptLevelOs)
|
||||||
|
Passes.push_back("default<Os>");
|
||||||
|
if (OptLevelOz)
|
||||||
|
Passes.push_back("default<Oz>");
|
||||||
OutputKind OK = OK_NoOutput;
|
OutputKind OK = OK_NoOutput;
|
||||||
if (!NoOutput)
|
if (!NoOutput)
|
||||||
OK = OutputAssembly
|
OK = OutputAssembly
|
||||||
|
Loading…
Reference in New Issue
Block a user