From: Dan Gohman Date: Thu, 18 Dec 2008 21:51:27 +0000 (+0000) Subject: Print subreg information in MachineInstr::dump. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2ccc83966914593d98af5671ce10a3bf2dcf7513;p=oota-llvm.git Print subreg information in MachineInstr::dump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61213 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5fe10039207..2f026018fa3 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -187,7 +187,11 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const { else OS << "%mreg" << getReg(); } - + + if (getSubReg() != 0) { + OS << ":" << getSubReg(); + } + if (isDef() || isKill() || isDead() || isImplicit() || isEarlyClobber()) { OS << "<"; bool NeedComma = false;