can rounghly codegen

This commit is contained in:
2024-10-22 12:09:09 +00:00
parent 4c9d010ff7
commit 17816f2bf0
9 changed files with 597 additions and 27 deletions

View File

@ -173,6 +173,6 @@ const static std::vector<std::string> allocating_regs = {"x3", "x4", "x9", "x
"x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17"};
inline bool VRegCheck(const std::string &s) {
if (s[0] != '%') return false;
if (s[0] != '%' && s[0] != '$' && s[0] != '#') return false;
return true;
}