From 06cb8ed00696eb14d1b831921452e50ec0568ea2 Mon Sep 17 00:00:00 2001
From: Chandler Carruth
Date: Fri, 29 Jun 2012 12:38:19 +0000
Subject: [PATCH] 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 ++--
.../llvm/Analysis/ScalarEvolutionExpander.h | 2 +-
include/llvm/{Support => }/IRBuilder.h | 6 ++---
include/llvm/Transforms/Utils/BuildLibCalls.h | 2 +-
include/llvm/Transforms/Utils/Local.h | 6 ++---
lib/CodeGen/IntrinsicLowering.cpp | 6 ++---
lib/CodeGen/ShadowStackGC.cpp | 8 +++----
lib/CodeGen/SjLjEHPrepare.cpp | 20 ++++++++--------
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp | 18 +++++++-------
lib/Transforms/IPO/MergeFunctions.cpp | 12 +++++-----
lib/Transforms/InstCombine/InstCombine.h | 2 +-
.../Instrumentation/AddressSanitizer.cpp | 12 +++++-----
.../Instrumentation/GCOVProfiling.cpp | 18 +++++++-------
.../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 +++++-----
.../Scalar/ScalarReplAggregates.cpp | 18 +++++++-------
lib/Transforms/Scalar/SimplifyLibCalls.cpp | 14 +++++------
lib/Transforms/Utils/BuildLibCalls.cpp | 10 ++++----
lib/Transforms/Utils/InlineFunction.cpp | 14 +++++------
lib/Transforms/Utils/Local.cpp | 8 +++----
lib/Transforms/Utils/ModuleUtils.cpp | 2 +-
lib/Transforms/Utils/SimplifyCFG.cpp | 18 +++++++-------
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 ++--
50 files changed, 195 insertions(+), 192 deletions(-)
rename include/llvm/{Support => }/IRBuilder.h (99%)
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html
index 4e9ac3ad5ff..57ff7373f69 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 8c5c31e7626..453e43a02e5 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 0bb7e4f711f..2d406df3aaf 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 453b576dd37..9c606ae11dd 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 90bdeee16a8..08c0c716b6f 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 add0687d54a..c069feb51e7 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 0702baeb975..6dbd6626de9 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 92b2860eec3..5588e923df8 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 33980f5ba86..c1e34b2f09a 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