[all-commits] [llvm/llvm-project] 9761e5: [BOLT] Gadget scanner: factor out utility code

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue Mar 18 12:18:35 PDT 2025


  Branch: refs/heads/users/atrosinenko/bolt-gs-factor-out-utility-code
  Home:   https://github.com/llvm/llvm-project
  Commit: 9761e5d53a0dc620889ca63d5e90d0110afbda7a
      https://github.com/llvm/llvm-project/commit/9761e5d53a0dc620889ca63d5e90d0110afbda7a
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M bolt/lib/Passes/NonPacProtectedRetAnalysis.cpp

  Log Message:
  -----------
  [BOLT] Gadget scanner: factor out utility code

Factor out the code for mapping from physical registers to consecutive
array indexes.

Introduce helper functions to print instructions and registers to
prevent mixing of analysis logic and implementation details of debug
output.

Removed the debug printing from `Gadget::generateReport`, as it doesn't
seem to add important information to what was already printed in the
report itself.



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