diff options
| author | Tobias Grosser <tobias@grosser.es> | 2014-08-31 16:21:12 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2014-08-31 16:21:12 +0000 |
| commit | 566ad58fe07ebc5f2302f191cfbf01bbd40245fb (patch) | |
| tree | 28f23bec3391e7e7ad5930f192a13fc0398f3ce6 | |
| parent | 1fee67d6f85bf7532bdb43f86cc6d1172b1cd566 (diff) | |
| download | bcm5719-llvm-566ad58fe07ebc5f2302f191cfbf01bbd40245fb.tar.gz bcm5719-llvm-566ad58fe07ebc5f2302f191cfbf01bbd40245fb.zip | |
Introduce a typedef for the IDToValue type
llvm-svn: 216843
| -rw-r--r-- | polly/include/polly/CodeGen/IslExprBuilder.h | 6 | ||||
| -rw-r--r-- | polly/lib/CodeGen/IslCodeGeneration.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/polly/include/polly/CodeGen/IslExprBuilder.h b/polly/include/polly/CodeGen/IslExprBuilder.h index c87cd5725e8..1232a4f6b15 100644 --- a/polly/include/polly/CodeGen/IslExprBuilder.h +++ b/polly/include/polly/CodeGen/IslExprBuilder.h @@ -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]. diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp index 71ca0089aed..f2ff3b10644 100644 --- a/polly/lib/CodeGen/IslCodeGeneration.cpp +++ b/polly/lib/CodeGen/IslCodeGeneration.cpp @@ -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 // |

