[llvm] [BOLT][binary-analysis] Add initial pac-ret gadget scanner (PR #122304)
Anatoly Trosinenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 05:02:02 PST 2025
================
@@ -550,6 +550,22 @@ class MCPlusBuilder {
return Analysis->isReturn(Inst);
}
+ virtual MCPhysReg getAuthenticatedReg(const MCInst &Inst) const {
+ llvm_unreachable("not implemented");
+ return false;
+ }
+
+ virtual bool isAuthenticationOfReg(const MCInst &Inst,
+ const unsigned RegAuthenticated) const {
----------------
atrosinenko wrote:
```suggestion
MCPhysReg RegAuthenticated) const {
```
[nit] ... and maybe rename RegAuthenticated -> AuthenticatedReg.
https://github.com/llvm/llvm-project/pull/122304
More information about the llvm-commits
mailing list