Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions csrc/host_ir/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ std::ostream& HostIrContainer::print(std::ostream& os) const {
return os;
}

const Scope& HostIrContainer::topLevel() const {
return top_level_;
}

void HostIrContainer::resetTopLevelExprs(std::list<Expr*> exprs) {
top_level_.mutableExprs() = std::move(exprs);
}
Expand Down
7 changes: 6 additions & 1 deletion csrc/host_ir/container.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class HostIrContainer final : public Fusion {
// Print to an output stream
std::ostream& print(std::ostream& os) const;

const Scope& topLevel() const;
const Scope& topLevel() const {
return top_level_;
}
Scope& topLevel() {
return top_level_;
}
const Scope::ExprList& topLevelExprs() const {
return topLevel().exprs();
}
Expand Down
Loading
Loading