[backend]添加了一些工具函数

This commit is contained in:
Lixuanwang
2025-08-04 16:32:54 +08:00
parent 64ba25a77e
commit 0179c13cf4
5 changed files with 36 additions and 26 deletions

View File

@@ -1699,4 +1699,8 @@ void RISCv64ISel::print_dag(const std::vector<std::unique_ptr<DAGNode>>& dag, co
std::cerr << "======================================\n\n";
}
unsigned int RISCv64ISel::getVRegCounter() const {
return vreg_counter;
}
} // namespace sysy