File tree Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -511,11 +511,6 @@ class MCPlusBuilder {
511
511
return 0 ;
512
512
}
513
513
514
- virtual bool isADD64rr (const MCInst &Inst) const {
515
- llvm_unreachable (" not implemented" );
516
- return false ;
517
- }
518
-
519
514
virtual bool isSUB (const MCInst &Inst) const {
520
515
llvm_unreachable (" not implemented" );
521
516
return false ;
Original file line number Diff line number Diff line change @@ -1103,8 +1103,6 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
1103
1103
1104
1104
bool isMoveMem2Reg (const MCInst &Inst) const override { return false ; }
1105
1105
1106
- bool isADD64rr (const MCInst &Inst) const override { return false ; }
1107
-
1108
1106
bool isLeave (const MCInst &Inst) const override { return false ; }
1109
1107
1110
1108
bool isPop (const MCInst &Inst) const override { return false ; }
Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ bool isMOVSX64rm32(const MCInst &Inst) {
68
68
return Inst.getOpcode () == X86::MOVSX64rm32;
69
69
}
70
70
71
+ bool isADD64rr (const MCInst &Inst) { return Inst.getOpcode () == X86::ADD64rr; }
72
+
73
+ bool isADDri (const MCInst &Inst) {
74
+ return Inst.getOpcode () == X86::ADD64ri32 ||
75
+ Inst.getOpcode () == X86::ADD64ri8;
76
+ }
77
+
71
78
class X86MCPlusBuilder : public MCPlusBuilder {
72
79
public:
73
80
X86MCPlusBuilder (const MCInstrAnalysis *Analysis, const MCInstrInfo *Info,
@@ -292,19 +299,10 @@ class X86MCPlusBuilder : public MCPlusBuilder {
292
299
return 0 ;
293
300
}
294
301
295
- bool isADD64rr (const MCInst &Inst) const override {
296
- return Inst.getOpcode () == X86::ADD64rr;
297
- }
298
-
299
302
bool isSUB (const MCInst &Inst) const override {
300
303
return X86::isSUB (Inst.getOpcode ());
301
304
}
302
305
303
- bool isADDri (const MCInst &Inst) const {
304
- return Inst.getOpcode () == X86::ADD64ri32 ||
305
- Inst.getOpcode () == X86::ADD64ri8;
306
- }
307
-
308
306
bool isLEA64r (const MCInst &Inst) const override {
309
307
return Inst.getOpcode () == X86::LEA64r;
310
308
}
You can’t perform that action at this time.
0 commit comments