summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Transforms
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-10-11 17:22:16 +0000
committerdim <dim@FreeBSD.org>2010-10-11 17:22:16 +0000
commit1fc65a65fe54635d0e564559ba5a7b8a8a42d4d6 (patch)
treede75a464c5dac7eceb2dbbad8b4d4e1479d79e08 /contrib/llvm/lib/Transforms
parentf4f7191cd223adebacee3fad260ed60935be9cb9 (diff)
downloadFreeBSD-src-1fc65a65fe54635d0e564559ba5a7b8a8a42d4d6.zip
FreeBSD-src-1fc65a65fe54635d0e564559ba5a7b8a8a42d4d6.tar.gz
Remove more unneeded files and directories from contrib/llvm. This
still allows us to build tblgen and clang, and further reduces the footprint in the tree. Approved by: rpaulo (mentor)
Diffstat (limited to 'contrib/llvm/lib/Transforms')
-rw-r--r--contrib/llvm/lib/Transforms/Hello/CMakeLists.txt3
-rw-r--r--contrib/llvm/lib/Transforms/Hello/Hello.cpp65
-rw-r--r--contrib/llvm/lib/Transforms/Hello/Hello.exports0
-rw-r--r--contrib/llvm/lib/Transforms/Hello/Makefile24
-rw-r--r--contrib/llvm/lib/Transforms/IPO/CMakeLists.txt27
-rw-r--r--contrib/llvm/lib/Transforms/IPO/Makefile15
-rw-r--r--contrib/llvm/lib/Transforms/InstCombine/CMakeLists.txt17
-rw-r--r--contrib/llvm/lib/Transforms/InstCombine/Makefile15
-rw-r--r--contrib/llvm/lib/Transforms/Instrumentation/CMakeLists.txt5
-rw-r--r--contrib/llvm/lib/Transforms/Instrumentation/Makefile15
-rw-r--r--contrib/llvm/lib/Transforms/Makefile20
-rw-r--r--contrib/llvm/lib/Transforms/Scalar/CMakeLists.txt35
-rw-r--r--contrib/llvm/lib/Transforms/Scalar/Makefile15
-rw-r--r--contrib/llvm/lib/Transforms/Utils/CMakeLists.txt28
-rw-r--r--contrib/llvm/lib/Transforms/Utils/Makefile15
15 files changed, 0 insertions, 299 deletions
diff --git a/contrib/llvm/lib/Transforms/Hello/CMakeLists.txt b/contrib/llvm/lib/Transforms/Hello/CMakeLists.txt
deleted file mode 100644
index 917b745..0000000
--- a/contrib/llvm/lib/Transforms/Hello/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-add_llvm_loadable_module( LLVMHello
- Hello.cpp
- )
diff --git a/contrib/llvm/lib/Transforms/Hello/Hello.cpp b/contrib/llvm/lib/Transforms/Hello/Hello.cpp
deleted file mode 100644
index 838d550..0000000
--- a/contrib/llvm/lib/Transforms/Hello/Hello.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-//===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file implements two versions of the LLVM "Hello World" pass described
-// in docs/WritingAnLLVMPass.html
-//
-//===----------------------------------------------------------------------===//
-
-#define DEBUG_TYPE "hello"
-#include "llvm/Pass.h"
-#include "llvm/Function.h"
-#include "llvm/Support/raw_ostream.h"
-#include "llvm/ADT/Statistic.h"
-using namespace llvm;
-
-STATISTIC(HelloCounter, "Counts number of functions greeted");
-
-namespace {
- // Hello - The first implementation, without getAnalysisUsage.
- struct Hello : public FunctionPass {
- static char ID; // Pass identification, replacement for typeid
- Hello() : FunctionPass(ID) {}
-
- virtual bool runOnFunction(Function &F) {
- ++HelloCounter;
- errs() << "Hello: ";
- errs().write_escaped(F.getName()) << '\n';
- return false;
- }
- };
-}
-
-char Hello::ID = 0;
-INITIALIZE_PASS(Hello, "hello", "Hello World Pass", false, false);
-
-namespace {
- // Hello2 - The second implementation with getAnalysisUsage implemented.
- struct Hello2 : public FunctionPass {
- static char ID; // Pass identification, replacement for typeid
- Hello2() : FunctionPass(ID) {}
-
- virtual bool runOnFunction(Function &F) {
- ++HelloCounter;
- errs() << "Hello: ";
- errs().write_escaped(F.getName()) << '\n';
- return false;
- }
-
- // We don't modify the program, so we preserve all analyses
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- }
- };
-}
-
-char Hello2::ID = 0;
-INITIALIZE_PASS(Hello2, "hello2",
- "Hello World Pass (with getAnalysisUsage implemented)",
- false, false);
diff --git a/contrib/llvm/lib/Transforms/Hello/Hello.exports b/contrib/llvm/lib/Transforms/Hello/Hello.exports
deleted file mode 100644
index e69de29..0000000
--- a/contrib/llvm/lib/Transforms/Hello/Hello.exports
+++ /dev/null
diff --git a/contrib/llvm/lib/Transforms/Hello/Makefile b/contrib/llvm/lib/Transforms/Hello/Makefile
deleted file mode 100644
index f1e3148..0000000
--- a/contrib/llvm/lib/Transforms/Hello/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-##===- lib/Transforms/Hello/Makefile -----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMHello
-LOADABLE_MODULE = 1
-USEDLIBS =
-
-# If we don't need RTTI or EH, there's no reason to export anything
-# from the hello plugin.
-ifneq ($(REQUIRES_RTTI), 1)
-ifneq ($(REQUIRES_EH), 1)
-EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/Hello.exports
-endif
-endif
-
-include $(LEVEL)/Makefile.common
-
diff --git a/contrib/llvm/lib/Transforms/IPO/CMakeLists.txt b/contrib/llvm/lib/Transforms/IPO/CMakeLists.txt
deleted file mode 100644
index 65483e8..0000000
--- a/contrib/llvm/lib/Transforms/IPO/CMakeLists.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-add_llvm_library(LLVMipo
- ArgumentPromotion.cpp
- ConstantMerge.cpp
- DeadArgumentElimination.cpp
- DeadTypeElimination.cpp
- ExtractGV.cpp
- FunctionAttrs.cpp
- GlobalDCE.cpp
- GlobalOpt.cpp
- IPConstantPropagation.cpp
- IPO.cpp
- InlineAlways.cpp
- InlineSimple.cpp
- Inliner.cpp
- Internalize.cpp
- LoopExtractor.cpp
- LowerSetJmp.cpp
- MergeFunctions.cpp
- PartialInlining.cpp
- PartialSpecialization.cpp
- PruneEH.cpp
- StripDeadPrototypes.cpp
- StripSymbols.cpp
- StructRetPromotion.cpp
- )
-
-target_link_libraries (LLVMipo LLVMScalarOpts LLVMInstCombine)
diff --git a/contrib/llvm/lib/Transforms/IPO/Makefile b/contrib/llvm/lib/Transforms/IPO/Makefile
deleted file mode 100644
index 5c42374..0000000
--- a/contrib/llvm/lib/Transforms/IPO/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-##===- lib/Transforms/IPO/Makefile -------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMipo
-BUILD_ARCHIVE = 1
-
-include $(LEVEL)/Makefile.common
-
diff --git a/contrib/llvm/lib/Transforms/InstCombine/CMakeLists.txt b/contrib/llvm/lib/Transforms/InstCombine/CMakeLists.txt
deleted file mode 100644
index 5b1ff3e..0000000
--- a/contrib/llvm/lib/Transforms/InstCombine/CMakeLists.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-add_llvm_library(LLVMInstCombine
- InstructionCombining.cpp
- InstCombineAddSub.cpp
- InstCombineAndOrXor.cpp
- InstCombineCalls.cpp
- InstCombineCasts.cpp
- InstCombineCompares.cpp
- InstCombineLoadStoreAlloca.cpp
- InstCombineMulDivRem.cpp
- InstCombinePHI.cpp
- InstCombineSelect.cpp
- InstCombineShifts.cpp
- InstCombineSimplifyDemanded.cpp
- InstCombineVectorOps.cpp
- )
-
-target_link_libraries (LLVMInstCombine LLVMTransformUtils)
diff --git a/contrib/llvm/lib/Transforms/InstCombine/Makefile b/contrib/llvm/lib/Transforms/InstCombine/Makefile
deleted file mode 100644
index 0c488e78..0000000
--- a/contrib/llvm/lib/Transforms/InstCombine/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-##===- lib/Transforms/InstCombine/Makefile -----------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMInstCombine
-BUILD_ARCHIVE = 1
-
-include $(LEVEL)/Makefile.common
-
diff --git a/contrib/llvm/lib/Transforms/Instrumentation/CMakeLists.txt b/contrib/llvm/lib/Transforms/Instrumentation/CMakeLists.txt
deleted file mode 100644
index 128bf48..0000000
--- a/contrib/llvm/lib/Transforms/Instrumentation/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-add_llvm_library(LLVMInstrumentation
- EdgeProfiling.cpp
- OptimalEdgeProfiling.cpp
- ProfilingUtils.cpp
- )
diff --git a/contrib/llvm/lib/Transforms/Instrumentation/Makefile b/contrib/llvm/lib/Transforms/Instrumentation/Makefile
deleted file mode 100644
index 6cbc7a9..0000000
--- a/contrib/llvm/lib/Transforms/Instrumentation/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-##===- lib/Transforms/Instrumentation/Makefile -------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMInstrumentation
-BUILD_ARCHIVE = 1
-
-include $(LEVEL)/Makefile.common
-
diff --git a/contrib/llvm/lib/Transforms/Makefile b/contrib/llvm/lib/Transforms/Makefile
deleted file mode 100644
index e527be2..0000000
--- a/contrib/llvm/lib/Transforms/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-##===- lib/Transforms/Makefile -----------------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../..
-PARALLEL_DIRS = Utils Instrumentation Scalar InstCombine IPO Hello
-
-include $(LEVEL)/Makefile.config
-
-# No support for plugins on windows targets
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW Minix))
- PARALLEL_DIRS := $(filter-out Hello, $(PARALLEL_DIRS))
-endif
-
-include $(LEVEL)/Makefile.common
diff --git a/contrib/llvm/lib/Transforms/Scalar/CMakeLists.txt b/contrib/llvm/lib/Transforms/Scalar/CMakeLists.txt
deleted file mode 100644
index b7598ea..0000000
--- a/contrib/llvm/lib/Transforms/Scalar/CMakeLists.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-add_llvm_library(LLVMScalarOpts
- ADCE.cpp
- BasicBlockPlacement.cpp
- CodeGenPrepare.cpp
- ConstantProp.cpp
- CorrelatedValuePropagation.cpp
- DCE.cpp
- DeadStoreElimination.cpp
- GEPSplitter.cpp
- GVN.cpp
- IndVarSimplify.cpp
- JumpThreading.cpp
- LICM.cpp
- LoopDeletion.cpp
- LoopIndexSplit.cpp
- LoopRotation.cpp
- LoopStrengthReduce.cpp
- LoopUnrollPass.cpp
- LoopUnswitch.cpp
- LowerAtomic.cpp
- MemCpyOptimizer.cpp
- Reassociate.cpp
- Reg2Mem.cpp
- SCCP.cpp
- Scalar.cpp
- ScalarReplAggregates.cpp
- SimplifyCFGPass.cpp
- SimplifyHalfPowrLibCalls.cpp
- SimplifyLibCalls.cpp
- Sink.cpp
- TailDuplication.cpp
- TailRecursionElimination.cpp
- )
-
-target_link_libraries (LLVMScalarOpts LLVMTransformUtils)
diff --git a/contrib/llvm/lib/Transforms/Scalar/Makefile b/contrib/llvm/lib/Transforms/Scalar/Makefile
deleted file mode 100644
index cc42fd0..0000000
--- a/contrib/llvm/lib/Transforms/Scalar/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-##===- lib/Transforms/Scalar/Makefile ----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMScalarOpts
-BUILD_ARCHIVE = 1
-
-include $(LEVEL)/Makefile.common
-
diff --git a/contrib/llvm/lib/Transforms/Utils/CMakeLists.txt b/contrib/llvm/lib/Transforms/Utils/CMakeLists.txt
deleted file mode 100644
index 61cbeb2..0000000
--- a/contrib/llvm/lib/Transforms/Utils/CMakeLists.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-add_llvm_library(LLVMTransformUtils
- AddrModeMatcher.cpp
- BasicBlockUtils.cpp
- BasicInliner.cpp
- BreakCriticalEdges.cpp
- BuildLibCalls.cpp
- CloneFunction.cpp
- CloneLoop.cpp
- CloneModule.cpp
- CodeExtractor.cpp
- DemoteRegToStack.cpp
- InlineFunction.cpp
- InstructionNamer.cpp
- LCSSA.cpp
- Local.cpp
- LoopSimplify.cpp
- LoopUnroll.cpp
- LowerInvoke.cpp
- LowerSwitch.cpp
- Mem2Reg.cpp
- PromoteMemoryToRegister.cpp
- SSAUpdater.cpp
- SimplifyCFG.cpp
- UnifyFunctionExitNodes.cpp
- ValueMapper.cpp
- )
-
-target_link_libraries (LLVMTransformUtils LLVMSupport)
diff --git a/contrib/llvm/lib/Transforms/Utils/Makefile b/contrib/llvm/lib/Transforms/Utils/Makefile
deleted file mode 100644
index d1e9336..0000000
--- a/contrib/llvm/lib/Transforms/Utils/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-##===- lib/Transforms/Utils/Makefile -----------------------*- Makefile -*-===##
-#
-# The LLVM Compiler Infrastructure
-#
-# This file is distributed under the University of Illinois Open Source
-# License. See LICENSE.TXT for details.
-#
-##===----------------------------------------------------------------------===##
-
-LEVEL = ../../..
-LIBRARYNAME = LLVMTransformUtils
-BUILD_ARCHIVE = 1
-
-include $(LEVEL)/Makefile.common
-
OpenPOWER on IntegriCloud