[all-commits] [llvm/llvm-project] fbc121: [BOLT][BTI] Add MCPlusBuilder::insertBTI (#167329)

Gergely Bálint via All-commits all-commits at lists.llvm.org
Thu Dec 11 02:58:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbc121ce1ee398176bdfeb482b0549e03a2bb5c8
      https://github.com/llvm/llvm-project/commit/fbc121ce1ee398176bdfeb482b0549e03a2bb5c8
  Author: Gergely Bálint <gergely.balint at arm.com>
  Date:   2025-12-11 (Thu, 11 Dec 2025)

  Changed paths:
    M bolt/include/bolt/Core/MCPlusBuilder.h
    M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
    M bolt/unittests/Core/MCPlusBuilder.cpp

  Log Message:
  -----------
  [BOLT][BTI] Add MCPlusBuilder::insertBTI (#167329)

This function contains most of the logic for BTI:
- it takes the BasicBlock and the instruction used to jump to it.
- Then it checks if the first non-pseudo instruction is a sufficient
landing pad for the used call.
- if not, it generates the correct BTI instruction.

Also introduce the isCallCoveredByBTI helper to simplify the logic.



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