Skip to content

Commit 2d06889

Browse files
committed
[EraVM][MC] Remove dead code here and there
1 parent b4606e5 commit 2d06889

File tree

5 files changed

+0
-21
lines changed

5 files changed

+0
-21
lines changed

llvm/lib/Target/EraVM/EraVMInstrFormats.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,6 @@ class IForm <EraVMOpcode opcode,
247247
let UseLogicalOperandMappings = true;
248248
}
249249

250-
class INop<dag ins, string asmstr, list<dag> pattern>
251-
: IForm <OpNoOp, (outs), ins, asmstr, pattern > {
252-
}
253-
254250
class IJump<EraVMOpcode opcode,
255251
SrcMode src,
256252
dag outs, dag ins, string asmstr, list<dag> pattern>

llvm/lib/Target/EraVM/EraVMInstrInfo.td

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,6 @@ def large_imm : Operand<i256>, IntImmLeaf<i256, [{
130130
return !Imm.abs().isIntN(16);
131131
}]> {}
132132

133-
134-
def first_op : Operand<i256>, IntImmLeaf<i256, [{
135-
return Imm.getZExtValue() < 2;
136-
}]> {
137-
let PrintMethod = "printFirstOperand";
138-
}
139-
140133
// This operand class represents those jump targets described
141134
// as imm_in operand in the spec.
142135
def JumpTargetOperand : AsmOperandClass {

llvm/lib/Target/EraVM/EraVMOpcodes.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ def EraVMOpcodesList : GenericTable {
135135
let PrimaryKey = [ "BaseOpcode" ];
136136
let PrimaryKeyName = "lookupEraVMOpcodeByValue";
137137
}
138-
def lookupEraVMOpcodeByName : SearchIndex {
139-
let Table = EraVMOpcodesList;
140-
let Key = [ "Name" ];
141-
}
142138

143139
def OpInvalid : EraVMOpcode<"<invalid>", 0, DirectEncoding>;
144140
def OpNoOp : EraVMOpcode<"nop", 1, NopEncoding>;

llvm/lib/Target/EraVM/MCTargetDesc/EraVMInstPrinter.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ void EraVMInstPrinter::printInst(const MCInst *MI, uint64_t Address,
5656
printAnnotation(O, Annot);
5757
}
5858

59-
void EraVMInstPrinter::printPCRelImmOperand(const MCInst *MI, unsigned OpNo,
60-
raw_ostream &O) {
61-
llvm_unreachable("Not implemented yet!");
62-
}
63-
6459
void EraVMInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
6560
raw_ostream &O, const char *Modifier) {
6661
assert((Modifier == nullptr || Modifier[0] == 0) && "No modifiers supported");

llvm/lib/Target/EraVM/MCTargetDesc/EraVMInstPrinter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class EraVMInstPrinter : public MCInstPrinter {
3737
private:
3838
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O,
3939
const char *Modifier = nullptr);
40-
void printPCRelImmOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
4140
void printCCOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
4241
void printMemOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
4342
template <bool IsInput>

0 commit comments

Comments
 (0)