[llvm] [AArch64][PAC] Support BLRA* instructions in SLS Hardening pass (PR #97605)
Anatoly Trosinenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 03:56:04 PDT 2024
================
@@ -68,6 +156,57 @@ struct SLSHardeningInserter : ThunkInserter<SLSHardeningInserter, ThunksSet> {
} // end anonymous namespace
+const ThunkKind ThunkKind::BR = {ThunkBR, "", false, false, AArch64::BR};
+const ThunkKind ThunkKind::BRAA = {ThunkBRAA, "aa_", true, true, AArch64::BRAA};
+const ThunkKind ThunkKind::BRAB = {ThunkBRAB, "ab_", true, true, AArch64::BRAB};
+const ThunkKind ThunkKind::BRAAZ = {ThunkBRAAZ, "aaz_", false, true,
+ AArch64::BRAAZ};
+const ThunkKind ThunkKind::BRABZ = {ThunkBRABZ, "abz_", false, true,
+ AArch64::BRABZ};
----------------
atrosinenko wrote:
Since with the second boolean field initializers are too long (and clang-formatted) anyway, maybe it is even better to just use the `..., /*arg=*/true, ...` style.
https://github.com/llvm/llvm-project/pull/97605
More information about the llvm-commits
mailing list