diff --git a/include/llvm/CodeGen/PBQP/Graph.h b/include/llvm/CodeGen/PBQP/Graph.h index 5aac2169316..07c33377314 100644 --- a/include/llvm/CodeGen/PBQP/Graph.h +++ b/include/llvm/CodeGen/PBQP/Graph.h @@ -28,6 +28,16 @@ namespace PBQP { public: typedef unsigned NodeId; typedef unsigned EdgeId; + + /// \brief Returns a value representing an invalid (non-existant) node. + static NodeId invalidNodeId() { + return std::numeric_limits::max(); + } + + /// \brief Returns a value representing an invalid (non-existant) edge. + static EdgeId invalidEdgeId() { + return std::numeric_limits::max(); + } }; /// PBQP Graph class. @@ -466,16 +476,6 @@ namespace PBQP { return E.getN1Id(); } - /// \brief Returns a value representing an invalid (non-existant) node. - static NodeId invalidNodeId() { - return std::numeric_limits::max(); - } - - /// \brief Returns a value representing an invalid (non-existant) edge. - static EdgeId invalidEdgeId() { - return std::numeric_limits::max(); - } - /// \brief Get the edge connecting two nodes. /// @param N1Id First node id. /// @param N2Id Second node id.