Skip to content

Commit 61efea9

Browse files
committed
[BOLT] Recognize paciasp and autiasp instructions
1 parent 4d8eb00 commit 61efea9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,13 @@ class MCPlusBuilder {
648648
llvm_unreachable("not implemented");
649649
return false;
650650
}
651+
virtual bool isPAuth(MCInst &Inst) const {
652+
llvm_unreachable("not implemented");
653+
}
654+
655+
virtual bool isPSign(MCInst &Inst) const {
656+
llvm_unreachable("not implemented");
657+
}
651658

652659
virtual bool isCleanRegXOR(const MCInst &Inst) const {
653660
llvm_unreachable("not implemented");

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
316316
}
317317
return false;
318318
}
319+
bool isPAuth(MCInst &Inst) const override {
320+
return Inst.getOpcode() == AArch64::AUTIASP;
321+
}
322+
bool isPSign(MCInst &Inst) const override {
323+
return Inst.getOpcode() == AArch64::PACIASP;
324+
}
319325

320326
bool isRegToRegMove(const MCInst &Inst, MCPhysReg &From,
321327
MCPhysReg &To) const override {

0 commit comments

Comments
 (0)