aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO.h4
-rw-r--r--include/llvm/Transforms/Instrumentation.h4
-rw-r--r--include/llvm/Transforms/MutateStructTypes.h4
-rw-r--r--include/llvm/Transforms/Scalar.h4
-rw-r--r--include/llvm/Transforms/Utils/BasicBlockUtils.h5
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h5
-rw-r--r--include/llvm/Transforms/Utils/DemoteRegToStack.h4
-rw-r--r--include/llvm/Transforms/Utils/Linker.h5
-rw-r--r--include/llvm/Transforms/Utils/Local.h5
-rw-r--r--include/llvm/Transforms/Utils/PromoteMemToReg.h7
-rw-r--r--include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h4
11 files changed, 49 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 62ed93c..80f5a52 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -15,6 +15,8 @@
#ifndef LLVM_TRANSFORMS_IPO_H
#define LLVM_TRANSFORMS_IPO_H
+namespace llvm {
+
class Pass;
class Function;
@@ -119,4 +121,6 @@ Pass *createIPConstantPropagationPass();
Pass *createSwapElementsPass();
Pass *createSortElementsPass();
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index abe4fc4..035b8d1 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -14,6 +14,8 @@
#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H
#define LLVM_TRANSFORMS_INSTRUMENTATION_H
+namespace llvm {
+
class Pass;
//===----------------------------------------------------------------------===//
@@ -23,4 +25,6 @@ class Pass;
Pass *createTraceValuesPassForFunction(); // Just trace function entry/exit
Pass *createTraceValuesPassForBasicBlocks(); // Trace BB's and methods
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/MutateStructTypes.h b/include/llvm/Transforms/MutateStructTypes.h
index f9b753c..c68f2dd 100644
--- a/include/llvm/Transforms/MutateStructTypes.h
+++ b/include/llvm/Transforms/MutateStructTypes.h
@@ -24,6 +24,8 @@
#include "llvm/Pass.h"
#include "llvm/AbstractTypeUser.h"
+namespace llvm {
+
class Value;
class Type;
class StructType;
@@ -111,4 +113,6 @@ private:
unsigned idx = 0);
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 81fd597..da17b8d 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -15,6 +15,8 @@
#ifndef LLVM_TRANSFORMS_SCALAR_H
#define LLVM_TRANSFORMS_SCALAR_H
+namespace llvm {
+
class Pass;
class FunctionPass;
class GetElementPtrInst;
@@ -268,4 +270,6 @@ FunctionPass *createLowerInvokePass();
Pass *createSymbolStrippingPass();
Pass *createFullSymbolStrippingPass();
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h
index 4630d53..155eae8 100644
--- a/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -19,6 +19,9 @@
#include "llvm/BasicBlock.h"
#include "llvm/Support/CFG.h"
+
+namespace llvm {
+
class Instruction;
class Pass;
@@ -50,7 +53,6 @@ void ReplaceInstWithInst(Instruction *From, Instruction *To);
//
void RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum);
-
/// isCriticalEdge - Return true if the specified edge is a critical edge.
/// Critical edges are edges from a block with multiple successors to a block
/// with multiple predecessors.
@@ -82,5 +84,6 @@ inline bool SplitCriticalEdge(BasicBlock *Succ, pred_iterator PI, Pass *P = 0) {
return MadeChange;
}
+} // End llvm namespace
#endif
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index 351deef..f6351d4 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/include/llvm/Transforms/Utils/Cloning.h
@@ -20,6 +20,9 @@
#include <vector>
#include <map>
+
+namespace llvm {
+
class Module;
class Function;
class BasicBlock;
@@ -109,4 +112,6 @@ bool InlineFunction(CallSite CS);
/// no jump to it) and returns the new vector of basic blocks.
std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace);
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Utils/DemoteRegToStack.h b/include/llvm/Transforms/Utils/DemoteRegToStack.h
index 1d6d2c6..5810087 100644
--- a/include/llvm/Transforms/Utils/DemoteRegToStack.h
+++ b/include/llvm/Transforms/Utils/DemoteRegToStack.h
@@ -24,7 +24,11 @@
//
//===----------------------------------------------------------------------===//
+namespace llvm {
+
class Instruction;
class AllocaInst;
AllocaInst *DemoteRegToStack(Instruction &X);
+
+} // End llvm namespace
diff --git a/include/llvm/Transforms/Utils/Linker.h b/include/llvm/Transforms/Utils/Linker.h
index ac39903..9f4c8c2 100644
--- a/include/llvm/Transforms/Utils/Linker.h
+++ b/include/llvm/Transforms/Utils/Linker.h
@@ -15,6 +15,9 @@
#define LLVM_TRANSFORMATIONS_UTILS_LINKER_H
#include <string>
+
+namespace llvm {
+
class Module;
// LinkModules - This function links two modules together, with the resulting
@@ -24,5 +27,7 @@ class Module;
//
bool LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg = 0);
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 286aef9..2f83174 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -16,6 +16,9 @@
#define LLVM_TRANSFORMS_UTILS_LOCAL_H
#include "llvm/Function.h"
+
+namespace llvm {
+
class Pass;
//===----------------------------------------------------------------------===//
@@ -67,4 +70,6 @@ bool dceInstruction(BasicBlock::iterator &BBI);
///
bool SimplifyCFG(BasicBlock *BB);
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h
index 57d5dae..38ea373 100644
--- a/include/llvm/Transforms/Utils/PromoteMemToReg.h
+++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h
@@ -15,11 +15,14 @@
#ifndef TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
#define TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
+#include <vector>
+
+namespace llvm {
+
class AllocaInst;
class DominatorTree;
class DominanceFrontier;
class TargetData;
-#include <vector>
/// isAllocaPromotable - Return true if this alloca is legal for promotion.
/// This is true if there are only loads and stores to the alloca...
@@ -35,4 +38,6 @@ void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
DominatorTree &DT, DominanceFrontier &DF,
const TargetData &TD);
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
index a59517c..590d510 100644
--- a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
+++ b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
@@ -20,6 +20,8 @@
#include "llvm/Pass.h"
+namespace llvm {
+
struct UnifyFunctionExitNodes : public FunctionPass {
BasicBlock *ReturnBlock, *UnwindBlock;
public:
@@ -39,4 +41,6 @@ public:
Pass *createUnifyFunctionExitNodesPass();
+} // End llvm namespace
+
#endif