summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-12 18:04:06 +0000
committerTim Northover <tnorthover@apple.com>2014-05-12 18:04:06 +0000
commitee20caaf82f75497ad66e494aab046512d5b5728 (patch)
tree1f42a4579ed7304531f1d86e0be8888004922ed6 /llvm/lib/Target/Mips
parent0184206ff7e729e8de05acc96fcb5c1eb84291e9 (diff)
downloadbcm5719-llvm-ee20caaf82f75497ad66e494aab046512d5b5728.tar.gz
bcm5719-llvm-ee20caaf82f75497ad66e494aab046512d5b5728.zip
TableGen: use PrintMethods to print more aliases
llvm-svn: 208607
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r--llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.h2
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.td2
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.h b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.h
index 25dbcb02d2f..550a0f10d1b 100644
--- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.h
+++ b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.h
@@ -89,6 +89,8 @@ public:
void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot) override;
bool printAliasInstr(const MCInst *MI, raw_ostream &OS);
+ void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
+ unsigned PrintMethodIdx, raw_ostream &O);
private:
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td
index f00833e1e49..4e375683085 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.td
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.td
@@ -1284,8 +1284,8 @@ def : MipsInstAlias<"beqz $rs,$offset",
(BEQ GPR32Opnd:$rs, ZERO, brtarget:$offset), 0>;
def : MipsInstAlias<"syscall", (SYSCALL 0), 1>;
-def : MipsInstAlias<"break $imm", (BREAK uimm10:$imm, 0), 1>;
def : MipsInstAlias<"break", (BREAK 0, 0), 1>;
+def : MipsInstAlias<"break $imm", (BREAK uimm10:$imm, 0), 1>;
def : MipsInstAlias<"ei", (EI ZERO), 1>;
def : MipsInstAlias<"di", (DI ZERO), 1>;
OpenPOWER on IntegriCloud