aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/MRegisterInfo.h4
-rw-r--r--include/llvm/Target/TargetCacheInfo.h4
-rw-r--r--include/llvm/Target/TargetData.h5
-rw-r--r--include/llvm/Target/TargetFrameInfo.h4
-rw-r--r--include/llvm/Target/TargetInstrInfo.h4
-rw-r--r--include/llvm/Target/TargetMachine.h4
-rw-r--r--include/llvm/Target/TargetMachineImpls.h4
-rw-r--r--include/llvm/Target/TargetRegInfo.h4
-rw-r--r--include/llvm/Target/TargetSchedInfo.h14
9 files changed, 44 insertions, 3 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h
index a87c74f..3217b47 100644
--- a/include/llvm/Target/MRegisterInfo.h
+++ b/include/llvm/Target/MRegisterInfo.h
@@ -19,6 +19,8 @@
#include "llvm/CodeGen/MachineBasicBlock.h"
#include <cassert>
+namespace llvm {
+
class Type;
class MachineFunction;
@@ -280,4 +282,6 @@ public:
MachineBasicBlock &MBB) const = 0;
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetCacheInfo.h b/include/llvm/Target/TargetCacheInfo.h
index 56f20bf5..357adf0 100644
--- a/include/llvm/Target/TargetCacheInfo.h
+++ b/include/llvm/Target/TargetCacheInfo.h
@@ -16,6 +16,8 @@
#include "Support/DataTypes.h"
+namespace llvm {
+
class TargetMachine;
struct TargetCacheInfo {
@@ -59,4 +61,6 @@ public:
}
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 8dcb625..9be9564 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -24,6 +24,9 @@
#include "Support/Annotation.h"
#include "Support/DataTypes.h"
#include <vector>
+
+namespace llvm {
+
class Value;
class Type;
class StructType;
@@ -101,4 +104,6 @@ private:
inline StructLayout(const StructType *ST, const TargetData &TD);
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h
index 0f82e27..2b968fa 100644
--- a/include/llvm/Target/TargetFrameInfo.h
+++ b/include/llvm/Target/TargetFrameInfo.h
@@ -14,6 +14,8 @@
#ifndef LLVM_TARGET_TARGETFRAMEINFO_H
#define LLVM_TARGET_TARGETFRAMEINFO_H
+namespace llvm {
+
class MachineFunction;
struct TargetFrameInfo {
@@ -99,4 +101,6 @@ public:
virtual int getDynamicAreaBaseRegNum() const { abort(); }
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 76cfb39..c6afba5 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -18,6 +18,8 @@
#include <vector>
#include <cassert>
+namespace llvm {
+
class MachineInstr;
class TargetMachine;
class Value;
@@ -415,4 +417,6 @@ public:
}
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index af06349..c0771a1 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -17,6 +17,8 @@
#include "llvm/Target/TargetData.h"
#include <cassert>
+namespace llvm {
+
class TargetInstrInfo;
class TargetInstrDescriptor;
class TargetSchedInfo;
@@ -117,4 +119,6 @@ public:
}
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetMachineImpls.h b/include/llvm/Target/TargetMachineImpls.h
index 670b2dc..3ca20c7 100644
--- a/include/llvm/Target/TargetMachineImpls.h
+++ b/include/llvm/Target/TargetMachineImpls.h
@@ -15,6 +15,8 @@
#ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H
#define LLVM_TARGET_TARGETMACHINEIMPLS_H
+namespace llvm {
+
class TargetMachine;
class Module;
@@ -30,4 +32,6 @@ TargetMachine *allocateSparcTargetMachine(const Module &M);
//
TargetMachine *allocateX86TargetMachine(const Module &M);
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h
index 36bfc0b..f9f67c7 100644
--- a/include/llvm/Target/TargetRegInfo.h
+++ b/include/llvm/Target/TargetRegInfo.h
@@ -19,6 +19,8 @@
#include <string>
#include <cassert>
+namespace llvm {
+
class TargetMachine;
class IGNode;
class Type;
@@ -289,4 +291,6 @@ public:
virtual int getSpilledRegSize(int RegType) const = 0;
};
+} // End llvm namespace
+
#endif
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h
index dd8df32..ae97d10 100644
--- a/include/llvm/Target/TargetSchedInfo.h
+++ b/include/llvm/Target/TargetSchedInfo.h
@@ -18,6 +18,8 @@
#include "Support/hash_map"
#include <string>
+namespace llvm {
+
typedef long long cycles_t;
static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
static const cycles_t INVALID_LATENCY = -HUGE_LATENCY;
@@ -36,13 +38,17 @@ private:
OpCodePair(); // disable for now
};
+} // End llvm namespace
+
namespace HASH_NAMESPACE {
- template <> struct hash<OpCodePair> {
- size_t operator()(const OpCodePair& pair) const {
+ template <> struct hash<llvm::OpCodePair> {
+ size_t operator()(const llvm::OpCodePair& pair) const {
return hash<long>()(pair.val);
}
};
-}
+} // End HASH_NAMESPACE (a macro) namespace
+
+namespace llvm {
//---------------------------------------------------------------------------
// class MachineResource
@@ -321,4 +327,6 @@ protected:
};
+} // End llvm namespace
+
#endif