projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK...
[oota-llvm.git]
/
include
/
llvm
/
Analysis
/
IVUsers.h
diff --git
a/include/llvm/Analysis/IVUsers.h
b/include/llvm/Analysis/IVUsers.h
index 30a457ace811ab229bc24674a4b03296861e2d58..18e6fec97db713c97bed7610c6d0b788cd0e0496 100644
(file)
--- a/
include/llvm/Analysis/IVUsers.h
+++ b/
include/llvm/Analysis/IVUsers.h
@@
-17,7
+17,7
@@
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolution.h"
-#include
<llvm/ADT/SmallVector.h>
+#include
"llvm/ADT/SmallVector.h"
#include <map>
namespace llvm {
#include <map>
namespace llvm {
@@
-25,7
+25,7
@@
namespace llvm {
class DominatorTree;
class Instruction;
class Value;
class DominatorTree;
class Instruction;
class Value;
-
class
IVUsersOfOneStride;
+
struct
IVUsersOfOneStride;
/// IVStrideUse - Keep track of one use of a strided induction variable, where
/// the stride is stored externally. The Offset member keeps track of the
/// IVStrideUse - Keep track of one use of a strided induction variable, where
/// the stride is stored externally. The Offset member keeps track of the
@@
-34,7
+34,7
@@
class IVUsersOfOneStride;
class IVStrideUse : public CallbackVH, public ilist_node<IVStrideUse> {
public:
IVStrideUse(IVUsersOfOneStride *parent,
class IVStrideUse : public CallbackVH, public ilist_node<IVStrideUse> {
public:
IVStrideUse(IVUsersOfOneStride *parent,
- const SCEV
*
offset,
+ const SCEV
*
offset,
Instruction* U, Value *O)
: CallbackVH(U), Parent(parent), Offset(offset),
OperandValToReplace(O),
Instruction* U, Value *O)
: CallbackVH(U), Parent(parent), Offset(offset),
OperandValToReplace(O),
@@
-58,10
+58,10
@@
public:
/// getOffset - Return the offset to add to a theoeretical induction
/// variable that starts at zero and counts up by the stride to compute
/// the value for the use. This always has the same type as the stride.
/// getOffset - Return the offset to add to a theoeretical induction
/// variable that starts at zero and counts up by the stride to compute
/// the value for the use. This always has the same type as the stride.
- const SCEV
*
getOffset() const { return Offset; }
+ const SCEV
*
getOffset() const { return Offset; }
/// setOffset - Assign a new offset to this use.
/// setOffset - Assign a new offset to this use.
- void setOffset(const SCEV
*
Val) {
+ void setOffset(const SCEV
*
Val) {
Offset = Val;
}
Offset = Val;
}
@@
-96,7
+96,7
@@
private:
IVUsersOfOneStride *Parent;
/// Offset - The offset to add to the base induction expression.
IVUsersOfOneStride *Parent;
/// Offset - The offset to add to the base induction expression.
- const SCEV
*
Offset;
+ const SCEV
*
Offset;
/// OperandValToReplace - The Value of the operand in the user instruction
/// that this IVStrideUse is representing.
/// OperandValToReplace - The Value of the operand in the user instruction
/// that this IVStrideUse is representing.
@@
-158,7
+158,7
@@
public:
/// initial value and the operand that uses the IV.
ilist<IVStrideUse> Users;
/// initial value and the operand that uses the IV.
ilist<IVStrideUse> Users;
- void addUser(const SCEV
*
Offset, Instruction *User, Value *Operand) {
+ void addUser(const SCEV
*
Offset, Instruction *User, Value *Operand) {
Users.push_back(new IVStrideUse(this, Offset, User, Operand));
}
};
Users.push_back(new IVStrideUse(this, Offset, User, Operand));
}
};
@@
-178,12
+178,12
@@
public:
/// IVUsesByStride - A mapping from the strides in StrideOrder to the
/// uses in IVUses.
/// IVUsesByStride - A mapping from the strides in StrideOrder to the
/// uses in IVUses.
- std::map<const SCEV*, IVUsersOfOneStride*> IVUsesByStride;
+ std::map<const SCEV
*, IVUsersOfOneStride*> IVUsesByStride;
/// StrideOrder - An ordering of the keys in IVUsesByStride that is stable:
/// We use this to iterate over the IVUsesByStride collection without being
/// dependent on random ordering of pointers in the process.
/// StrideOrder - An ordering of the keys in IVUsesByStride that is stable:
/// We use this to iterate over the IVUsesByStride collection without being
/// dependent on random ordering of pointers in the process.
- SmallVector<const SCEV*, 16> StrideOrder;
+ SmallVector<const SCEV
*, 16> StrideOrder;
private:
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
private:
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
@@
-203,7
+203,7
@@
public:
/// getReplacementExpr - Return a SCEV expression which computes the
/// value of the OperandValToReplace of the given IVStrideUse.
/// getReplacementExpr - Return a SCEV expression which computes the
/// value of the OperandValToReplace of the given IVStrideUse.
- const SCEV
*
getReplacementExpr(const IVStrideUse &U) const;
+ const SCEV
*
getReplacementExpr(const IVStrideUse &U) const;
void print(raw_ostream &OS, const Module* = 0) const;
virtual void print(std::ostream &OS, const Module* = 0) const;
void print(raw_ostream &OS, const Module* = 0) const;
virtual void print(std::ostream &OS, const Module* = 0) const;