From 473741930e13c4834fc6a243d6e60a9bf302c343 Mon Sep 17 00:00:00 2001
From: John Criswell <criswell@uiuc.edu>
Date: Mon, 15 Sep 2003 20:21:38 +0000
Subject: [PATCH] Removing Makefiles.  Regression tests are now run by QMTest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8548 91177308-0d34-0410-b5e6-96231b3b80d8
---
 test/Analysis/BasicAA/Makefile                | 10 -------
 test/Analysis/DSGraph/Makefile                | 14 ---------
 test/Analysis/Dominators/Makefile             | 10 -------
 test/Analysis/LoopInfo/Makefile               | 10 -------
 test/Analysis/Makefile                        |  7 -----
 test/Assembler/Makefile                       | 23 --------------
 test/BugPoint/Makefile                        | 19 ------------
 test/C++Frontend/EH/Makefile                  | 12 --------
 test/C++Frontend/Makefile                     | 20 -------------
 test/CBackend/Makefile                        | 27 -----------------
 test/CFrontend/Makefile                       | 20 -------------
 test/Jello/Makefile                           | 29 ------------------
 test/LLC/Makefile                             | 22 --------------
 test/Linker/Makefile                          |  9 ------
 test/Other/Makefile                           | 10 -------
 test/TableGen/Makefile                        | 10 -------
 test/Transforms/ADCE/Makefile                 | 10 -------
 test/Transforms/BasicAA/Makefile              | 10 -------
 test/Transforms/ConstProp/Makefile            | 10 -------
 test/Transforms/ConstantMerge/Makefile        | 10 -------
 test/Transforms/CorrelatedExprs/Makefile      | 10 -------
 test/Transforms/DSAnalysis/Makefile           | 30 -------------------
 test/Transforms/DeadArgElim/Makefile          | 10 -------
 .../Transforms/DecomposeMultiDimRefs/Makefile | 19 ------------
 test/Transforms/FunctionResolve/Makefile      | 10 -------
 test/Transforms/GCSE/Makefile                 | 10 -------
 test/Transforms/GlobalDCE/Makefile            | 10 -------
 test/Transforms/IndVarsSimplify/Makefile      | 10 -------
 test/Transforms/Inline/Makefile               | 10 -------
 test/Transforms/InstCombine/Makefile          | 10 -------
 test/Transforms/LICM/Makefile                 | 10 -------
 test/Transforms/LevelRaise/Makefile           | 10 -------
 test/Transforms/LoopPreheaders/Makefile       | 10 -------
 test/Transforms/LowerSetJmp/Makefile          | 10 -------
 test/Transforms/LowerSwitch/Makefile          | 10 -------
 test/Transforms/Makefile                      | 28 -----------------
 test/Transforms/Mem2Reg/Makefile              | 10 -------
 test/Transforms/PRE/Makefile                  | 10 -------
 test/Transforms/PiNodeInserter/Makefile       | 10 -------
 test/Transforms/ProfilePaths/Makefile         | 10 -------
 test/Transforms/PruneEH/Makefile              | 10 -------
 test/Transforms/Reassociate/Makefile          | 10 -------
 test/Transforms/SCCP/Makefile                 | 10 -------
 test/Transforms/ScalarRepl/Makefile           | 10 -------
 test/Transforms/SimplifyCFG/Makefile          | 10 -------
 test/Transforms/TailDup/Makefile              | 10 -------
 test/Verifier/Makefile                        | 19 ------------
 47 files changed, 618 deletions(-)
 delete mode 100644 test/Analysis/BasicAA/Makefile
 delete mode 100644 test/Analysis/DSGraph/Makefile
 delete mode 100644 test/Analysis/Dominators/Makefile
 delete mode 100644 test/Analysis/LoopInfo/Makefile
 delete mode 100644 test/Analysis/Makefile
 delete mode 100644 test/Assembler/Makefile
 delete mode 100644 test/BugPoint/Makefile
 delete mode 100644 test/C++Frontend/EH/Makefile
 delete mode 100644 test/C++Frontend/Makefile
 delete mode 100644 test/CBackend/Makefile
 delete mode 100644 test/CFrontend/Makefile
 delete mode 100644 test/Jello/Makefile
 delete mode 100644 test/LLC/Makefile
 delete mode 100644 test/Linker/Makefile
 delete mode 100644 test/Other/Makefile
 delete mode 100644 test/TableGen/Makefile
 delete mode 100644 test/Transforms/ADCE/Makefile
 delete mode 100644 test/Transforms/BasicAA/Makefile
 delete mode 100644 test/Transforms/ConstProp/Makefile
 delete mode 100644 test/Transforms/ConstantMerge/Makefile
 delete mode 100644 test/Transforms/CorrelatedExprs/Makefile
 delete mode 100644 test/Transforms/DSAnalysis/Makefile
 delete mode 100644 test/Transforms/DeadArgElim/Makefile
 delete mode 100644 test/Transforms/DecomposeMultiDimRefs/Makefile
 delete mode 100644 test/Transforms/FunctionResolve/Makefile
 delete mode 100644 test/Transforms/GCSE/Makefile
 delete mode 100644 test/Transforms/GlobalDCE/Makefile
 delete mode 100644 test/Transforms/IndVarsSimplify/Makefile
 delete mode 100644 test/Transforms/Inline/Makefile
 delete mode 100644 test/Transforms/InstCombine/Makefile
 delete mode 100644 test/Transforms/LICM/Makefile
 delete mode 100644 test/Transforms/LevelRaise/Makefile
 delete mode 100644 test/Transforms/LoopPreheaders/Makefile
 delete mode 100644 test/Transforms/LowerSetJmp/Makefile
 delete mode 100644 test/Transforms/LowerSwitch/Makefile
 delete mode 100644 test/Transforms/Makefile
 delete mode 100644 test/Transforms/Mem2Reg/Makefile
 delete mode 100644 test/Transforms/PRE/Makefile
 delete mode 100644 test/Transforms/PiNodeInserter/Makefile
 delete mode 100644 test/Transforms/ProfilePaths/Makefile
 delete mode 100644 test/Transforms/PruneEH/Makefile
 delete mode 100644 test/Transforms/Reassociate/Makefile
 delete mode 100644 test/Transforms/SCCP/Makefile
 delete mode 100644 test/Transforms/ScalarRepl/Makefile
 delete mode 100644 test/Transforms/SimplifyCFG/Makefile
 delete mode 100644 test/Transforms/TailDup/Makefile
 delete mode 100644 test/Verifier/Makefile

diff --git a/test/Analysis/BasicAA/Makefile b/test/Analysis/BasicAA/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Analysis/BasicAA/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Analysis/DSGraph/Makefile b/test/Analysis/DSGraph/Makefile
deleted file mode 100644
index bc24e5c1c07..00000000000
--- a/test/Analysis/DSGraph/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-$(addprefix Output/, $(TESTS:%.ll=%.ll.out)):
-Output/%.ll.out: %.ll Output/.dir $(LOPT) $(LANALYZE)
-	-$(TESTRUNR) $<
-
-clean::
-	-rm -f *.dot *.ps
diff --git a/test/Analysis/Dominators/Makefile b/test/Analysis/Dominators/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Analysis/Dominators/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Analysis/LoopInfo/Makefile b/test/Analysis/LoopInfo/Makefile
deleted file mode 100644
index 7ef328b3f6b..00000000000
--- a/test/Analysis/LoopInfo/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LANALYZE)
-	-$(TESTRUNR) $<
diff --git a/test/Analysis/Makefile b/test/Analysis/Makefile
deleted file mode 100644
index ad2c49e0edb..00000000000
--- a/test/Analysis/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-#                   test/Regression/Analysis/Makefile
-
-LEVEL = ../../..
-DIRS  = Dominators \
-	DSGraph \
-        LoopInfo
-include $(LEVEL)/Makefile.common
diff --git a/test/Assembler/Makefile b/test/Assembler/Makefile
deleted file mode 100644
index f931c40d844..00000000000
--- a/test/Assembler/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-#                    test/Regression/Assembler/Makefile
-#
-# This directory contains regression tests for the LLVM assembler program.  
-# These LLVM source file tests are just required to assembler properly to pass.
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-FTESTS := $(wildcard *.llx)   # Freeform tests
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.tbc))
-
-Output/%.tbc: %.ll $(LAS) Output/.dir
-	@echo "======== Assembling $<"
-	$(LAS) -d -f $< -o $@ > /dev/null 2>&1 || \
-                 ( rm -f $@; $(FAILURE) $@ )
-
-all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
-
-Output/%.llx.out: %.llx Output/.dir $(LAS)
-	-$(TESTRUNR) $<
-
diff --git a/test/BugPoint/Makefile b/test/BugPoint/Makefile
deleted file mode 100644
index aea9a65b5c4..00000000000
--- a/test/BugPoint/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-#                    test/Regression/Assembler/Makefile
-#
-# This directory contains regression tests for the LLVM assembler program.  
-# These LLVM source file tests are just required to assembler properly to pass.
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LAS) $(LBUGPOINT)
-	-$(TESTRUNR) $<
-	-@# Remove temporary files generated...
-	-@rm -f bugpoint-*
-
-clean::
-	rm -f *.bc
diff --git a/test/C++Frontend/EH/Makefile b/test/C++Frontend/EH/Makefile
deleted file mode 100644
index 037530888d9..00000000000
--- a/test/C++Frontend/EH/Makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-#                   test/Regression/C++Frontend/EH/Makefile
-#
-# This directory contains exception handling regression tests for the GCC C++ 
-# front-end for LLVM.  These tests are C++ source files that are input to GCC 
-# and compiled to .ll files. After that, the files are assembled and executed
-# by the LLVM backends.
-#
-LEVEL = ../../../..
-include $(LEVEL)/test/Programs/SingleSource/Makefile.singlesrc
-
-## These should eventually be automatic!
-LIBS := -lexception -lsupc++
\ No newline at end of file
diff --git a/test/C++Frontend/Makefile b/test/C++Frontend/Makefile
deleted file mode 100644
index 3b1ac98b0f4..00000000000
--- a/test/C++Frontend/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-#             test/Regression/C++Frontend/CompileFail/Makefile
-#
-# This directory contains regression tests for the GCC C++ frontend for LLVM.  
-# These tests are C++ source files that are input to GCC and compiled to .ll
-# files. After that, the files are assembled by the LLVM 'as' program to make
-# sure GCC emitted something valid.  This is intended to catch crashers and bad
-# output by GCC.  Miscompilations by GCC should be caught by the 
-# test/Programs/SingleSource/UnitTests test suite
-#
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.cpp)
-TR_TESTS := $(wildcard *.cpp.tr)
-
-all:: $(addprefix Output/, $(TESTS:%.cpp=%.tbc))
-all:: $(addprefix Output/, $(TR_TESTS:%=%.out))
-
-Output/%.cpp.tr.out: %.cpp.tr Output/.dir $(LCC1XX)
-	-$(TESTRUNR) $<
diff --git a/test/CBackend/Makefile b/test/CBackend/Makefile
deleted file mode 100644
index 5dc7ffe2392..00000000000
--- a/test/CBackend/Makefile
+++ /dev/null
@@ -1,27 +0,0 @@
-#                    test/Regression/CBackend/Makefile
-#
-# This directory contains regression tests for the C backend for LLVM.  
-# These testcases are assembled with the LLVM assembler, then disassembled into
-# C code.  The C code should be compilable with the standard C compiler.
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-.PRECIOUS: Output/%.c
-
-TESTS := $(wildcard *.ll)
-FTESTS := $(wildcard *.llx)   # Freeform tests
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
-
-Output/%.to: Output/%.c
-	$(CC) -c -Werror $< -o $@ || \
-		(rm -f $@; $(FAILURE) $@ )
-
-Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
-	$(LAS) < $< | $(LDIS) -c > $@ || \
-		(rm -f $@; $(FAILURE) $@ )
-
-Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
-	-$(TESTRUNR) $<
-
diff --git a/test/CFrontend/Makefile b/test/CFrontend/Makefile
deleted file mode 100644
index b1017e2f179..00000000000
--- a/test/CFrontend/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-#                       test/Regression/CFrontend/Makefile
-#
-# This directory contains regression tests for the GCC C frontend for LLVM.  
-# These tests are C source files that are input to GCC and compiled to .ll
-# files. After that, the files are assembled by the LLVM 'as' program to make
-# sure GCC emitted something valid.  This is intended to catch crashers and bad
-# output by GCC.  Miscompilations by GCC should be caught by the 
-# test/Programs/SingleSource/UnitTests test suite
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.c)
-TR_TESTS := $(wildcard *.c.tr)
-
-all:: $(addprefix Output/, $(TESTS:%.c=%.tbc))
-all:: $(addprefix Output/, $(TR_TESTS:%=%.out))
-
-Output/%.c.tr.out: %.c.tr Output/.dir $(LCC1)
-	-$(TESTRUNR) $<
diff --git a/test/Jello/Makefile b/test/Jello/Makefile
deleted file mode 100644
index 408f80af3c1..00000000000
--- a/test/Jello/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-#                    test/Regression/Jello/Makefile
-#
-# This directory contains regression tests for the LLVM x86 JIT  
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-FTESTS := $(wildcard *.llx)   # Freeform tests
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
-
-LLI_FLAGS = -force-interpreter=false
-
-ifdef DISABLE_FP_ELIM
-LLI_FLAGS += -disable-fp-elim
-endif
-
-Output/%.out: Output/%.bc $(LLI)
-	@echo "======== Running $< ==================="
-	$(VERB) $(LLI) $(LLI_FLAGS) -stats $< > $@ 2>&1 || \
-                 ( cat $@; rm -f $@; $(FAILURE) $@ )
-
-
-all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
-
-Output/%.llx.out: %.llx Output/.dir $(LJELLO)
-	-$(TESTRUNR) $<
-
diff --git a/test/LLC/Makefile b/test/LLC/Makefile
deleted file mode 100644
index 3c07cd08839..00000000000
--- a/test/LLC/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-#                    test/Regression/LLC/Makefile
-#
-# This directory contains regression tests for the LLVM sparc backend.  
-#
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-# Only .ll tests here.  C tests are run via Makefile.singlesrc above.
-# 
-LL_TESTS := $(wildcard *.ll)
-LLX_TESTS := $(wildcard *.llx)
-
-all:: $(addprefix Output/, $(LL_TESTS:%.ll=%.ts)) 
-all:: $(addprefix Output/, $(LLX_TESTS:%.llx=%.llx.out))
-
-Output/%.ts: Output/%.bc $(LLC) Output/.dir
-	@echo "======== Compiling $< =========="
-	$(LLC) -f $< -o $@ || \
-                 ( rm -f $@; $(FAILURE) $@ )
-
-Output/%.llx.out: %.llx Output/.dir $(LLC)
-	-$(TESTRUNR) $<
diff --git a/test/Linker/Makefile b/test/Linker/Makefile
deleted file mode 100644
index c18a877beed..00000000000
--- a/test/Linker/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LLINK)
-	-$(TESTRUNR) $<
diff --git a/test/Other/Makefile b/test/Other/Makefile
deleted file mode 100644
index e1a8697cc10..00000000000
--- a/test/Other/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LANALYZE)
-	-$(TESTRUNR) $<
diff --git a/test/TableGen/Makefile b/test/TableGen/Makefile
deleted file mode 100644
index c254d809bf8..00000000000
--- a/test/TableGen/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.td)
-
-all:: $(addprefix Output/, $(TESTS:%=%.out))
-
-Output/%.out: % Output/.dir $(TBLGEN)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/ADCE/Makefile b/test/Transforms/ADCE/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/ADCE/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/BasicAA/Makefile b/test/Transforms/BasicAA/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/BasicAA/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/ConstProp/Makefile b/test/Transforms/ConstProp/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/ConstProp/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/ConstantMerge/Makefile b/test/Transforms/ConstantMerge/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/ConstantMerge/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/CorrelatedExprs/Makefile b/test/Transforms/CorrelatedExprs/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/CorrelatedExprs/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/DSAnalysis/Makefile b/test/Transforms/DSAnalysis/Makefile
deleted file mode 100644
index f5c8fad92d1..00000000000
--- a/test/Transforms/DSAnalysis/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-#                    test/Regression/Transforms/DSAnalysis/Makefile
-#
-# This directory contains test cases for the llvm data structure analysis 
-# library.  These are meant to test all of the nooks and cranies of the 
-# algorithm, although we really have no way to verify that the answers produced
-# are correct.
-#
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-## Get absolute pathname for analyze
-LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
-
-TESTS := $(wildcard *.ll)
-FTESTS := $(wildcard *.llx)   # Freeform tests
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
-
-Output/%.out: %.ll $(LANALYZE) Output/.dir
-	(cd Output/; $(LANALYZE_ABS) -tddatastructure ../$< || \
-                 ( rm -f ../$@; ../$(FAILURE) ../$@ ))
-
-all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
-
-clean::
-	rm -f *.ps *.dot
-
-Output/%.llx.out: %.llx Output/.dir $(LAS)
-	-$(TESTRUNR) $<
-
diff --git a/test/Transforms/DeadArgElim/Makefile b/test/Transforms/DeadArgElim/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/DeadArgElim/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/DecomposeMultiDimRefs/Makefile b/test/Transforms/DecomposeMultiDimRefs/Makefile
deleted file mode 100644
index fdbf3faf200..00000000000
--- a/test/Transforms/DecomposeMultiDimRefs/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-#            test/Regression/Transforms/DecomposeArrayRefs/Makefile
-#
-# This directory contains regression tests for the DecomposeArrayRefs pass.
-# Since the main tests are single C source files, we'll use the same
-# Makefile as test/Programs/SingleSource.
-# The *.ll tests are mainly useful to run manually.
-#
-LEVEL = ../../../..
-include $(LEVEL)/test/Programs/SingleSource/Makefile.singlesrc
-
-LLTESTS := $(wildcard *.ll)
-CTESTS  := $(wildcard *.c) 
-TESTS   := $(LLTESTS) $(CTESTS)
-
-all:: $(addprefix Output/, $(LLTESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
-
diff --git a/test/Transforms/FunctionResolve/Makefile b/test/Transforms/FunctionResolve/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/FunctionResolve/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/GCSE/Makefile b/test/Transforms/GCSE/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/GCSE/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/GlobalDCE/Makefile b/test/Transforms/GlobalDCE/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/GlobalDCE/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/IndVarsSimplify/Makefile b/test/Transforms/IndVarsSimplify/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/IndVarsSimplify/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/Inline/Makefile b/test/Transforms/Inline/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/Inline/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/InstCombine/Makefile b/test/Transforms/InstCombine/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/InstCombine/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/LICM/Makefile b/test/Transforms/LICM/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/LICM/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/LevelRaise/Makefile b/test/Transforms/LevelRaise/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/LevelRaise/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/LoopPreheaders/Makefile b/test/Transforms/LoopPreheaders/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/LoopPreheaders/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/LowerSetJmp/Makefile b/test/Transforms/LowerSetJmp/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/LowerSetJmp/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/LowerSwitch/Makefile b/test/Transforms/LowerSwitch/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/LowerSwitch/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/Makefile b/test/Transforms/Makefile
deleted file mode 100644
index 7ad75f53664..00000000000
--- a/test/Transforms/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-LEVEL = ../../..
-DIRS  = ADCE \
-	ConstProp \
-	ConstantMerge \
-	CorrelatedExprs \
-	DecomposeMultiDimRefs \
-	FunctionResolve \
-	GCSE \
-	GlobalDCE \
-	IndVarsSimplify \
-	Inline \
-	InstCombine \
-	LevelRaise \
-	LICM \
-	LoopPreheaders \
-	LowerSwitch \
-	Mem2Reg \
-	PiNodeInserter \
-	PRE \
-	PruneEH \
-	ProfilePaths \
-	Reassociate \
-	SCCP \
-	ScalarRepl \
-	SimplifyCFG \
-	TailDup
-
-include $(LEVEL)/Makefile.common
diff --git a/test/Transforms/Mem2Reg/Makefile b/test/Transforms/Mem2Reg/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/Mem2Reg/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/PRE/Makefile b/test/Transforms/PRE/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/PRE/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/PiNodeInserter/Makefile b/test/Transforms/PiNodeInserter/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/PiNodeInserter/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/ProfilePaths/Makefile b/test/Transforms/ProfilePaths/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/ProfilePaths/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/PruneEH/Makefile b/test/Transforms/PruneEH/Makefile
deleted file mode 100644
index e92df45e64d..00000000000
--- a/test/Transforms/PruneEH/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.llx)
-
-all:: $(addprefix Output/, $(TESTS:%.llx=%.llx.out))
-
-Output/%.llx.out: %.llx Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/Reassociate/Makefile b/test/Transforms/Reassociate/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/Reassociate/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/SCCP/Makefile b/test/Transforms/SCCP/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/SCCP/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/ScalarRepl/Makefile b/test/Transforms/ScalarRepl/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/ScalarRepl/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/SimplifyCFG/Makefile b/test/Transforms/SimplifyCFG/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/SimplifyCFG/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Transforms/TailDup/Makefile b/test/Transforms/TailDup/Makefile
deleted file mode 100644
index 91acd4d481b..00000000000
--- a/test/Transforms/TailDup/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-LEVEL = ../../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
-
-Output/%.ll.out: %.ll Output/.dir $(LOPT)
-	-$(TESTRUNR) $<
diff --git a/test/Verifier/Makefile b/test/Verifier/Makefile
deleted file mode 100644
index 2812a7e5496..00000000000
--- a/test/Verifier/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-#                    test/Regression/Verifier/Makefile
-#
-# This directory contains regression tests for the LLVM verifier pass. Basically
-# all of these LLVM source files are invalid programs that should be marked as
-# such by the verifier
-
-LEVEL = ../../..
-include $(LEVEL)/test/Makefile.tests
-
-TESTS := $(wildcard *.ll)
-
-all:: $(addprefix Output/, $(TESTS:%.ll=%.ntbc))
-
-Output/%.ntbc: %.ll $(LAS) Output/.dir
-	@echo "======== Verifying $< ==========="
-	if $(LAS) -f $< -o /dev/null; \
-	then $(FAILURE) $@; exit 1; \
-	else touch $@; exit 0;\
-	fi