X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Foptimizer.h;h=266665208d230b2d6aafb1cfe5c301347fcb4224;hb=bff52357698a47cef2e6deb91a6c004eb6efe2bc;hp=c829028623a93aee469004bfd24fa7ef7a924e6d;hpb=47e92264b0bcdd851e8b0973cd5036cc6ca8e4ba;p=pcsx_rearmed.git diff --git a/deps/lightrec/optimizer.h b/deps/lightrec/optimizer.h index c8290286..26666520 100644 --- a/deps/lightrec/optimizer.h +++ b/deps/lightrec/optimizer.h @@ -11,13 +11,15 @@ 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); -_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_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); +__cnst _Bool opcode_has_load_delay(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);