[polly] r216843 - Introduce a typedef for the IDToValue type

Tobias Grosser tobias at grosser.es
Sun Aug 31 09:21:12 PDT 2014


Author: grosser
Date: Sun Aug 31 11:21:12 2014
New Revision: 216843

URL: http://llvm.org/viewvc/llvm-project?rev=216843&view=rev
Log:
Introduce a typedef for the IDToValue type

Modified:
    polly/trunk/include/polly/CodeGen/IslExprBuilder.h
    polly/trunk/lib/CodeGen/IslCodeGeneration.cpp

Modified: polly/trunk/include/polly/CodeGen/IslExprBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IslExprBuilder.h?rev=216843&r1=216842&r2=216843&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IslExprBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IslExprBuilder.h Sun Aug 31 11:21:12 2014
@@ -76,6 +76,9 @@ namespace polly {
 /// enough).
 class IslExprBuilder {
 public:
+  /// @brief A map from isl_ids to llvm::Values.
+  typedef std::map<isl_id *, llvm::Value *> IDToValueTy;
+
   /// @brief Construct an IslExprBuilder.
   ///
   /// @param Builder The IRBuilder used to construct the isl_ast_expr[ession].
@@ -86,8 +89,7 @@ public:
   ///                  variables (identified by an isl_id). The IDTOValue map
   ///                  specifies the LLVM-IR Values that correspond to these
   ///                  parameters and variables.
-  IslExprBuilder(PollyIRBuilder &Builder,
-                 std::map<isl_id *, llvm::Value *> &IDToValue)
+  IslExprBuilder(PollyIRBuilder &Builder, IDToValueTy &IDToValue)
       : Builder(Builder), IDToValue(IDToValue) {}
 
   /// @brief Create LLVM-IR for an isl_ast_expr[ession].

Modified: polly/trunk/lib/CodeGen/IslCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslCodeGeneration.cpp?rev=216843&r1=216842&r2=216843&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/IslCodeGeneration.cpp Sun Aug 31 11:21:12 2014
@@ -49,8 +49,6 @@
 #include "isl/map.h"
 #include "isl/aff.h"
 
-#include <map>
-
 using namespace polly;
 using namespace llvm;
 
@@ -81,7 +79,7 @@ private:
   // This maps an isl_id* to the Value* it has in the generated program. For now
   // on, the only isl_ids that are stored here are the newly calculated loop
   // ivs.
-  std::map<isl_id *, Value *> IDToValue;
+  IslExprBuilder::IDToValueTy IDToValue;
 
   // Extract the upper bound of this loop
   //





More information about the llvm-commits mailing list