git subrepo pull --force deps/lightrec
[pcsx_rearmed.git] / deps / lightrec / optimizer.h
index 825042d..f2b1f30 100644 (file)
 struct block;
 struct opcode;
 
-_Bool opcode_reads_register(union code op, u8 reg);
-_Bool opcode_writes_register(union code op, u8 reg);
-_Bool has_delay_slot(union code op);
+__cnst _Bool opcode_reads_register(union code op, u8 reg);
+__cnst _Bool opcode_writes_register(union code op, u8 reg);
+__cnst u64 opcode_write_mask(union code op);
+__cnst _Bool has_delay_slot(union code op);
 _Bool is_delay_slot(const struct opcode *list, unsigned int offset);
-_Bool load_in_delay_slot(union code op);
-_Bool opcode_is_io(union code op);
-_Bool is_unconditional_jump(union code c);
-_Bool is_syscall(union code c);
+__cnst _Bool opcode_is_mfc(union code op);
+__cnst _Bool opcode_is_load(union code op);
+__cnst _Bool opcode_is_io(union code op);
+__cnst _Bool is_unconditional_jump(union code c);
+__cnst _Bool is_syscall(union code c);
 
 _Bool should_emulate(const struct opcode *op);