summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/thinlto-alias.ll
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-06-26 13:56:49 +0000
committerTeresa Johnson <tejohnson@google.com>2018-06-26 13:56:49 +0000
commit63ee0e73e44e80d4e6d388de734cdb5106c8a6de (patch)
tree84f4df06ba721af4966e6f527e22e8bf9d094068 /llvm/test/Bitcode/thinlto-alias.ll
parent5915777eca88a8c14c58869219aa6fe1543a70b5 (diff)
downloadbcm5719-llvm-63ee0e73e44e80d4e6d388de734cdb5106c8a6de.tar.gz
bcm5719-llvm-63ee0e73e44e80d4e6d388de734cdb5106c8a6de.zip
[ThinLTO] Parse module summary index from assembly
Summary: Adds assembly parsing support for the module summary index (follow on to r333335 which added the assembly writing support). I added support to llvm-as to invoke the index parsing, so that it can create either a bitcode file with a Module and a per-module index, or a combined index without a Module. I will send follow on patches soon to do the following: - add support to tools such as llvm-lto2 to parse the per-module indexes from assembly instead of bitcode when testing the thin link. - verification support. Depends on D47844 and D47842. Reviewers: pcc, dexonsmith, mehdi_amini Subscribers: inglorion, eraman, steven_wu, llvm-commits Differential Revision: https://reviews.llvm.org/D47905 llvm-svn: 335602
Diffstat (limited to 'llvm/test/Bitcode/thinlto-alias.ll')
-rw-r--r--llvm/test/Bitcode/thinlto-alias.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/thinlto-alias.ll b/llvm/test/Bitcode/thinlto-alias.ll
index 439fd3343fb..05de932faee 100644
--- a/llvm/test/Bitcode/thinlto-alias.ll
+++ b/llvm/test/Bitcode/thinlto-alias.ll
@@ -3,9 +3,13 @@
; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s
; RUN: opt -module-summary %p/Inputs/thinlto-alias.ll -o %t2.o
; RUN: llvm-dis -o - %t2.o | FileCheck %s --check-prefix=DIS
+; Round trip it through llvm-as
+; RUN: llvm-dis -o - %t2.o | llvm-as -o - | llvm-dis -o - | FileCheck %s --check-prefix=DIS
; RUN: llvm-lto -thinlto -o %t3 %t.o %t2.o
; RUN: llvm-bcanalyzer -dump %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED
; RUN: llvm-dis -o - %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED-DIS
+; Round trip it through llvm-as
+; RUN: llvm-dis -o - %t3.thinlto.bc | llvm-as -o - | llvm-dis -o - | FileCheck %s --check-prefix=COMBINED-DIS
; CHECK: <SOURCE_FILENAME
; "main"
@@ -47,7 +51,7 @@ entry:
declare void @analias(...)
-; DIS: ^0 = module: (path: "{{.*}}thinlto-alias.ll.tmp2.o", hash: (0, 0, 0, 0, 0))
+; DIS: ^0 = module: (path: "{{.*}}", hash: (0, 0, 0, 0, 0))
; DIS: ^1 = gv: (name: "analias", summaries: (alias: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 0), aliasee: ^2))) ; guid = 12695095382722328222
; DIS: ^2 = gv: (name: "aliasee", summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 0), insts: 1))) ; guid = 17407585008595848568
OpenPOWER on IntegriCloud