mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-05 18:49:06 +00:00
Make a few more DataLayout variables const.
llvm-svn: 202155
This commit is contained in:
parent
f4a944dda1
commit
9869474f57
@ -606,7 +606,7 @@ private:
|
||||
FnSetType FnSet;
|
||||
|
||||
/// DataLayout for more accurate GEP comparisons. May be NULL.
|
||||
DataLayout *DL;
|
||||
const DataLayout *DL;
|
||||
|
||||
/// Whether or not the target supports global aliases.
|
||||
bool HasGlobalAliases;
|
||||
|
@ -344,7 +344,7 @@ public:
|
||||
typedef SmallPtrSet<Value *, 16> ValueSet;
|
||||
typedef SmallVector<StoreInst *, 8> StoreList;
|
||||
|
||||
BoUpSLP(Function *Func, ScalarEvolution *Se, DataLayout *Dl,
|
||||
BoUpSLP(Function *Func, ScalarEvolution *Se, const DataLayout *Dl,
|
||||
TargetTransformInfo *Tti, AliasAnalysis *Aa, LoopInfo *Li,
|
||||
DominatorTree *Dt) :
|
||||
F(Func), SE(Se), DL(Dl), TTI(Tti), AA(Aa), LI(Li), DT(Dt),
|
||||
@ -533,7 +533,7 @@ private:
|
||||
// Analysis and block reference.
|
||||
Function *F;
|
||||
ScalarEvolution *SE;
|
||||
DataLayout *DL;
|
||||
const DataLayout *DL;
|
||||
TargetTransformInfo *TTI;
|
||||
AliasAnalysis *AA;
|
||||
LoopInfo *LI;
|
||||
@ -1784,7 +1784,7 @@ struct SLPVectorizer : public FunctionPass {
|
||||
}
|
||||
|
||||
ScalarEvolution *SE;
|
||||
DataLayout *DL;
|
||||
const DataLayout *DL;
|
||||
TargetTransformInfo *TTI;
|
||||
AliasAnalysis *AA;
|
||||
LoopInfo *LI;
|
||||
@ -2234,7 +2234,7 @@ public:
|
||||
|
||||
/// \brief Try to find a reduction tree.
|
||||
bool matchAssociativeReduction(PHINode *Phi, BinaryOperator *B,
|
||||
DataLayout *DL) {
|
||||
const DataLayout *DL) {
|
||||
assert((!Phi ||
|
||||
std::find(Phi->op_begin(), Phi->op_end(), B) != Phi->op_end()) &&
|
||||
"Thi phi needs to use the binary operator");
|
||||
|
Loading…
Reference in New Issue
Block a user