27 #ifndef TVM_IR_REPR_H_
28 #define TVM_IR_REPR_H_
30 #include <tvm/ffi/extra/dataclass.h>
41 TVM_DLL
void Dump(
const ffi::ObjectRef& node);
47 TVM_DLL
void Dump(
const ffi::Object* node);
55 inline std::ostream&
operator<<(std::ostream& os,
const ObjectRef& n) {
56 return os << ffi::ReprPrint(Any(n));
60 inline std::ostream&
operator<<(std::ostream& os,
const Any& n) {
61 return os << ffi::ReprPrint(n);
65 template <
typename... V>
66 inline std::ostream&
operator<<(std::ostream& os,
const ffi::Variant<V...>& n) {
67 return os << ffi::ReprPrint(Any(n));
std::ostream & operator<<(std::ostream &os, const ObjectRef &n)
Definition: repr.h:55
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37
void Dump(const ffi::ObjectRef &node)
Dump the node to stderr, used for debug purposes.