Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions csrc/ir/printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ void IrPrinter::handle(const hir::HostIrContainer* host_ir_container) {
os() << host_unit->toString(indent_size_);
}
os() << "} // %HostIrContainer\n\n";

// Print the definitions of the indices that are used in the host_ir_container
os() << "Index definitions:\n";
indent_size_++;
for (auto val : host_ir_container->vals()) {
if (val->isScalar() && val->definition() != nullptr &&
val->dtype() == DataType::Index) {
os() << val->definition()->toString(indent_size_);
}
}
indent_size_--;
os() << "\n";
}

void IrTransformPrinter::handle(const Fusion* f) {
Expand Down