[llvm-commits] [polly] r155348 - /polly/trunk/include/polly/LoopGenerators.h

Hongbin Zheng etherzhhb at gmail.com
Mon Apr 23 06:03:43 PDT 2012


Author: ether
Date: Mon Apr 23 08:03:43 2012
New Revision: 155348

URL: http://llvm.org/viewvc/llvm-project?rev=155348&view=rev
Log:
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.

Modified:
    polly/trunk/include/polly/LoopGenerators.h

Modified: polly/trunk/include/polly/LoopGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/LoopGenerators.h?rev=155348&r1=155347&r2=155348&view=diff
==============================================================================
--- polly/trunk/include/polly/LoopGenerators.h (original)
+++ polly/trunk/include/polly/LoopGenerators.h Mon Apr 23 08:03:43 2012
@@ -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 @@
   class BasicBlock;
 }
 
+namespace polly {
 using namespace llvm;
 
 /// @brief Create a scalar loop.
@@ -105,4 +108,6 @@
   /// @brief Create the definition of the OpenMP subfunction.
   Function *createSubfunctionDefinition();
 };
+} // end namespace polly
+#endif
 





More information about the llvm-commits mailing list