diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /include/llvm/CodeGen/ScheduleDFS.h | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDFS.h')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDFS.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm/CodeGen/ScheduleDFS.h b/include/llvm/CodeGen/ScheduleDFS.h index b2108ad3bedb..c2013661cfff 100644 --- a/include/llvm/CodeGen/ScheduleDFS.h +++ b/include/llvm/CodeGen/ScheduleDFS.h @@ -14,16 +14,16 @@ #ifndef LLVM_CODEGEN_SCHEDULEDFS_H #define LLVM_CODEGEN_SCHEDULEDFS_H +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/ScheduleDAG.h" -#include "llvm/Support/DataTypes.h" #include <vector> +#include <cassert> +#include <cstdint> namespace llvm { class raw_ostream; -class IntEqClasses; -class ScheduleDAGInstrs; -class SUnit; /// \brief Represent the ILP of the subDAG rooted at a DAG node. /// @@ -75,18 +75,18 @@ class SchedDFSResult { /// interior node. Finally, it is set to a representative subtree ID during /// finalization. struct NodeData { - unsigned InstrCount; - unsigned SubtreeID; + unsigned InstrCount = 0; + unsigned SubtreeID = InvalidSubtreeID; - NodeData(): InstrCount(0), SubtreeID(InvalidSubtreeID) {} + NodeData() = default; }; /// \brief Per-Subtree data computed during DFS. struct TreeData { - unsigned ParentTreeID; - unsigned SubInstrCount; + unsigned ParentTreeID = InvalidSubtreeID; + unsigned SubInstrCount = 0; - TreeData(): ParentTreeID(InvalidSubtreeID), SubInstrCount(0) {} + TreeData() = default; }; /// \brief Record a connection between subtrees and the connection level. @@ -107,7 +107,7 @@ class SchedDFSResult { // For each subtree discovered during DFS, record its connections to other // subtrees. - std::vector<SmallVector<Connection, 4> > SubtreeConnections; + std::vector<SmallVector<Connection, 4>> SubtreeConnections; /// Cache the current connection level of each subtree. /// This mutable array is updated during scheduling. @@ -189,6 +189,6 @@ public: raw_ostream &operator<<(raw_ostream &OS, const ILPValue &Val); -} // namespace llvm +} // end namespace llvm -#endif +#endif // LLVM_CODEGEN_SCHEDULEDFS_H |