Introduce a typedef for the IDToValue type

llvm-svn: 216843
This commit is contained in:
Tobias Grosser 2014-08-31 16:21:12 +00:00
parent 1fee67d6f8
commit 566ad58fe0
2 changed files with 5 additions and 5 deletions

View File

@ -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].

View File

@ -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
//