This is an archive of the discontinued LLVM Phabricator instance.

MachineInstr: Change return value of getOpcode() to unsigned. NFC
ClosedPublic

Authored by MatzeB on May 18 2015, 12:17 PM.

Details

Reviewers
pete
Summary

This was previously returning int. However there are no negative opcode
numbers and more importantly this was needlessly different from
MCInstrDesc::getOpcode() (which even is the value returned here) and
SDValue::getOpcode()/SDNode::getOpcode().

The result was different parts of the code have been already using unsigned for opcode numbers while others used int.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 25995.May 18 2015, 12:17 PM
MatzeB retitled this revision from to MachineInstr: Change return value of getOpcode() to unsigned. NFC.
MatzeB updated this object.
MatzeB edited the test plan for this revision. (Show Details)
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: Unknown Object (MLST).
pete accepted this revision.May 18 2015, 1:05 PM
pete added a reviewer: pete.
pete added a subscriber: pete.

Makes sense. LGTM.

This revision is now accepted and ready to land.May 18 2015, 1:05 PM
MatzeB closed this revision.May 18 2015, 1:33 PM

This landed in revision 237611.