From 0bcbd1df7a204e1e512f1a27066d725309de1b13 Mon Sep 17 00:00:00 2001
From: Bill Wendling
Date: Thu, 28 Jun 2012 00:05:13 +0000
Subject: Move lib/Analysis/DebugInfo.cpp to lib/VMCore/DebugInfo.cpp and
include/llvm/Analysis/DebugInfo.h to include/llvm/DebugInfo.h.
The reasoning is because the DebugInfo module is simply an interface to the
debug info MDNodes and has nothing to do with analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159312 91177308-0d34-0410-b5e6-96231b3b80d8
---
lib/Transforms/Utils/InlineFunction.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'lib/Transforms/Utils/InlineFunction.cpp')
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 9f8043d6fa..7a2940f8a6 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -14,6 +14,7 @@
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Constants.h"
+#include "llvm/DebugInfo.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/Instructions.h"
@@ -21,7 +22,6 @@
#include "llvm/Intrinsics.h"
#include "llvm/Attributes.h"
#include "llvm/Analysis/CallGraph.h"
-#include "llvm/Analysis/DebugInfo.h"
#include "llvm/Analysis/InstructionSimplify.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Utils/Local.h"
--
cgit v1.2.3-70-g09d2
From 06cb8ed00696eb14d1b831921452e50ec0568ea2 Mon Sep 17 00:00:00 2001
From: Chandler Carruth
Date: Fri, 29 Jun 2012 12:38:19 +0000
Subject: Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h
This was always part of the VMCore library out of necessity -- it deals
entirely in the IR. The .cpp file in fact was already part of the VMCore
library. This is just a mechanical move.
I've tried to go through and re-apply the coding standard's preferred
header sort, but at 40-ish files, I may have gotten some wrong. Please
let me know if so.
I'll be committing the corresponding updates to Clang and Polly, and
Duncan has DragonEgg.
Thanks to Bill and Eric for giving the green light for this bit of cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159421 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/tutorial/LangImpl3.html | 2 +-
docs/tutorial/LangImpl4.html | 2 +-
docs/tutorial/LangImpl5.html | 2 +-
docs/tutorial/LangImpl6.html | 2 +-
docs/tutorial/LangImpl7.html | 2 +-
examples/BrainF/BrainF.h | 2 +-
examples/ExceptionDemo/ExceptionDemo.cpp | 2 +-
examples/HowToUseJIT/HowToUseJIT.cpp | 6 +-
examples/Kaleidoscope/Chapter3/toy.cpp | 2 +-
examples/Kaleidoscope/Chapter4/toy.cpp | 2 +-
examples/Kaleidoscope/Chapter5/toy.cpp | 2 +-
examples/Kaleidoscope/Chapter6/toy.cpp | 2 +-
examples/Kaleidoscope/Chapter7/toy.cpp | 2 +-
include/llvm-c/Core.h | 2 +-
include/llvm/Analysis/MemoryBuiltins.h | 4 +-
include/llvm/Analysis/ScalarEvolutionExpander.h | 2 +-
include/llvm/IRBuilder.h | 1281 ++++++++++++++++++++
include/llvm/Support/IRBuilder.h | 1281 --------------------
include/llvm/Transforms/Utils/BuildLibCalls.h | 2 +-
include/llvm/Transforms/Utils/Local.h | 4 +-
lib/CodeGen/IntrinsicLowering.cpp | 6 +-
lib/CodeGen/ShadowStackGC.cpp | 8 +-
lib/CodeGen/SjLjEHPrepare.cpp | 20 +-
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp | 12 +-
lib/Transforms/IPO/MergeFunctions.cpp | 12 +-
lib/Transforms/InstCombine/InstCombine.h | 2 +-
.../Instrumentation/AddressSanitizer.cpp | 12 +-
lib/Transforms/Instrumentation/GCOVProfiling.cpp | 18 +-
lib/Transforms/Instrumentation/ThreadSanitizer.cpp | 14 +-
lib/Transforms/Scalar/BoundsChecking.cpp | 8 +-
lib/Transforms/Scalar/CodeGenPrepare.cpp | 24 +-
lib/Transforms/Scalar/GVN.cpp | 22 +-
lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 10 +-
lib/Transforms/Scalar/LowerAtomic.cpp | 2 +-
lib/Transforms/Scalar/MemCpyOptimizer.cpp | 8 +-
lib/Transforms/Scalar/Reassociate.cpp | 12 +-
lib/Transforms/Scalar/ScalarReplAggregates.cpp | 18 +-
lib/Transforms/Scalar/SimplifyLibCalls.cpp | 12 +-
lib/Transforms/Utils/BuildLibCalls.cpp | 10 +-
lib/Transforms/Utils/InlineFunction.cpp | 12 +-
lib/Transforms/Utils/Local.cpp | 8 +-
lib/Transforms/Utils/ModuleUtils.cpp | 2 +-
lib/Transforms/Utils/SimplifyCFG.cpp | 14 +-
lib/VMCore/AutoUpgrade.cpp | 6 +-
lib/VMCore/IRBuilder.cpp | 4 +-
.../JIT/JITEventListenerTestCommon.h | 8 +-
unittests/ExecutionEngine/JIT/JITTest.cpp | 20 +-
unittests/Support/IRBuilderTest.cpp | 2 +-
unittests/Support/MDBuilderTest.cpp | 6 +-
unittests/Transforms/Utils/Local.cpp | 5 +-
unittests/VMCore/InstructionsTest.cpp | 4 +-
51 files changed, 1465 insertions(+), 1462 deletions(-)
create mode 100644 include/llvm/IRBuilder.h
delete mode 100644 include/llvm/Support/IRBuilder.h
(limited to 'lib/Transforms/Utils/InlineFunction.cpp')
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html
index 4e9ac3ad5f..57ff7373f6 100644
--- a/docs/tutorial/LangImpl3.html
+++ b/docs/tutorial/LangImpl3.html
@@ -685,10 +685,10 @@ clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
// See example below.
#include "llvm/DerivedTypes.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Analysis/Verifier.h"
-#include "llvm/Support/IRBuilder.h"
#include <cstdio>
#include <string>
#include <map>
diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html
index 8c5c31e762..453e43a02e 100644
--- a/docs/tutorial/LangImpl4.html
+++ b/docs/tutorial/LangImpl4.html
@@ -517,6 +517,7 @@ at runtime.
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
@@ -524,7 +525,6 @@ at runtime.
#include "llvm/Analysis/Passes.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/TargetSelect.h"
#include <cstdio>
#include <string>
diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html
index 0bb7e4f711..2d406df3aa 100644
--- a/docs/tutorial/LangImpl5.html
+++ b/docs/tutorial/LangImpl5.html
@@ -895,6 +895,7 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
@@ -902,7 +903,6 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3
#include "llvm/Analysis/Passes.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/TargetSelect.h"
#include <cstdio>
#include <string>
diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html
index 453b576dd3..9c606ae11d 100644
--- a/docs/tutorial/LangImpl6.html
+++ b/docs/tutorial/LangImpl6.html
@@ -834,6 +834,7 @@ library, although doing that will cause problems on Windows.
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
@@ -841,7 +842,6 @@ library, although doing that will cause problems on Windows.
#include "llvm/Analysis/Passes.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/TargetSelect.h"
#include <cstdio>
#include <string>
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html
index 90bdeee16a..08c0c716b6 100644
--- a/docs/tutorial/LangImpl7.html
+++ b/docs/tutorial/LangImpl7.html
@@ -1002,6 +1002,7 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
@@ -1009,7 +1010,6 @@ clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3
#include "llvm/Analysis/Passes.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/TargetSelect.h"
#include <cstdio>
#include <string>
diff --git a/examples/BrainF/BrainF.h b/examples/BrainF/BrainF.h
index add0687d54..c069feb51e 100644
--- a/examples/BrainF/BrainF.h
+++ b/examples/BrainF/BrainF.h
@@ -15,9 +15,9 @@
#ifndef BRAINF_H
#define BRAINF_H
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
-#include "llvm/Support/IRBuilder.h"
using namespace llvm;
diff --git a/examples/ExceptionDemo/ExceptionDemo.cpp b/examples/ExceptionDemo/ExceptionDemo.cpp
index 0702baeb97..6dbd6626de 100644
--- a/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -52,6 +52,7 @@
#include "llvm/DerivedTypes.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/IRBuilder.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Intrinsics.h"
@@ -59,7 +60,6 @@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Transforms/Scalar.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/TargetSelect.h"
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp
index 92b2860eec..5588e923df 100644
--- a/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -34,18 +34,18 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/LLVMContext.h"
-#include "llvm/Module.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
+#include "llvm/IRBuilder.h"
#include "llvm/Instructions.h"
+#include "llvm/LLVMContext.h"
+#include "llvm/Module.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/IRBuilder.h"
using namespace llvm;
diff --git a/examples/Kaleidoscope/Chapter3/toy.cpp b/examples/Kaleidoscope/Chapter3/toy.cpp
index 33980f5ba8..c1e34b2f09 100644
--- a/examples/Kaleidoscope/Chapter3/toy.cpp
+++ b/examples/Kaleidoscope/Chapter3/toy.cpp
@@ -1,8 +1,8 @@
#include "llvm/DerivedTypes.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Analysis/Verifier.h"
-#include "llvm/Support/IRBuilder.h"
#include
#include
#include