[backend] introduced riscv64

This commit is contained in:
Lixuanwang
2025-06-25 13:07:02 +08:00
parent 4c9c25aadc
commit c8587a6d0b
5 changed files with 1448 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ using namespace antlr4;
#include "SysYIRGenerator.h"
#include "SysYIRPrinter.h"
#include "SysYIROptPre.h"
#include "RISCv32Backend.h"
#include "RISCv64Backend.h"
// #include "LLVMIRGenerator.h"
using namespace sysy;
@@ -88,7 +88,7 @@ int main(int argc, char **argv) {
// generate assembly
auto module = generator.get();
sysy::RISCv32CodeGen codegen(module);
sysy::RISCv64CodeGen codegen(module);
string asmCode = codegen.code_gen();
if (argStopAfter == "asm") {
cout << asmCode << endl;