1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00
codon/compiler/sir/util/format.h
Mark Henderson d010f889dd
Namespace update to codon (#2)
* namespace seq to codon

* using namespace seq -> codon

* seq:: to codon::

Co-authored-by: ‘markhend’ <‘markhend@gmail.com’>
2021-10-04 13:10:59 -04:00

25 lines
482 B
C++

#pragma once
#include <iostream>
#include "sir/sir.h"
namespace codon {
namespace ir {
namespace util {
/// Formats an IR node.
/// @param node the node
/// @return the formatted node
std::string format(const Node *node);
/// Formats an IR node to an IO stream.
/// @param os the output stream
/// @param node the node
/// @return the resulting output stream
std::ostream &format(std::ostream &os, const Node *node);
} // namespace util
} // namespace ir
} // namespace codon