Jlm
Loading...
Searching...
No Matches
view.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2010 2011 2012 Helge Bahmann <hcb@chaoticmind.net>
3 * Copyright 2014 2015 Nico Reißmann <nico.reissmann@gmail.com>
4 * See COPYING for terms of redistribution.
5 */
6
7#ifndef JLM_RVSDG_VIEW_HPP
8#define JLM_RVSDG_VIEW_HPP
9
10#include <jlm/rvsdg/graph.hpp>
11
12#include <string>
13#include <unordered_map>
14
15namespace jlm::rvsdg
16{
17
18class Region;
19
28std::string
29view(const rvsdg::Region * region);
30
38std::string
39view(const rvsdg::Region * region, std::unordered_map<const Output *, std::string> & map);
40
46void
47view(const rvsdg::Region * region, FILE * out);
48
54inline void
55view(const Graph & graph, FILE * out)
56{
57 return view(&graph.GetRootRegion(), out);
58}
59
60}
61
62#endif
Region & GetRootRegion() const noexcept
Definition graph.hpp:99
std::string view(const rvsdg::Region *region)
Definition view.cpp:142
NodeType * TryGetOwnerNode(const rvsdg::Input &input) noexcept
Checks if this is an input to a node of specified type.
Definition node.hpp:872