Skip to content

Commit

Permalink
[X86][MC][NFC] Refine code in X86MCCodeEmitter.cpp about opcode prefix
Browse files Browse the repository at this point in the history
1. Make code clearer by separating the logic of setting bits from the
   logic of how a prefix is encoded
2. Extract common code into functions to avoid code duplication
3. Return a enum rather a boolean to ehance scalability and uniform
   the behavior of functions

Reviewed By: pengfei, craig.topper

Differential Revision: https://reviews.llvm.org/D143471
  • Loading branch information
KanRobert committed Feb 10, 2023
1 parent 32b3f13 commit a22e8c9
Showing 1 changed file with 467 additions and 455 deletions.

0 comments on commit a22e8c9

Please sign in to comment.