x64: refactor REX-specific encoding machinery to its own module

In preparation for adding new encoding modes to the x64 backend (e.g. VEX,
EVEX), this change moves all of the current instruction encoding functions to
`encodings::rex`. This refactor does not change any logic.
This commit is contained in:
Andrew Brown
2021-04-01 17:13:28 -07:00
parent 074b83eee4
commit d32501c554
4 changed files with 460 additions and 438 deletions

View File

@@ -22,6 +22,7 @@ pub mod args;
mod emit;
#[cfg(test)]
mod emit_tests;
pub(crate) mod encoding;
pub mod regs;
pub mod unwind;