aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorAnatoly Trosinenko <atrosinenko@accesssoftek.com>2024-07-04 17:03:47 +0300
committerGitHub <noreply@github.com>2024-07-04 17:03:47 +0300
commitb12449fb289708f3d31c107d6e7977044a01da62 (patch)
treea932bd30665b669a71cf8f0efef0fca87cd313d6 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent0035c2efad8fd7b4dbd01efbc573999f7b91b0d5 (diff)
downloadllvm-b12449fb289708f3d31c107d6e7977044a01da62.zip
llvm-b12449fb289708f3d31c107d6e7977044a01da62.tar.gz
llvm-b12449fb289708f3d31c107d6e7977044a01da62.tar.bz2
[CodeGen] Refactor and document ThunkInserter (#97468)
In preparation for supporting BLRA* instructions in SLS Hardening on AArch64, refactor ThunkInserter class. The main intention of this commit is to document the way to merge the BLR-rewriting logic of the AArch64SLSHardening pass into the SLSBLRThunkInserter class. This makes it possible to only call createThunkFunction for the thunks that are actually referenced. Ultimately, it will prevent SLSBLRThunkInserter from unconditionally generating about 1800 thunk functions corresponding to every possible combination of operands passed to BLRAA or BLRAB instructions. This particular commit does not affect the generated machine code and consists of the following changes: * document the existing behavior of ThunkInserter class * introduce ThunkInserterPass template class to get rid of mostly identical boilerplate code in ARM, AArch64 and X86 implementations * move the InsertedThunks parameter from `mayUseThunk` to `insertThunks` method
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
0 files changed, 0 insertions, 0 deletions