diff options
author | Anatoly Trosinenko <atrosinenko@accesssoftek.com> | 2024-07-04 17:03:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 17:03:47 +0300 |
commit | b12449fb289708f3d31c107d6e7977044a01da62 (patch) | |
tree | a932bd30665b669a71cf8f0efef0fca87cd313d6 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 0035c2efad8fd7b4dbd01efbc573999f7b91b0d5 (diff) | |
download | llvm-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