forked from OSchip/llvm-project
parent
5762b31df4
commit
ecdfae6b15
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue