MachineInstr: Change return value of getOpcode() to unsigned.
authorMatthias Braun <matze@braunis.de>
Mon, 18 May 2015 20:27:55 +0000 (20:27 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 18 May 2015 20:27:55 +0000 (20:27 +0000)
commite4603f0dafbf78bcbd3a07d02bf8d7d17f289eae
tree735356ef3e33e3266fd3c0a23d16efbc9c93fc39
parent881547e01baf0d4c3454b024c4fa908138cb052d
MachineInstr: Change return value of getOpcode() to unsigned.

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().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237611 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/llvm/CodeGen/MachineInstr.h
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/PrologEpilogInserter.cpp
lib/CodeGen/ShrinkWrap.cpp
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp
lib/Target/AArch64/AArch64ConditionOptimizer.cpp
lib/Target/AArch64/AArch64FrameLowering.cpp
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/SystemZ/SystemZInstrInfo.cpp
lib/Target/X86/X86CallFrameOptimization.cpp
lib/Target/X86/X86FrameLowering.cpp