[all-commits] [llvm/llvm-project] f7c531: [BOLT][BTI] Refactor: move applyBTIFixup under MCP...
Gergely Bálint via All-commits
all-commits at lists.llvm.org
Wed Feb 11 23:29:38 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7c5316468ec077157c70252c5bf97ab50b3dbd8
https://github.com/llvm/llvm-project/commit/f7c5316468ec077157c70252c5bf97ab50b3dbd8
Author: Gergely Bálint <gergely.balint at arm.com>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M bolt/include/bolt/Core/MCPlusBuilder.h
M bolt/lib/Passes/Hugify.cpp
M bolt/lib/Passes/LongJmp.cpp
M bolt/lib/Passes/PatchEntries.cpp
M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
A bolt/test/AArch64/bti-inline-dbg.s
A bolt/test/AArch64/bti-inline.s
A bolt/test/AArch64/bti-long-jmp-ignored.s
A bolt/test/AArch64/bti-long-jmp.s
A bolt/test/AArch64/bti-note-unused.test
A bolt/test/AArch64/bti-patch-entries.s
R bolt/test/AArch64/inline-bti-dbg.s
R bolt/test/AArch64/inline-bti.s
R bolt/test/AArch64/long-jmp-bti-ignored.s
R bolt/test/AArch64/long-jmp-bti.s
R bolt/test/AArch64/no-bti-note.test
A bolt/test/runtime/AArch64/bti-hugify.c
A bolt/test/runtime/AArch64/bti-instrumentation-ind-call.c
A bolt/test/runtime/AArch64/bti-long-jmp-plt.c
R bolt/test/runtime/AArch64/instrumentation-ind-call-bti.c
R bolt/test/runtime/AArch64/long-jmp-bti-plt.c
Log Message:
-----------
[BOLT][BTI] Refactor: move applyBTIFixup under MCPlusBuilder (#177164)
This patch moves the applyBTIFixup from LongJmp pass to MCPlusBuilder.
This refactor allows applyBTIFixup to be called from other passes
inserting indirect branches, such as:
- Hugify,
- PatchEntries.
As different passes have different information about their targets (e.g.
target BasicBlock, target Symbol, target Function), specialized versions
are created (applyBTIFixupToSymbol, applyBTIFixupToTarget), and each
calls
applyBTIFixupCommon, which implements the original logic from before.
Names of related lit tests are updated to have the "bti" prefix.
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