IRBuilder: Use AssertingVH

llvm-svn: 249268
This commit is contained in:
Tobias Grosser 2015-10-04 10:18:56 +00:00
parent 5762b31df4
commit ecdfae6b15
2 changed files with 9 additions and 5 deletions

View File

@ -72,7 +72,8 @@ public:
///
/// @param NewMap A map from new base pointers to original base pointers.
void addAlternativeAliasBases(
llvm::ValueMap<llvm::Value *, llvm::Value *> &NewMap) {
llvm::DenseMap<llvm::AssertingVH<llvm::Value>,
llvm::AssertingVH<llvm::Value>> &NewMap) {
AlternativeAliasBases.insert(NewMap.begin(), NewMap.end());
}
@ -93,12 +94,14 @@ private:
llvm::MDNode *AliasScopeDomain;
/// @brief A map from base pointers to its alias scope.
llvm::DenseMap<llvm::Value *, llvm::MDNode *> AliasScopeMap;
llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *> AliasScopeMap;
/// @brief A map from base pointers to an alias scope list of other pointers.
llvm::DenseMap<llvm::Value *, llvm::MDNode *> OtherAliasScopeListMap;
llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *>
OtherAliasScopeListMap;
llvm::ValueMap<llvm::Value *, llvm::Value *> AlternativeAliasBases;
llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::AssertingVH<llvm::Value>>
AlternativeAliasBases;
};
/// @brief Add Polly specifics when running IRBuilder.

View File

@ -96,7 +96,8 @@ Value *createLoop(Value *LowerBound, Value *UpperBound, Value *Stride,
/// }
class ParallelLoopGenerator {
public:
using ValueToValueMapTy = llvm::ValueMap<Value *, Value *>;
using ValueToValueMapTy =
llvm::DenseMap<AssertingVH<Value>, AssertingVH<Value>>;
/// @brief Create a parallel loop generator for the current function.
ParallelLoopGenerator(PollyIRBuilder &Builder, Pass *P, LoopInfo &LI,