[all-commits] [llvm/llvm-project] edfe9f: [AArch64] Generalize the instruction size checking...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue Oct 1 02:14:36 PDT 2024


  Branch: refs/heads/users/atrosinenko/aarch64-asm-printer-check-inst-size
  Home:   https://github.com/llvm/llvm-project
  Commit: edfe9f9988ab9ca7a58f5e29f0ed002b188dd0e5
      https://github.com/llvm/llvm-project/commit/edfe9f9988ab9ca7a58f5e29f0ed002b188dd0e5
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td

  Log Message:
  -----------
  [AArch64] Generalize the instruction size checking in AsmPrinter

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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list