mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Move maskNodeTypes from cpp file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4662 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7900ed146f
commit
dc26d45c71
@ -109,10 +109,13 @@ public:
|
||||
void dump() const;
|
||||
void writeGraphToFile(std::ostream &O, const std::string &GraphName) const;
|
||||
|
||||
// maskNodeTypes - Apply a mask to all of the node types in the graph. This
|
||||
// is useful for clearing out markers like Scalar or Incomplete.
|
||||
//
|
||||
void maskNodeTypes(unsigned char Mask);
|
||||
/// maskNodeTypes - Apply a mask to all of the node types in the graph. This
|
||||
/// is useful for clearing out markers like Incomplete.
|
||||
///
|
||||
void maskNodeTypes(unsigned char Mask) {
|
||||
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
|
||||
Nodes[i]->NodeType &= Mask;
|
||||
}
|
||||
void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); }
|
||||
|
||||
// markIncompleteNodes - Traverse the graph, identifying nodes that may be
|
||||
|
@ -109,10 +109,13 @@ public:
|
||||
void dump() const;
|
||||
void writeGraphToFile(std::ostream &O, const std::string &GraphName) const;
|
||||
|
||||
// maskNodeTypes - Apply a mask to all of the node types in the graph. This
|
||||
// is useful for clearing out markers like Scalar or Incomplete.
|
||||
//
|
||||
void maskNodeTypes(unsigned char Mask);
|
||||
/// maskNodeTypes - Apply a mask to all of the node types in the graph. This
|
||||
/// is useful for clearing out markers like Incomplete.
|
||||
///
|
||||
void maskNodeTypes(unsigned char Mask) {
|
||||
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
|
||||
Nodes[i]->NodeType &= Mask;
|
||||
}
|
||||
void maskIncompleteMarkers() { maskNodeTypes(~DSNode::Incomplete); }
|
||||
|
||||
// markIncompleteNodes - Traverse the graph, identifying nodes that may be
|
||||
|
Loading…
Reference in New Issue
Block a user