Skip to content

Commit

Permalink
[AArch64] Generalize the instruction size checking in AsmPrinter (llv…
Browse files Browse the repository at this point in the history
…m#110108)

Most of PAuth-related code counts the instructions being inserted and
asserts that no more bytes are emitted than the size returned by the
getInstSizeInBytes(MI) method. This check seems useful not only for
PAuth-related instructions. Also, reimplementing it globally in
AArch64AsmPrinter makes it more robust and simplifies further
refactoring of PAuth-related code.
  • Loading branch information
atrosinenko authored and Sterling-Augustine committed Oct 3, 2024
1 parent b6b2fae commit 9c86093
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 78 deletions.
Loading

0 comments on commit 9c86093

Please sign in to comment.