Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HansKristian-Work/dxil-spirv.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2021-11-11 15:13:56 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2021-11-11 15:18:00 +0300
commit72fc2f8cfb13b17b70e68411b244ed5a19958b6c (patch)
tree543a9f20fca1188d1d72e1f4685aa834586c2527 /node.hpp
parentf740ea85e9dafa441a0617cce9e743433f3eb352 (diff)
Fix const-correctness for entry_exit_relationship test.
Diffstat (limited to 'node.hpp')
-rw-r--r--node.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node.hpp b/node.hpp
index 66a1ec1..c5209d8 100644
--- a/node.hpp
+++ b/node.hpp
@@ -114,7 +114,7 @@ private:
void recompute_immediate_post_dominator();
template <typename Op>
- void traverse_dominated_blocks(const Op &op);
+ void traverse_dominated_blocks(const Op &op) const;
CFGNode *get_outer_selection_dominator();
CFGNode *get_outer_header_dominator();
@@ -129,7 +129,7 @@ private:
void traverse_dominated_blocks_and_rewrite_branch(const CFGNode &header, CFGNode *from, CFGNode *to, const Op &op,
UnorderedSet<const CFGNode *> &visitation_cache);
template <typename Op>
- void traverse_dominated_blocks(const CFGNode &header, const Op &op);
+ void traverse_dominated_blocks(const CFGNode &header, const Op &op) const;
void retarget_fake_succ(CFGNode *from, CFGNode *to);
};
@@ -208,7 +208,7 @@ void CFGNode::traverse_dominated_blocks_and_rewrite_branch(const CFGNode &header
}
template <typename Op>
-void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op)
+void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op) const
{
for (auto *node : succ)
{
@@ -221,7 +221,7 @@ void CFGNode::traverse_dominated_blocks(const CFGNode &header, const Op &op)
}
template <typename Op>
-void CFGNode::traverse_dominated_blocks(const Op &op)
+void CFGNode::traverse_dominated_blocks(const Op &op) const
{
traverse_dominated_blocks(*this, op);
}