diff options
author | Tim Northover <tnorthover@apple.com> | 2014-05-15 13:36:01 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-05-15 13:36:01 +0000 |
commit | 60091cfeb9c827187d8877aaef600bdea3d5c17d (patch) | |
tree | ce1f51bd66ff4da9ddcbf333e88beaf00b94dfc1 /llvm/utils/TableGen/CodeGenInstruction.h | |
parent | cb7f9c40f872a2d786be318674a403b5ce5fa695 (diff) | |
download | bcm5719-llvm-60091cfeb9c827187d8877aaef600bdea3d5c17d.tar.gz bcm5719-llvm-60091cfeb9c827187d8877aaef600bdea3d5c17d.zip |
TableGen: use correct MIOperand when printing aliases
Previously, TableGen assumed that every aliased operand consumed precisely 1
MachineInstr slot (this was reasonable because until a couple of days ago,
nothing more complicated was eligible for printing).
This allows a couple more ARM64 aliases to print so we can remove the special
code.
On the X86 side, I've gone for explicit AT&T size specifiers as the default, so
turned off a few of the aliases that would have just started printing.
llvm-svn: 208880
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 818d0e1d36d..f143875131b 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -324,6 +324,8 @@ namespace llvm { Record *getRecord() const { assert(isRecord()); return R; } int64_t getImm() const { assert(isImm()); return Imm; } Record *getRegister() const { assert(isReg()); return R; } + + unsigned getMINumOperands() const; }; /// ResultOperands - The decoded operands for the result instruction. |