summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-29 12:38:19 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-29 12:38:19 +0000
commitaafe0918bc34ec7045002f90da1b70a3e10ed644 (patch)
treed37b5a7d544572058c24d0ba43e0cda924b60d15 /llvm/unittests
parentc37ac17629a6f5ba9d7f889b48180137389ff4a6 (diff)
downloadbcm5719-llvm-aafe0918bc34ec7045002f90da1b70a3e10ed644.tar.gz
bcm5719-llvm-aafe0918bc34ec7045002f90da1b70a3e10ed644.zip
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. llvm-svn: 159421
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h8
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp20
-rw-r--r--llvm/unittests/Support/IRBuilderTest.cpp2
-rw-r--r--llvm/unittests/Support/MDBuilderTest.cpp6
-rw-r--r--llvm/unittests/Transforms/Utils/Local.cpp5
-rw-r--r--llvm/unittests/VMCore/InstructionsTest.cpp4
6 files changed, 24 insertions, 21 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h
index d0c7ae90915..d669ecc03db 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h
+++ b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h
@@ -10,18 +10,18 @@
#ifndef JIT_EVENT_LISTENER_TEST_COMMON_H
#define JIT_EVENT_LISTENER_TEST_COMMON_H
-#include "llvm/DebugInfo.h"
#include "llvm/DIBuilder.h"
+#include "llvm/DebugInfo.h"
+#include "llvm/IRBuilder.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/CodeGen/MachineCodeInfo.h"
-#include "llvm/Config/config.h"
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/Dwarf.h"
-#include "llvm/Support/TypeBuilder.h"
#include "llvm/Support/TargetSelect.h"
+#include "llvm/Support/TypeBuilder.h"
+#include "llvm/Config/config.h"
#include "gtest/gtest.h"
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index dcc58d49c46..8780aa556c4 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -7,29 +7,29 @@
//
//===----------------------------------------------------------------------===//
-#include "gtest/gtest.h"
-#include "llvm/ADT/OwningPtr.h"
-#include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/Assembly/Parser.h"
#include "llvm/BasicBlock.h"
-#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/Constant.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/ExecutionEngine/JIT.h"
-#include "llvm/ExecutionEngine/JITMemoryManager.h"
#include "llvm/Function.h"
#include "llvm/GlobalValue.h"
#include "llvm/GlobalVariable.h"
+#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
-#include "llvm/Support/IRBuilder.h"
+#include "llvm/Type.h"
+#include "llvm/ADT/OwningPtr.h"
+#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/Assembly/Parser.h"
+#include "llvm/Bitcode/ReaderWriter.h"
+#include "llvm/ExecutionEngine/JIT.h"
+#include "llvm/ExecutionEngine/JITMemoryManager.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
-#include "llvm/Support/TypeBuilder.h"
#include "llvm/Support/TargetSelect.h"
-#include "llvm/Type.h"
+#include "llvm/Support/TypeBuilder.h"
+#include "gtest/gtest.h"
#include <vector>
using namespace llvm;
diff --git a/llvm/unittests/Support/IRBuilderTest.cpp b/llvm/unittests/Support/IRBuilderTest.cpp
index 9c48c2c00f1..56b9f15462e 100644
--- a/llvm/unittests/Support/IRBuilderTest.cpp
+++ b/llvm/unittests/Support/IRBuilderTest.cpp
@@ -7,9 +7,9 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Support/IRBuilder.h"
#include "llvm/BasicBlock.h"
#include "llvm/Function.h"
+#include "llvm/IRBuilder.h"
#include "llvm/IntrinsicInst.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
diff --git a/llvm/unittests/Support/MDBuilderTest.cpp b/llvm/unittests/Support/MDBuilderTest.cpp
index d54c7e8e8d7..af3f4348ffe 100644
--- a/llvm/unittests/Support/MDBuilderTest.cpp
+++ b/llvm/unittests/Support/MDBuilderTest.cpp
@@ -7,10 +7,12 @@
//
//===----------------------------------------------------------------------===//
-#include "gtest/gtest.h"
+#include "llvm/IRBuilder.h"
#include "llvm/Operator.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/MDBuilder.h"
+
+#include "gtest/gtest.h"
+
using namespace llvm;
namespace {
diff --git a/llvm/unittests/Transforms/Utils/Local.cpp b/llvm/unittests/Transforms/Utils/Local.cpp
index 3026b4bc348..727f5ea525d 100644
--- a/llvm/unittests/Transforms/Utils/Local.cpp
+++ b/llvm/unittests/Transforms/Utils/Local.cpp
@@ -7,13 +7,14 @@
//
//===----------------------------------------------------------------------===//
-#include "gtest/gtest.h"
#include "llvm/BasicBlock.h"
+#include "llvm/IRBuilder.h"
#include "llvm/Instructions.h"
#include "llvm/LLVMContext.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Transforms/Utils/Local.h"
+#include "gtest/gtest.h"
+
using namespace llvm;
TEST(Local, RecursivelyDeleteDeadPHINodes) {
diff --git a/llvm/unittests/VMCore/InstructionsTest.cpp b/llvm/unittests/VMCore/InstructionsTest.cpp
index d002101cd3b..a8902d932e5 100644
--- a/llvm/unittests/VMCore/InstructionsTest.cpp
+++ b/llvm/unittests/VMCore/InstructionsTest.cpp
@@ -7,16 +7,16 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Instructions.h"
#include "llvm/BasicBlock.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
+#include "llvm/IRBuilder.h"
+#include "llvm/Instructions.h"
#include "llvm/LLVMContext.h"
#include "llvm/Operator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Support/MDBuilder.h"
-#include "llvm/Support/IRBuilder.h"
#include "llvm/Target/TargetData.h"
#include "gtest/gtest.h"
OpenPOWER on IntegriCloud