Skip to content

Commit 698127d

Browse files
committed
[BOLT][NFC] Move isMOVSX64rm32 out of MCPlusBuilder
Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D121669
1 parent c2f62ab commit 698127d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,6 @@ class MCPlusBuilder {
526526
return false;
527527
}
528528

529-
virtual bool isMOVSX64rm32(const MCInst &Inst) const {
530-
llvm_unreachable("not implemented");
531-
return false;
532-
}
533-
534529
virtual bool isLeave(const MCInst &Inst) const {
535530
llvm_unreachable("not implemented");
536531
return false;

bolt/lib/Target/X86/X86MCPlusBuilder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ bool isTEST(unsigned Opcode) {
265265
}
266266
}
267267

268+
bool isMOVSX64rm32(const MCInst &Inst) {
269+
return Inst.getOpcode() == X86::MOVSX64rm32;
270+
}
271+
268272
class X86MCPlusBuilder : public MCPlusBuilder {
269273
public:
270274
X86MCPlusBuilder(const MCInstrAnalysis *Analysis, const MCInstrInfo *Info,
@@ -542,10 +546,6 @@ class X86MCPlusBuilder : public MCPlusBuilder {
542546
return Inst.getOpcode() == X86::LEA64r;
543547
}
544548

545-
bool isMOVSX64rm32(const MCInst &Inst) const override {
546-
return Inst.getOpcode() == X86::MOVSX64rm32;
547-
}
548-
549549
bool isLeave(const MCInst &Inst) const override {
550550
return Inst.getOpcode() == X86::LEAVE || Inst.getOpcode() == X86::LEAVE64;
551551
}

0 commit comments

Comments
 (0)