<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">; RUN: </span><span class="" style="font-family:arial,sans-serif;font-size:13px">verify</span><span style="font-family:arial,sans-serif;font-size:13px">-</span><span class="" style="font-family:arial,sans-serif;font-size:13px">uselistorder</span><span style="font-family:arial,sans-serif;font-size:13px"> < %s.bc -preserve-bc-use-list-order -num-shuffles=5</span><br>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">quick question: is the shuffling nondeterministic? I think we really need to avoid a test that is nondeterministic.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">-- Sean Silva</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 30, 2014 at 11:11 AM, Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: dexonsmith<br>
Date: Wed Jul 30 12:11:27 2014<br>
New Revision: 214318<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=214318&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=214318&view=rev</a><br>
Log:<br>
Rename llvm-uselistorder => verify-uselistorder<br>
<br>
Added:<br>
llvm/trunk/tools/verify-uselistorder/<br>
llvm/trunk/tools/verify-uselistorder/CMakeLists.txt<br>
- copied, changed from r214317, llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt<br>
llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt<br>
- copied, changed from r214317, llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt<br>
llvm/trunk/tools/verify-uselistorder/Makefile<br>
- copied, changed from r214317, llvm/trunk/tools/llvm-uselistorder/Makefile<br>
llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp<br>
- copied, changed from r214317, llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp<br>
Removed:<br>
llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt<br>
llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt<br>
llvm/trunk/tools/llvm-uselistorder/Makefile<br>
llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp<br>
Modified:<br>
llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll<br>
llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll<br>
llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll<br>
llvm/trunk/test/Bitcode/atomic.ll<br>
llvm/trunk/test/Bitcode/attributes-3.3.ll<br>
llvm/trunk/test/Bitcode/attributes.ll<br>
llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/calling-conventions.3.2.ll<br>
llvm/trunk/test/Bitcode/case-ranges-3.3.ll<br>
llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll<br>
llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/drop-debug-info.ll<br>
llvm/trunk/test/Bitcode/extractelement.ll<br>
llvm/trunk/test/Bitcode/flags.ll<br>
llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll<br>
llvm/trunk/test/Bitcode/global-variables.3.2.ll<br>
llvm/trunk/test/Bitcode/inalloca.ll<br>
llvm/trunk/test/Bitcode/linkage-types-3.2.ll<br>
llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll<br>
llvm/trunk/test/Bitcode/memInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/metadata.ll<br>
llvm/trunk/test/Bitcode/old-aliases.ll<br>
llvm/trunk/test/Bitcode/ptest-new.ll<br>
llvm/trunk/test/Bitcode/ptest-old.ll<br>
llvm/trunk/test/Bitcode/select.ll<br>
llvm/trunk/test/Bitcode/shuffle.ll<br>
llvm/trunk/test/Bitcode/tailcall.ll<br>
llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/upgrade-global-ctors.ll<br>
llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll<br>
llvm/trunk/test/Bitcode/upgrade-tbaa.ll<br>
llvm/trunk/test/Bitcode/use-list-order.ll<br>
llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll<br>
llvm/trunk/test/Bitcode/visibility-styles.3.2.ll<br>
llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll<br>
llvm/trunk/test/CMakeLists.txt<br>
llvm/trunk/test/lit.cfg<br>
llvm/trunk/tools/CMakeLists.txt<br>
llvm/trunk/tools/LLVMBuild.txt<br>
llvm/trunk/tools/Makefile<br>
<br>
Modified: llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll (original)<br>
+++ llvm/trunk/test/Bitcode/2006-12-11-Cast-ConstExpr.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,7 +1,7 @@<br>
; This test ensures that we get a bitcast constant expression in and out,<br>
; not a sitofp constant expression.<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; CHECK: bitcast (<br>
<br>
@G = external global i32<br>
<br>
Modified: llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll (original)<br>
+++ llvm/trunk/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis -disable-output<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; PR4373<br>
<br>
@foo = weak global { i32 } zeroinitializer<br>
<br>
Modified: llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/aggregateInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; aggregateOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread instructions with aggregate operands<br>
<br>
Modified: llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll (original)<br>
+++ llvm/trunk/test/Bitcode/arm32_neon_vcnt_upgrade.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; Tests vclz and vcnt<br>
<br>
define <4 x i16> @vclz16(<4 x i16>* %A) nounwind {<br>
<br>
Modified: llvm/trunk/test/Bitcode/atomic.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/atomic.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/atomic.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/atomic.ll (original)<br>
+++ llvm/trunk/test/Bitcode/atomic.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {<br>
cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst<br>
<br>
Modified: llvm/trunk/test/Bitcode/attributes-3.3.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes-3.3.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes-3.3.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/attributes-3.3.ll (original)<br>
+++ llvm/trunk/test/Bitcode/attributes-3.3.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; attributes-3.3.ll.bc was generated by passing this file to llvm-as-3.3.<br>
; The test checks that LLVM does not silently misread attributes of<br>
<br>
Modified: llvm/trunk/test/Bitcode/attributes.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/attributes.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/attributes.ll (original)<br>
+++ llvm/trunk/test/Bitcode/attributes.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; PR12696<br>
<br>
define void @f1(i8 zeroext)<br>
<br>
Modified: llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/binaryFloatInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; BinaryFloatOperation.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread binary float instructions from<br>
<br>
Modified: llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/binaryIntInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; BinaryIntOperation.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread binary integer instructions from<br>
<br>
Modified: llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/bitwiseInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; bitwiseOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread bitwise instructions from<br>
<br>
Modified: llvm/trunk/test/Bitcode/calling-conventions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/calling-conventions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/calling-conventions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/calling-conventions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/calling-conventions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; calling-conventions.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not silently misread calling conventions of<br>
<br>
Modified: llvm/trunk/test/Bitcode/case-ranges-3.3.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/case-ranges-3.3.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/case-ranges-3.3.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/case-ranges-3.3.ll (original)<br>
+++ llvm/trunk/test/Bitcode/case-ranges-3.3.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; case-ranges.ll.bc was generated by passing this file to llvm-as from the 3.3<br>
; release of LLVM. This tests that the bitcode for switches from that release<br>
<br>
Modified: llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll (original)<br>
+++ llvm/trunk/test/Bitcode/cmpxchg-upgrade.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just<br>
; before the IR change on this file.<br>
<br>
Modified: llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/conversionInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; conversionOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread conversion instructions from<br>
<br>
Modified: llvm/trunk/test/Bitcode/drop-debug-info.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/drop-debug-info.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/drop-debug-info.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/drop-debug-info.ll (original)<br>
+++ llvm/trunk/test/Bitcode/drop-debug-info.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,6 +1,6 @@<br>
; RUN: llvm-as < %s -o %t.bc 2>&1 >/dev/null | FileCheck -check-prefix=WARN %s<br>
; RUN: llvm-dis < %t.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %t.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %t.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define i32 @main() {<br>
entry:<br>
<br>
Modified: llvm/trunk/test/Bitcode/extractelement.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/extractelement.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/extractelement.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/extractelement.ll (original)<br>
+++ llvm/trunk/test/Bitcode/extractelement.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: opt < %s -constprop | llvm-dis -disable-output<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; PR3465<br>
<br>
define double @test() {<br>
<br>
Modified: llvm/trunk/test/Bitcode/flags.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/flags.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/flags.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/flags.ll (original)<br>
+++ llvm/trunk/test/Bitcode/flags.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,7 +1,7 @@<br>
; RUN: llvm-as < %s | llvm-dis > %t0<br>
; RUN: opt -S < %s > %t1<br>
; RUN: diff %t0 %t1<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
; PR6140<br>
<br>
; Make sure the flags are serialized/deserialized properly for both<br>
<br>
Modified: llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll (original)<br>
+++ llvm/trunk/test/Bitcode/function-encoding-rel-operands.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,7 +1,7 @@<br>
; Basic sanity test to check that instruction operands are encoded with<br>
; relative IDs.<br>
; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; CHECK: FUNCTION_BLOCK<br>
; CHECK: INST_BINOP {{.*}}op0=1 op1=1<br>
<br>
Modified: llvm/trunk/test/Bitcode/global-variables.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/global-variables.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/global-variables.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/global-variables.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/global-variables.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; global-variables.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not silently misread global variables attributes of<br>
<br>
Modified: llvm/trunk/test/Bitcode/inalloca.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/inalloca.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/inalloca.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/inalloca.ll (original)<br>
+++ llvm/trunk/test/Bitcode/inalloca.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; inalloca should roundtrip.<br>
<br>
<br>
Modified: llvm/trunk/test/Bitcode/linkage-types-3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/linkage-types-3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/linkage-types-3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/linkage-types-3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/linkage-types-3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; linkage-types-3.2.ll.bc was generated by passing this file to llvm-as-3.2<br>
; The test checks that LLVM does not silently misread linkage types of<br>
<br>
Modified: llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll (original)<br>
+++ llvm/trunk/test/Bitcode/local-linkage-default-visibility.3.4.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file<br>
; to llvm-as-3.4. The test checks that LLVM upgrades visibility of symbols<br>
<br>
Modified: llvm/trunk/test/Bitcode/memInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/memInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/memInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/memInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/memInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; memOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread memory related instructions of<br>
<br>
Modified: llvm/trunk/test/Bitcode/metadata.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/metadata.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/metadata.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/metadata.ll (original)<br>
+++ llvm/trunk/test/Bitcode/metadata.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis -disable-output<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
!llvm.foo = !{!0}<br>
!0 = metadata !{i32 42}<br>
<br>
Modified: llvm/trunk/test/Bitcode/old-aliases.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/old-aliases.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/old-aliases.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/old-aliases.ll (original)<br>
+++ llvm/trunk/test/Bitcode/old-aliases.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; old-aliases.bc consist of this file assembled with an old llvm-as (3.5 trunk)<br>
; from when aliases contained a ConstantExpr.<br>
<br>
Modified: llvm/trunk/test/Bitcode/ptest-new.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-new.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-new.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/ptest-new.ll (original)<br>
+++ llvm/trunk/test/Bitcode/ptest-new.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define i32 @foo(<2 x i64> %bar) nounwind {<br>
entry:<br>
<br>
Modified: llvm/trunk/test/Bitcode/ptest-old.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-old.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/ptest-old.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/ptest-old.ll (original)<br>
+++ llvm/trunk/test/Bitcode/ptest-old.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define i32 @foo(<4 x float> %bar) nounwind {<br>
entry:<br>
<br>
Modified: llvm/trunk/test/Bitcode/select.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/select.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/select.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/select.ll (original)<br>
+++ llvm/trunk/test/Bitcode/select.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define <2 x i32> @main() {<br>
ret <2 x i32> select (<2 x i1> <i1 false, i1 undef>, <2 x i32> zeroinitializer, <2 x i32> <i32 0, i32 undef>)<br>
<br>
Modified: llvm/trunk/test/Bitcode/shuffle.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/shuffle.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/shuffle.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/shuffle.ll (original)<br>
+++ llvm/trunk/test/Bitcode/shuffle.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis -disable-output<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; <rdar://problem/8622574><br>
; tests the bitcodereader can handle the case where the reader will initially<br>
<br>
Modified: llvm/trunk/test/Bitcode/tailcall.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/tailcall.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/tailcall.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/tailcall.ll (original)<br>
+++ llvm/trunk/test/Bitcode/tailcall.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; Check that musttail and tail roundtrip.<br>
<br>
<br>
Modified: llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/terminatorInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; TerminatorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread terminator instructions from<br>
<br>
Modified: llvm/trunk/test/Bitcode/upgrade-global-ctors.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-global-ctors.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-global-ctors.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/upgrade-global-ctors.ll (original)<br>
+++ llvm/trunk/test/Bitcode/upgrade-global-ctors.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,4 +1,4 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer<br>
<br>
Modified: llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll (original)<br>
+++ llvm/trunk/test/Bitcode/upgrade-loop-metadata.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,7 +1,7 @@<br>
; Test to make sure loop vectorizer metadata is automatically upgraded.<br>
;<br>
; RUN: llvm-dis < %s.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
define void @_Z28loop_with_vectorize_metadatav() {<br>
entry:<br>
<br>
Modified: llvm/trunk/test/Bitcode/upgrade-tbaa.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-tbaa.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/upgrade-tbaa.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/upgrade-tbaa.ll (original)<br>
+++ llvm/trunk/test/Bitcode/upgrade-tbaa.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-as < %s | llvm-dis | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; Function Attrs: nounwind<br>
define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {<br>
<br>
Modified: llvm/trunk/test/Bitcode/use-list-order.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/use-list-order.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/use-list-order.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/use-list-order.ll (original)<br>
+++ llvm/trunk/test/Bitcode/use-list-order.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,4 +1,4 @@<br>
-; RUN: llvm-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
@a = global [4 x i1] [i1 0, i1 1, i1 0, i1 1]<br>
@b = alias i1* getelementptr ([4 x i1]* @a, i64 0, i64 2)<br>
<br>
Modified: llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/vectorInstructions.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; vectorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not misread vector operations of<br>
<br>
Modified: llvm/trunk/test/Bitcode/visibility-styles.3.2.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/visibility-styles.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/visibility-styles.3.2.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/visibility-styles.3.2.ll (original)<br>
+++ llvm/trunk/test/Bitcode/visibility-styles.3.2.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc| FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; visibility-styles.3.2.ll.bc was generated by passing this file to llvm-as-3.2.<br>
; The test checks that LLVM does not silently misread visibility styles of<br>
<br>
Modified: llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll (original)<br>
+++ llvm/trunk/test/Bitcode/weak-cmpxchg-upgrade.ll Wed Jul 30 12:11:27 2014<br>
@@ -1,5 +1,5 @@<br>
; RUN: llvm-dis < %s.bc | FileCheck %s<br>
-; RUN: llvm-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
+; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order -num-shuffles=5<br>
<br>
; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just<br>
; before the IR change on this file.<br>
<br>
Modified: llvm/trunk/test/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/CMakeLists.txt (original)<br>
+++ llvm/trunk/test/CMakeLists.txt Wed Jul 30 12:11:27 2014<br>
@@ -44,7 +44,6 @@ set(LLVM_TEST_DEPENDS<br>
llvm-rtdyld<br>
llvm-symbolizer<br>
llvm-tblgen<br>
- llvm-uselistorder<br>
llvm-vtabledump<br>
macho-dump<br>
opt<br>
@@ -53,6 +52,7 @@ set(LLVM_TEST_DEPENDS<br>
not<br>
yaml2obj<br>
obj2yaml<br>
+ verify-uselistorder<br>
)<br>
<br>
# If Intel JIT events are supported, depend on a tool that tests the listener.<br>
<br>
Modified: llvm/trunk/test/lit.cfg<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/test/lit.cfg (original)<br>
+++ llvm/trunk/test/lit.cfg Wed Jul 30 12:11:27 2014<br>
@@ -228,7 +228,6 @@ for pattern in [r"\bbugpoint\b(?!-)",<br>
r"\bllvm-rtdyld\b",<br>
r"\bllvm-size\b",<br>
r"\bllvm-tblgen\b",<br>
- r"\bllvm-uselistorder\b",<br>
r"\bllvm-vtabledump\b",<br>
r"\bllvm-c-test\b",<br>
r"\bmacho-dump\b",<br>
@@ -236,6 +235,7 @@ for pattern in [r"\bbugpoint\b(?!-)",<br>
r"\bFileCheck\b",<br>
r"\bobj2yaml\b",<br>
r"\byaml2obj\b",<br>
+ r"\bverify-uselistorder\b",<br>
# Handle these specially as they are strings searched<br>
# for during testing.<br>
r"\| \bcount\b",<br>
<br>
Modified: llvm/trunk/tools/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/CMakeLists.txt?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/CMakeLists.txt?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/CMakeLists.txt (original)<br>
+++ llvm/trunk/tools/CMakeLists.txt Wed Jul 30 12:11:27 2014<br>
@@ -43,7 +43,7 @@ add_llvm_tool_subdirectory(llvm-bcanalyz<br>
add_llvm_tool_subdirectory(llvm-stress)<br>
add_llvm_tool_subdirectory(llvm-mcmarkup)<br>
<br>
-add_llvm_tool_subdirectory(llvm-uselistorder)<br>
+add_llvm_tool_subdirectory(verify-uselistorder)<br>
<br>
add_llvm_tool_subdirectory(llvm-symbolizer)<br>
<br>
<br>
Modified: llvm/trunk/tools/LLVMBuild.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/LLVMBuild.txt?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/LLVMBuild.txt?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/LLVMBuild.txt (original)<br>
+++ llvm/trunk/tools/LLVMBuild.txt Wed Jul 30 12:11:27 2014<br>
@@ -16,7 +16,7 @@<br>
;===------------------------------------------------------------------------===;<br>
<br>
[common]<br>
-subdirectories = bugpoint llc lli llvm-ar llvm-as llvm-bcanalyzer llvm-cov llvm-diff llvm-dis llvm-dwarfdump llvm-extract llvm-jitlistener llvm-link llvm-lto llvm-mc llvm-nm llvm-objdump llvm-profdata llvm-rtdyld llvm-size macho-dump opt llvm-mcmarkup llvm-uselistorder<br>
+subdirectories = bugpoint llc lli llvm-ar llvm-as llvm-bcanalyzer llvm-cov llvm-diff llvm-dis llvm-dwarfdump llvm-extract llvm-jitlistener llvm-link llvm-lto llvm-mc llvm-nm llvm-objdump llvm-profdata llvm-rtdyld llvm-size macho-dump opt llvm-mcmarkup verify-uselistorder<br>
<br>
[component_0]<br>
type = Group<br>
<br>
Modified: llvm/trunk/tools/Makefile<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=214318&r1=214317&r2=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=214318&r1=214317&r2=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/Makefile (original)<br>
+++ llvm/trunk/tools/Makefile Wed Jul 30 12:11:27 2014<br>
@@ -32,7 +32,7 @@ PARALLEL_DIRS := opt llvm-as llvm-dis ll<br>
macho-dump llvm-objdump llvm-readobj llvm-rtdyld \<br>
llvm-dwarfdump llvm-cov llvm-size llvm-stress llvm-mcmarkup \<br>
llvm-profdata llvm-symbolizer obj2yaml yaml2obj llvm-c-test \<br>
- llvm-vtabledump llvm-uselistorder<br>
+ llvm-vtabledump verify-uselistorder<br>
<br>
# If Intel JIT Events support is configured, build an extra tool to test it.<br>
ifeq ($(USE_INTEL_JITEVENTS), 1)<br>
<br>
Removed: llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt?rev=214317&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt?rev=214317&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt (original)<br>
+++ llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt (removed)<br>
@@ -1,12 +0,0 @@<br>
-set(LLVM_LINK_COMPONENTS<br>
- AsmParser<br>
- BitReader<br>
- BitWriter<br>
- Core<br>
- IRReader<br>
- Support<br>
- )<br>
-<br>
-add_llvm_tool(llvm-uselistorder<br>
- llvm-uselistorder.cpp<br>
- )<br>
<br>
Removed: llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt?rev=214317&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt?rev=214317&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt (original)<br>
+++ llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt (removed)<br>
@@ -1,22 +0,0 @@<br>
-;===- ./tools/llvm-uselistorder/LLVMBuild.txt ------------------*- Conf -*--===;<br>
-;<br>
-; The LLVM Compiler Infrastructure<br>
-;<br>
-; This file is distributed under the University of Illinois Open Source<br>
-; License. See LICENSE.TXT for details.<br>
-;<br>
-;===------------------------------------------------------------------------===;<br>
-;<br>
-; This is an LLVMBuild description file for the components in this subdirectory.<br>
-;<br>
-; For more information on the LLVMBuild system, please see:<br>
-;<br>
-; <a href="http://llvm.org/docs/LLVMBuild.html" target="_blank">http://llvm.org/docs/LLVMBuild.html</a><br>
-;<br>
-;===------------------------------------------------------------------------===;<br>
-<br>
-[component_0]<br>
-type = Tool<br>
-name = llvm-uselistorder<br>
-parent = Tools<br>
-required_libraries = IRReader BitWriter Support<br>
<br>
Removed: llvm/trunk/tools/llvm-uselistorder/Makefile<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/Makefile?rev=214317&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/Makefile?rev=214317&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/Makefile (original)<br>
+++ llvm/trunk/tools/llvm-uselistorder/Makefile (removed)<br>
@@ -1,17 +0,0 @@<br>
-##===- tools/llvm-uselistorder/Makefile --------------------*- Makefile -*-===##<br>
-#<br>
-# The LLVM Compiler Infrastructure<br>
-#<br>
-# This file is distributed under the University of Illinois Open Source<br>
-# License. See LICENSE.TXT for details.<br>
-#<br>
-##===----------------------------------------------------------------------===##<br>
-<br>
-LEVEL := ../..<br>
-TOOLNAME := llvm-uselistorder<br>
-LINK_COMPONENTS := AsmParser BitReader BitWriter Core IRReader Support<br>
-<br>
-# This tool has no plugins, optimize startup time.<br>
-TOOL_NO_EXPORTS := 1<br>
-<br>
-include $(LEVEL)/Makefile.common<br>
<br>
Removed: llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp?rev=214317&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp?rev=214317&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp (original)<br>
+++ llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp (removed)<br>
@@ -1,394 +0,0 @@<br>
-//===- llvm-uselistorder.cpp - The LLVM Modular Optimizer -----------------===//<br>
-//<br>
-// The LLVM Compiler Infrastructure<br>
-//<br>
-// This file is distributed under the University of Illinois Open Source<br>
-// License. See LICENSE.TXT for details.<br>
-//<br>
-//===----------------------------------------------------------------------===//<br>
-//<br>
-// Verify that use-list order can be serialized correctly. After reading the<br>
-// provided IR, this tool shuffles the use-lists and then writes and reads to a<br>
-// separate Module whose use-list orders are compared to the original.<br>
-//<br>
-//===----------------------------------------------------------------------===//<br>
-<br>
-#include "llvm/ADT/DenseMap.h"<br>
-#include "llvm/AsmParser/Parser.h"<br>
-#include "llvm/Bitcode/ReaderWriter.h"<br>
-#include "llvm/IR/LLVMContext.h"<br>
-#include "llvm/IR/Module.h"<br>
-#include "llvm/IR/UseListOrder.h"<br>
-#include "llvm/IRReader/IRReader.h"<br>
-#include "llvm/Support/CommandLine.h"<br>
-#include "llvm/Support/Debug.h"<br>
-#include "llvm/Support/ErrorHandling.h"<br>
-#include "llvm/Support/FileSystem.h"<br>
-#include "llvm/Support/FileUtilities.h"<br>
-#include "llvm/Support/ManagedStatic.h"<br>
-#include "llvm/Support/MemoryBuffer.h"<br>
-#include "llvm/Support/PrettyStackTrace.h"<br>
-#include "llvm/Support/Signals.h"<br>
-#include "llvm/Support/SourceMgr.h"<br>
-#include "llvm/Support/SystemUtils.h"<br>
-<br>
-using namespace llvm;<br>
-<br>
-#define DEBUG_TYPE "use-list-order"<br>
-<br>
-static cl::opt<std::string> InputFilename(cl::Positional,<br>
- cl::desc("<input bitcode file>"),<br>
- cl::init("-"),<br>
- cl::value_desc("filename"));<br>
-<br>
-static cl::opt<bool> SaveTemps("save-temps", cl::desc("Save temp files"),<br>
- cl::init(false));<br>
-<br>
-static cl::opt<unsigned><br>
- NumShuffles("num-shuffles",<br>
- cl::desc("Number of times to shuffle and verify use-lists"),<br>
- cl::init(1));<br>
-<br>
-namespace {<br>
-<br>
-struct TempFile {<br>
- std::string Filename;<br>
- FileRemover Remover;<br>
- bool init(const std::string &Ext);<br>
- bool writeBitcode(const Module &M) const;<br>
- bool writeAssembly(const Module &M) const;<br>
- std::unique_ptr<Module> readBitcode(LLVMContext &Context) const;<br>
- std::unique_ptr<Module> readAssembly(LLVMContext &Context) const;<br>
-};<br>
-<br>
-struct ValueMapping {<br>
- DenseMap<const Value *, unsigned> IDs;<br>
- std::vector<const Value *> Values;<br>
-<br>
- /// \brief Construct a value mapping for module.<br>
- ///<br>
- /// Creates mapping from every value in \c M to an ID. This mapping includes<br>
- /// un-referencable values.<br>
- ///<br>
- /// Every \a Value that gets serialized in some way should be represented<br>
- /// here. The order needs to be deterministic, but it's unnecessary to match<br>
- /// the value-ids in the bitcode writer.<br>
- ///<br>
- /// All constants that are referenced by other values are included in the<br>
- /// mapping, but others -- which wouldn't be serialized -- are not.<br>
- ValueMapping(const Module &M);<br>
-<br>
- /// \brief Map a value.<br>
- ///<br>
- /// Maps a value. If it's a constant, maps all of its operands first.<br>
- void map(const Value *V);<br>
- unsigned lookup(const Value *V) const { return IDs.lookup(V); }<br>
-};<br>
-<br>
-} // end namespace<br>
-<br>
-bool TempFile::init(const std::string &Ext) {<br>
- SmallVector<char, 64> Vector;<br>
- DEBUG(dbgs() << " - create-temp-file\n");<br>
- if (auto EC = sys::fs::createTemporaryFile("use-list-order", Ext, Vector)) {<br>
- (void)EC;<br>
- DEBUG(dbgs() << "error: " << EC.message() << "\n");<br>
- return true;<br>
- }<br>
- assert(!Vector.empty());<br>
-<br>
- Filename.assign(Vector.data(), Vector.data() + Vector.size());<br>
- Remover.setFile(Filename, !SaveTemps);<br>
- DEBUG(dbgs() << " - filename = " << Filename << "\n");<br>
- return false;<br>
-}<br>
-<br>
-bool TempFile::writeBitcode(const Module &M) const {<br>
- DEBUG(dbgs() << " - write bitcode\n");<br>
- std::string ErrorInfo;<br>
- raw_fd_ostream OS(Filename.c_str(), ErrorInfo, sys::fs::F_None);<br>
- if (!ErrorInfo.empty()) {<br>
- DEBUG(dbgs() << "error: " << ErrorInfo << "\n");<br>
- return true;<br>
- }<br>
-<br>
- WriteBitcodeToFile(&M, OS);<br>
- return false;<br>
-}<br>
-<br>
-bool TempFile::writeAssembly(const Module &M) const {<br>
- DEBUG(dbgs() << " - write assembly\n");<br>
- std::string ErrorInfo;<br>
- raw_fd_ostream OS(Filename.c_str(), ErrorInfo, sys::fs::F_Text);<br>
- if (!ErrorInfo.empty()) {<br>
- DEBUG(dbgs() << "error: " << ErrorInfo << "\n");<br>
- return true;<br>
- }<br>
-<br>
- OS << M;<br>
- return false;<br>
-}<br>
-<br>
-std::unique_ptr<Module> TempFile::readBitcode(LLVMContext &Context) const {<br>
- DEBUG(dbgs() << " - read bitcode\n");<br>
- ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOr =<br>
- MemoryBuffer::getFile(Filename);<br>
- if (!BufferOr) {<br>
- DEBUG(dbgs() << "error: " << BufferOr.getError().message() << "\n");<br>
- return nullptr;<br>
- }<br>
-<br>
- std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOr.get());<br>
- ErrorOr<Module *> ModuleOr = parseBitcodeFile(Buffer.get(), Context);<br>
- if (!ModuleOr) {<br>
- DEBUG(dbgs() << "error: " << ModuleOr.getError().message() << "\n");<br>
- return nullptr;<br>
- }<br>
- return std::unique_ptr<Module>(ModuleOr.get());<br>
-}<br>
-<br>
-std::unique_ptr<Module> TempFile::readAssembly(LLVMContext &Context) const {<br>
- DEBUG(dbgs() << " - read assembly\n");<br>
- SMDiagnostic Err;<br>
- std::unique_ptr<Module> M(ParseAssemblyFile(Filename, Err, Context));<br>
- if (!M.get())<br>
- DEBUG(dbgs() << "error: "; Err.print("verify-use-list-order", dbgs()));<br>
- return M;<br>
-}<br>
-<br>
-ValueMapping::ValueMapping(const Module &M) {<br>
- // Every value should be mapped, including things like void instructions and<br>
- // basic blocks that are kept out of the ValueEnumerator.<br>
- //<br>
- // The current mapping order makes it easier to debug the tables. It happens<br>
- // to be similar to the ID mapping when writing ValueEnumerator, but they<br>
- // aren't (and needn't be) in sync.<br>
-<br>
- // Globals.<br>
- for (const GlobalVariable &G : M.globals())<br>
- map(&G);<br>
- for (const GlobalAlias &A : M.aliases())<br>
- map(&A);<br>
- for (const Function &F : M)<br>
- map(&F);<br>
-<br>
- // Constants used by globals.<br>
- for (const GlobalVariable &G : M.globals())<br>
- if (G.hasInitializer())<br>
- map(G.getInitializer());<br>
- for (const GlobalAlias &A : M.aliases())<br>
- map(A.getAliasee());<br>
- for (const Function &F : M)<br>
- if (F.hasPrefixData())<br>
- map(F.getPrefixData());<br>
-<br>
- // Function bodies.<br>
- for (const Function &F : M) {<br>
- for (const Argument &A : F.args())<br>
- map(&A);<br>
- for (const BasicBlock &BB : F)<br>
- map(&BB);<br>
- for (const BasicBlock &BB : F)<br>
- for (const Instruction &I : BB)<br>
- map(&I);<br>
-<br>
- // Constants used by instructions.<br>
- for (const BasicBlock &BB : F)<br>
- for (const Instruction &I : BB)<br>
- for (const Value *Op : I.operands())<br>
- if ((isa<Constant>(Op) && !isa<GlobalValue>(*Op)) ||<br>
- isa<InlineAsm>(Op))<br>
- map(Op);<br>
- }<br>
-}<br>
-<br>
-void ValueMapping::map(const Value *V) {<br>
- if (IDs.lookup(V))<br>
- return;<br>
-<br>
- if (auto *C = dyn_cast<Constant>(V))<br>
- if (!isa<GlobalValue>(C))<br>
- for (const Value *Op : C->operands())<br>
- map(Op);<br>
-<br>
- Values.push_back(V);<br>
- IDs[V] = Values.size();<br>
-}<br>
-<br>
-#ifndef NDEBUG<br>
-static void dumpMapping(const ValueMapping &VM) {<br>
- dbgs() << "value-mapping (size = " << VM.Values.size() << "):\n";<br>
- for (unsigned I = 0, E = VM.Values.size(); I != E; ++I) {<br>
- dbgs() << " - id = " << I << ", value = ";<br>
- VM.Values[I]->dump();<br>
- }<br>
-}<br>
-<br>
-static void debugValue(const ValueMapping &M, unsigned I, StringRef Desc) {<br>
- const Value *V = M.Values[I];<br>
- dbgs() << " - " << Desc << " value = ";<br>
- V->dump();<br>
- for (const Use &U : V->uses()) {<br>
- dbgs() << " => use: op = " << U.getOperandNo()<br>
- << ", user-id = " << M.IDs.lookup(U.getUser()) << ", user = ";<br>
- U.getUser()->dump();<br>
- }<br>
-}<br>
-<br>
-static void debugUserMismatch(const ValueMapping &L, const ValueMapping &R,<br>
- unsigned I) {<br>
- dbgs() << " - fail: user mismatch: ID = " << I << "\n";<br>
- debugValue(L, I, "LHS");<br>
- debugValue(R, I, "RHS");<br>
-<br>
- dbgs() << "\nlhs-";<br>
- dumpMapping(L);<br>
- dbgs() << "\nrhs-";<br>
- dumpMapping(R);<br>
-}<br>
-<br>
-static void debugSizeMismatch(const ValueMapping &L, const ValueMapping &R) {<br>
- dbgs() << " - fail: map size: " << L.Values.size()<br>
- << " != " << R.Values.size() << "\n";<br>
- dbgs() << "\nlhs-";<br>
- dumpMapping(L);<br>
- dbgs() << "\nrhs-";<br>
- dumpMapping(R);<br>
-}<br>
-#endif<br>
-<br>
-static bool matches(const ValueMapping &LM, const ValueMapping &RM) {<br>
- DEBUG(dbgs() << "compare value maps\n");<br>
- if (LM.Values.size() != RM.Values.size()) {<br>
- DEBUG(debugSizeMismatch(LM, RM));<br>
- return false;<br>
- }<br>
-<br>
- // This mapping doesn't include dangling constant users, since those don't<br>
- // get serialized. However, checking if users are constant and calling<br>
- // isConstantUsed() on every one is very expensive. Instead, just check if<br>
- // the user is mapped.<br>
- auto skipUnmappedUsers =<br>
- [&](Value::const_use_iterator &U, Value::const_use_iterator E,<br>
- const ValueMapping &M) {<br>
- while (U != E && !M.lookup(U->getUser()))<br>
- ++U;<br>
- };<br>
-<br>
- // Iterate through all values, and check that both mappings have the same<br>
- // users.<br>
- for (unsigned I = 0, E = LM.Values.size(); I != E; ++I) {<br>
- const Value *L = LM.Values[I];<br>
- const Value *R = RM.Values[I];<br>
- auto LU = L->use_begin(), LE = L->use_end();<br>
- auto RU = R->use_begin(), RE = R->use_end();<br>
- skipUnmappedUsers(LU, LE, LM);<br>
- skipUnmappedUsers(RU, RE, RM);<br>
-<br>
- while (LU != LE) {<br>
- if (RU == RE) {<br>
- DEBUG(debugUserMismatch(LM, RM, I));<br>
- return false;<br>
- }<br>
- if (LM.lookup(LU->getUser()) != RM.lookup(RU->getUser())) {<br>
- DEBUG(debugUserMismatch(LM, RM, I));<br>
- return false;<br>
- }<br>
- if (LU->getOperandNo() != RU->getOperandNo()) {<br>
- DEBUG(debugUserMismatch(LM, RM, I));<br>
- return false;<br>
- }<br>
- skipUnmappedUsers(++LU, LE, LM);<br>
- skipUnmappedUsers(++RU, RE, RM);<br>
- }<br>
- if (RU != RE) {<br>
- DEBUG(debugUserMismatch(LM, RM, I));<br>
- return false;<br>
- }<br>
- }<br>
-<br>
- return true;<br>
-}<br>
-<br>
-static bool verifyBitcodeUseListOrder(const Module &M) {<br>
- DEBUG(dbgs() << "*** verify-use-list-order: bitcode ***\n");<br>
- TempFile F;<br>
- if (F.init("bc"))<br>
- return false;<br>
-<br>
- if (F.writeBitcode(M))<br>
- return false;<br>
-<br>
- LLVMContext Context;<br>
- std::unique_ptr<Module> OtherM = F.readBitcode(Context);<br>
- if (!OtherM)<br>
- return false;<br>
-<br>
- return matches(ValueMapping(M), ValueMapping(*OtherM));<br>
-}<br>
-<br>
-static bool verifyAssemblyUseListOrder(const Module &M) {<br>
- DEBUG(dbgs() << "*** verify-use-list-order: assembly ***\n");<br>
- TempFile F;<br>
- if (F.init("ll"))<br>
- return false;<br>
-<br>
- if (F.writeAssembly(M))<br>
- return false;<br>
-<br>
- LLVMContext Context;<br>
- std::unique_ptr<Module> OtherM = F.readAssembly(Context);<br>
- if (!OtherM)<br>
- return false;<br>
-<br>
- return matches(ValueMapping(M), ValueMapping(*OtherM));<br>
-}<br>
-<br>
-int main(int argc, char **argv) {<br>
- sys::PrintStackTraceOnErrorSignal();<br>
- llvm::PrettyStackTraceProgram X(argc, argv);<br>
-<br>
- // Enable debug stream buffering.<br>
- EnableDebugBuffering = true;<br>
-<br>
- llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.<br>
- LLVMContext &Context = getGlobalContext();<br>
-<br>
- cl::ParseCommandLineOptions(argc, argv,<br>
- "llvm tool to verify use-list order\n");<br>
-<br>
- SMDiagnostic Err;<br>
-<br>
- // Load the input module...<br>
- std::unique_ptr<Module> M;<br>
- M.reset(ParseIRFile(InputFilename, Err, Context));<br>
-<br>
- if (!M.get()) {<br>
- Err.print(argv[0], errs());<br>
- return 1;<br>
- }<br>
-<br>
- DEBUG(dbgs() << "*** verify-use-list-order ***\n");<br>
- if (!shouldPreserveBitcodeUseListOrder()) {<br>
- // Can't verify if order isn't preserved.<br>
- DEBUG(dbgs() << "warning: cannot verify bitcode; "<br>
- "try -preserve-bc-use-list-order\n");<br>
- return 0;<br>
- }<br>
-<br>
- for (unsigned I = 0, E = NumShuffles; I != E; ++I) {<br>
- DEBUG(dbgs() << "*** iteration: " << I << " ***\n");<br>
-<br>
- // Shuffle with a different seed each time so that use-lists that aren't<br>
- // modified the first time are likely to be modified the next time.<br>
- shuffleUseLists(*M, I);<br>
- if (!verifyBitcodeUseListOrder(*M))<br>
- report_fatal_error("bitcode use-list order changed");<br>
-<br>
- if (shouldPreserveAssemblyUseListOrder())<br>
- if (!verifyAssemblyUseListOrder(*M))<br>
- report_fatal_error("assembly use-list order changed");<br>
- }<br>
-<br>
- return 0;<br>
-}<br>
<br>
Copied: llvm/trunk/tools/verify-uselistorder/CMakeLists.txt (from r214317, llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt)<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/CMakeLists.txt?p2=llvm/trunk/tools/verify-uselistorder/CMakeLists.txt&p1=llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt&r1=214317&r2=214318&rev=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/CMakeLists.txt?p2=llvm/trunk/tools/verify-uselistorder/CMakeLists.txt&p1=llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt&r1=214317&r2=214318&rev=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/CMakeLists.txt (original)<br>
+++ llvm/trunk/tools/verify-uselistorder/CMakeLists.txt Wed Jul 30 12:11:27 2014<br>
@@ -7,6 +7,6 @@ set(LLVM_LINK_COMPONENTS<br>
Support<br>
)<br>
<br>
-add_llvm_tool(llvm-uselistorder<br>
- llvm-uselistorder.cpp<br>
+add_llvm_tool(verify-uselistorder<br>
+ verify-uselistorder.cpp<br>
)<br>
<br>
Copied: llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt (from r214317, llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt)<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt?p2=llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt&p1=llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt&r1=214317&r2=214318&rev=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt?p2=llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt&p1=llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt&r1=214317&r2=214318&rev=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/LLVMBuild.txt (original)<br>
+++ llvm/trunk/tools/verify-uselistorder/LLVMBuild.txt Wed Jul 30 12:11:27 2014<br>
@@ -1,4 +1,4 @@<br>
-;===- ./tools/llvm-uselistorder/LLVMBuild.txt ------------------*- Conf -*--===;<br>
+;===- ./tools/verify-uselistorder/LLVMBuild.txt ----------------*- Conf -*--===;<br>
;<br>
; The LLVM Compiler Infrastructure<br>
;<br>
@@ -17,6 +17,6 @@<br>
<br>
[component_0]<br>
type = Tool<br>
-name = llvm-uselistorder<br>
+name = verify-uselistorder<br>
parent = Tools<br>
required_libraries = IRReader BitWriter Support<br>
<br>
Copied: llvm/trunk/tools/verify-uselistorder/Makefile (from r214317, llvm/trunk/tools/llvm-uselistorder/Makefile)<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/Makefile?p2=llvm/trunk/tools/verify-uselistorder/Makefile&p1=llvm/trunk/tools/llvm-uselistorder/Makefile&r1=214317&r2=214318&rev=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/Makefile?p2=llvm/trunk/tools/verify-uselistorder/Makefile&p1=llvm/trunk/tools/llvm-uselistorder/Makefile&r1=214317&r2=214318&rev=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/Makefile (original)<br>
+++ llvm/trunk/tools/verify-uselistorder/Makefile Wed Jul 30 12:11:27 2014<br>
@@ -1,4 +1,4 @@<br>
-##===- tools/llvm-uselistorder/Makefile --------------------*- Makefile -*-===##<br>
+##===- tools/verify-uselistorder/Makefile ------------------*- Makefile -*-===##<br>
#<br>
# The LLVM Compiler Infrastructure<br>
#<br>
@@ -8,7 +8,7 @@<br>
##===----------------------------------------------------------------------===##<br>
<br>
LEVEL := ../..<br>
-TOOLNAME := llvm-uselistorder<br>
+TOOLNAME := verify-uselistorder<br>
LINK_COMPONENTS := AsmParser BitReader BitWriter Core IRReader Support<br>
<br>
# This tool has no plugins, optimize startup time.<br>
<br>
Copied: llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp (from r214317, llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp)<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp?p2=llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp&p1=llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp&r1=214317&r2=214318&rev=214318&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp?p2=llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp&p1=llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp&r1=214317&r2=214318&rev=214318&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-uselistorder/llvm-uselistorder.cpp (original)<br>
+++ llvm/trunk/tools/verify-uselistorder/verify-uselistorder.cpp Wed Jul 30 12:11:27 2014<br>
@@ -1,4 +1,4 @@<br>
-//===- llvm-uselistorder.cpp - The LLVM Modular Optimizer -----------------===//<br>
+//===- verify-uselistorder.cpp - The LLVM Modular Optimizer ---------------===//<br>
//<br>
// The LLVM Compiler Infrastructure<br>
//<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>