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