diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 07:38:24 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-13 07:38:24 +0000 |
commit | e2dc71d312fb9e46ad89429bade1f221ea8e67ff (patch) | |
tree | c2a98e5746519aa87c89547267571242c3652edb /test | |
parent | 5868b12dfb0cc2a946129ffebe58d098db89e332 (diff) | |
download | llvm-e2dc71d312fb9e46ad89429bade1f221ea8e67ff.tar.gz llvm-e2dc71d312fb9e46ad89429bade1f221ea8e67ff.tar.bz2 llvm-e2dc71d312fb9e46ad89429bade1f221ea8e67ff.tar.xz |
[PM] Wire up support for writing bitcode with new PM.
This moves the old pass creation functionality to its own header and
updates the callers of that routine. Then it adds a new PM supporting
bitcode writer to the header file, and wires that up in the opt tool.
A test is added that round-trips code into bitcode and back out using
the new pass manager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Other/new-pass-manager.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Other/new-pass-manager.ll b/test/Other/new-pass-manager.ll index d7cfb5ec7a..376bb2625e 100644 --- a/test/Other/new-pass-manager.ll +++ b/test/Other/new-pass-manager.ll @@ -29,6 +29,11 @@ ; 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 + define void @foo() { ret void } |