[all-commits] [llvm/llvm-project] a7a53e: [BOLT][BTI] Add MCPlusBuilder::addBTItoBBStart
Gergely Bálint via All-commits
all-commits at lists.llvm.org
Thu Nov 20 03:58:39 PST 2025
Branch: refs/heads/users/bgergely0/bolt-add-bti-to-bb
Home: https://github.com/llvm/llvm-project
Commit: a7a53e6d8ba084b149b4c0e0d6cd5d5f77d3cf15
https://github.com/llvm/llvm-project/commit/a7a53e6d8ba084b149b4c0e0d6cd5d5f77d3cf15
Author: Gergely Balint <gergely.balint at arm.com>
Date: 2025-11-19 (Wed, 19 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