From 566ad58fe07ebc5f2302f191cfbf01bbd40245fb Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 31 Aug 2014 16:21:12 +0000 Subject: [PATCH] Introduce a typedef for the IDToValue type llvm-svn: 216843 --- polly/include/polly/CodeGen/IslExprBuilder.h | 6 ++++-- 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 c87cd5725e82..1232a4f6b158 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 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 &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 71ca0089aed1..f2ff3b106445 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 - 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 IDToValue; + IslExprBuilder::IDToValueTy IDToValue; // Extract the upper bound of this loop //