summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbin Zheng <etherzhhb@gmail.com>2012-04-23 13:03:43 +0000
committerHongbin Zheng <etherzhhb@gmail.com>2012-04-23 13:03:43 +0000
commit6f7aa074add43a00e6a2520efacbc14c05d7bd45 (patch)
tree40f9e9f8f3f0ec0fc8b1f24c2d123d830b1a5f86
parent056e27ea495f93ec8379e620d09ce390a31d2224 (diff)
downloadbcm5719-llvm-6f7aa074add43a00e6a2520efacbc14c05d7bd45.tar.gz
bcm5719-llvm-6f7aa074add43a00e6a2520efacbc14c05d7bd45.zip
1. Add a header guard for LoopGenerators.h to prevent multiple inclusion.
2. Include the helper function and the helper class in the LoopGenerator.h into the polly namespace. llvm-svn: 155348
-rw-r--r--polly/include/polly/LoopGenerators.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/include/polly/LoopGenerators.h b/polly/include/polly/LoopGenerators.h
index d55d55cf357..b37c55298f3 100644
--- a/polly/include/polly/LoopGenerators.h
+++ b/polly/include/polly/LoopGenerators.h
@@ -11,6 +11,8 @@
// as LLVM-IR.
//
//===----------------------------------------------------------------------===//
+#ifndef POLLY_LOOP_GENERATORS_H
+#define POLLY_LOOP_GENERATORS_H
#include "llvm/Support/IRBuilder.h"
#include "llvm/ADT/SetVector.h"
@@ -22,6 +24,7 @@ namespace llvm {
class BasicBlock;
}
+namespace polly {
using namespace llvm;
/// @brief Create a scalar loop.
@@ -105,4 +108,6 @@ private:
/// @brief Create the definition of the OpenMP subfunction.
Function *createSubfunctionDefinition();
};
+} // end namespace polly
+#endif
OpenPOWER on IntegriCloud