[all-commits] [llvm/llvm-project] 7ae084: [BOLT][BTI] Add MCPlusBuilder::addBTItoBBStart

Gergely Bálint via All-commits all-commits at lists.llvm.org
Mon Nov 24 01:21:55 PST 2025


  Branch: refs/heads/users/bgergely0/bolt-add-bti-to-bb
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ae084c66064fe5defa1feee2026cd29c6ffe2b2
      https://github.com/llvm/llvm-project/commit/7ae084c66064fe5defa1feee2026cd29c6ffe2b2
  Author: Gergely Balint <gergely.balint at arm.com>
  Date:   2025-11-24 (Mon, 24 Nov 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::addBTItoBBStart

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 isBTIVariantCoveringCall 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