forked from OSchip/llvm-project
Introduce a typedef for the IDToValue type
llvm-svn: 216843
This commit is contained in:
parent
1fee67d6f8
commit
566ad58fe0
|
@ -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].
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue