================ @@ -36,38 +32,43 @@ using namespace llvm; #define AARCH64_SLS_HARDENING_NAME "AArch64 sls hardening pass" +static const char SLSBLRNamePrefix[] = "__llvm_slsblr_thunk_"; + namespace { -class AArch64SLSHardening : public MachineFunctionPass { -public: - const TargetInstrInfo *TII; - const TargetRegisterInfo *TRI; - const AArch64Subtarget *ST; +// Set of inserted thunks: bitmask with bits corresponding to +// indexes in SLSBLRThunks array. +typedef uint32_t ThunksSet; - static char ID; - - AArch64SLSHardening() : MachineFunctionPass(ID) { - initializeAArch64SLSHardeningPass(*PassRegistry::getPassRegistry()); +struct SLSBLRThunkInserter : ThunkInserter<SLSBLRThunkInserter, ThunksSet> { ---------------- atrosinenko wrote:
Renamed it to `SLSHardeningInserter`, so the `AArch64SLSHardening` name is kept for the pass itself. https://github.com/llvm/llvm-project/pull/97472 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits