From 36b56886974eae4f9c5ebc96befd3e7bfe5de338 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Wed, 23 Apr 2014 16:57:46 -0700 Subject: Update to LLVM 3.5a. Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617 --- test/Other/Inputs/llvm_cov.gcda | Bin 296 -> 0 bytes test/Other/Inputs/llvm_cov.gcno | Bin 984 -> 0 bytes test/Other/llvm-cov.test | 4 -- test/Other/new-pass-manager.ll | 69 ++++++++++++++++++++++ test/Other/pass-pipeline-parsing.ll | 110 ++++++++++++++++++++++++++++++++++++ 5 files changed, 179 insertions(+), 4 deletions(-) delete mode 100644 test/Other/Inputs/llvm_cov.gcda delete mode 100644 test/Other/Inputs/llvm_cov.gcno delete mode 100644 test/Other/llvm-cov.test create mode 100644 test/Other/new-pass-manager.ll create mode 100644 test/Other/pass-pipeline-parsing.ll (limited to 'test/Other') diff --git a/test/Other/Inputs/llvm_cov.gcda b/test/Other/Inputs/llvm_cov.gcda deleted file mode 100644 index 9ae2286..0000000 Binary files a/test/Other/Inputs/llvm_cov.gcda and /dev/null differ diff --git a/test/Other/Inputs/llvm_cov.gcno b/test/Other/Inputs/llvm_cov.gcno deleted file mode 100644 index 25e2023..0000000 Binary files a/test/Other/Inputs/llvm_cov.gcno and /dev/null differ diff --git a/test/Other/llvm-cov.test b/test/Other/llvm-cov.test deleted file mode 100644 index 2ac4e9e..0000000 --- a/test/Other/llvm-cov.test +++ /dev/null @@ -1,4 +0,0 @@ -PR11760 -RUN: llvm-cov -gcda=%S/Inputs/llvm_cov.gcda -gcno=%S/Inputs/llvm_cov.gcno -REQUIRES: asserts -XFAIL: * diff --git a/test/Other/new-pass-manager.ll b/test/Other/new-pass-manager.ll new file mode 100644 index 0000000..cec01b5 --- /dev/null +++ b/test/Other/new-pass-manager.ll @@ -0,0 +1,69 @@ +; This test is essentially doing very basic things with the opt tool and the +; new pass manager pipeline. It will be used to flesh out the feature +; completeness of the opt tool when the new pass manager is engaged. The tests +; may not be useful once it becomes the default or may get spread out into other +; files, but for now this is just going to step the new process through its +; paces. + +; RUN: opt -disable-output -debug-pass-manager -passes=print %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-MODULE-PRINT +; CHECK-MODULE-PRINT: Starting module pass manager +; CHECK-MODULE-PRINT: Running module pass: VerifierPass +; CHECK-MODULE-PRINT: Running module pass: PrintModulePass +; CHECK-MODULE-PRINT: ModuleID +; CHECK-MODULE-PRINT: define void @foo() +; CHECK-MODULE-PRINT: Running module pass: VerifierPass +; CHECK-MODULE-PRINT: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager -passes='function(print)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-FUNCTION-PRINT +; CHECK-FUNCTION-PRINT: Starting module pass manager +; CHECK-FUNCTION-PRINT: Running module pass: VerifierPass +; CHECK-FUNCTION-PRINT: Starting function pass manager +; CHECK-FUNCTION-PRINT: Running function pass: PrintFunctionPass +; CHECK-FUNCTION-PRINT-NOT: ModuleID +; CHECK-FUNCTION-PRINT: define void @foo() +; CHECK-FUNCTION-PRINT: Finished function pass manager +; CHECK-FUNCTION-PRINT: Running module pass: VerifierPass +; CHECK-FUNCTION-PRINT: Finished module pass manager + +; RUN: opt -S -o - -passes='no-op-module,no-op-module' %s \ +; RUN: | FileCheck %s --check-prefix=CHECK-NOOP +; CHECK-NOOP: define void @foo() { +; CHECK-NOOP: ret void +; CHECK-NOOP: } + +; Round trip through bitcode. +; RUN: opt -f -o - -passes='no-op-module,no-op-module' %s \ +; RUN: | llvm-dis \ +; RUN: | FileCheck %s --check-prefix=CHECK-NOOP + +; RUN: opt -disable-output -debug-pass-manager -verify-each -passes='no-op-module,function(no-op-function)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-VERIFY-EACH +; CHECK-VERIFY-EACH: Starting module pass manager +; CHECK-VERIFY-EACH: Running module pass: VerifierPass +; CHECK-VERIFY-EACH: Running module pass: NoOpModulePass +; CHECK-VERIFY-EACH: Running module pass: VerifierPass +; CHECK-VERIFY-EACH: Starting function pass manager +; CHECK-VERIFY-EACH: Running function pass: NoOpFunctionPass +; CHECK-VERIFY-EACH: Running function pass: VerifierPass +; CHECK-VERIFY-EACH: Finished function pass manager +; CHECK-VERIFY-EACH: Running module pass: VerifierPass +; CHECK-VERIFY-EACH: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager -disable-verify -passes='no-op-module,function(no-op-function)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-NO-VERIFY +; CHECK-NO-VERIFY: Starting module pass manager +; CHECK-NO-VERIFY-NOT: VerifierPass +; CHECK-NO-VERIFY: Running module pass: NoOpModulePass +; CHECK-NO-VERIFY-NOT: VerifierPass +; CHECK-NO-VERIFY: Starting function pass manager +; CHECK-NO-VERIFY: Running function pass: NoOpFunctionPass +; CHECK-NO-VERIFY-NOT: VerifierPass +; CHECK-NO-VERIFY: Finished function pass manager +; CHECK-NO-VERIFY-NOT: VerifierPass +; CHECK-NO-VERIFY: Finished module pass manager + +define void @foo() { + ret void +} diff --git a/test/Other/pass-pipeline-parsing.ll b/test/Other/pass-pipeline-parsing.ll new file mode 100644 index 0000000..ba33610 --- /dev/null +++ b/test/Other/pass-pipeline-parsing.ll @@ -0,0 +1,110 @@ +; RUN: opt -disable-output -debug-pass-manager \ +; RUN: -passes=no-op-module,no-op-module %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-TWO-NOOP-MP +; CHECK-TWO-NOOP-MP: Starting module pass manager +; CHECK-TWO-NOOP-MP: Running module pass: NoOpModulePass +; CHECK-TWO-NOOP-MP: Running module pass: NoOpModulePass +; CHECK-TWO-NOOP-MP: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager \ +; RUN: -passes='module(no-op-module,no-op-module)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-NESTED-TWO-NOOP-MP +; CHECK-NESTED-TWO-NOOP-MP: Starting module pass manager +; CHECK-NESTED-TWO-NOOP-MP: Running module pass: ModulePassManager +; CHECK-NESTED-TWO-NOOP-MP: Starting module pass manager +; CHECK-NESTED-TWO-NOOP-MP: Running module pass: NoOpModulePass +; CHECK-NESTED-TWO-NOOP-MP: Running module pass: NoOpModulePass +; CHECK-NESTED-TWO-NOOP-MP: Finished module pass manager +; CHECK-NESTED-TWO-NOOP-MP: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager \ +; RUN: -passes=no-op-function,no-op-function %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-TWO-NOOP-FP +; CHECK-TWO-NOOP-FP: Starting module pass manager +; CHECK-TWO-NOOP-FP: Running module pass: ModuleToFunctionPassAdaptor +; CHECK-TWO-NOOP-FP: Starting function pass manager +; CHECK-TWO-NOOP-FP: Running function pass: NoOpFunctionPass +; CHECK-TWO-NOOP-FP: Running function pass: NoOpFunctionPass +; CHECK-TWO-NOOP-FP: Finished function pass manager +; CHECK-TWO-NOOP-FP: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager \ +; RUN: -passes='function(no-op-function,no-op-function)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-NESTED-TWO-NOOP-FP +; CHECK-NESTED-TWO-NOOP-FP: Starting module pass manager +; CHECK-NESTED-TWO-NOOP-FP: Running module pass: ModuleToFunctionPassAdaptor +; CHECK-NESTED-TWO-NOOP-FP: Starting function pass manager +; CHECK-NESTED-TWO-NOOP-FP: Running function pass: FunctionPassManager +; CHECK-NESTED-TWO-NOOP-FP: Starting function pass manager +; CHECK-NESTED-TWO-NOOP-FP: Running function pass: NoOpFunctionPass +; CHECK-NESTED-TWO-NOOP-FP: Running function pass: NoOpFunctionPass +; CHECK-NESTED-TWO-NOOP-FP: Finished function pass manager +; CHECK-NESTED-TWO-NOOP-FP: Finished function pass manager +; CHECK-NESTED-TWO-NOOP-FP: Finished module pass manager + +; RUN: opt -disable-output -debug-pass-manager \ +; RUN: -passes='no-op-module,function(no-op-function,no-op-function),no-op-module' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-MIXED-FP-AND-MP +; CHECK-MIXED-FP-AND-MP: Starting module pass manager +; CHECK-MIXED-FP-AND-MP: Running module pass: NoOpModulePass +; CHECK-MIXED-FP-AND-MP: Running module pass: ModuleToFunctionPassAdaptor +; CHECK-MIXED-FP-AND-MP: Starting function pass manager +; CHECK-MIXED-FP-AND-MP: Running function pass: NoOpFunctionPass +; CHECK-MIXED-FP-AND-MP: Running function pass: NoOpFunctionPass +; CHECK-MIXED-FP-AND-MP: Finished function pass manager +; CHECK-MIXED-FP-AND-MP: Running module pass: NoOpModulePass +; CHECK-MIXED-FP-AND-MP: Finished module pass manager + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='no-op-module)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED1 +; CHECK-UNBALANCED1: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='module(no-op-module))' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED2 +; CHECK-UNBALANCED2: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='module(no-op-module' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED3 +; CHECK-UNBALANCED3: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='no-op-function)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED4 +; CHECK-UNBALANCED4: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='function(no-op-function))' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED5 +; CHECK-UNBALANCED5: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='function(function(no-op-function)))' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED6 +; CHECK-UNBALANCED6: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='function(no-op-function' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED7 +; CHECK-UNBALANCED7: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='function(function(no-op-function)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED8 +; CHECK-UNBALANCED8: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='no-op-module,)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED9 +; CHECK-UNBALANCED9: unable to parse pass pipeline description + +; RUN: not opt -disable-output -debug-pass-manager \ +; RUN: -passes='no-op-function,)' %s 2>&1 \ +; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED10 +; CHECK-UNBALANCED10: unable to parse pass pipeline description + +define void @f() { + ret void +} -- cgit v1.1