riscv(jit): add IR assembler

This commit is contained in:
gns 2024-03-06 09:32:53 +08:00 committed by gns
parent 160c28acb5
commit 83f3cc575e
2 changed files with 2041 additions and 0 deletions

View File

@ -227,6 +227,8 @@ static Reg rset_pickrandom(ASMState *as, RegSet rs)
#include "lj_emit_ppc.h" #include "lj_emit_ppc.h"
#elif LJ_TARGET_MIPS #elif LJ_TARGET_MIPS
#include "lj_emit_mips.h" #include "lj_emit_mips.h"
#elif LJ_TARGET_RISCV64
#include "lj_emit_riscv.h"
#else #else
#error "Missing instruction emitter for target CPU" #error "Missing instruction emitter for target CPU"
#endif #endif
@ -1708,6 +1710,8 @@ static void asm_loop(ASMState *as)
#include "lj_asm_ppc.h" #include "lj_asm_ppc.h"
#elif LJ_TARGET_MIPS #elif LJ_TARGET_MIPS
#include "lj_asm_mips.h" #include "lj_asm_mips.h"
#elif LJ_TARGET_RISCV64
#include "lj_asm_riscv64.h"
#else #else
#error "Missing assembler for target CPU" #error "Missing assembler for target CPU"
#endif #endif

2037
src/lj_asm_riscv64.h Normal file

File diff suppressed because it is too large Load Diff