Change MachineInstrBuilder::addReg() to take a flag instead of a list of
authorBill Wendling <isanbard@gmail.com>
Wed, 13 May 2009 21:33:08 +0000 (21:33 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 13 May 2009 21:33:08 +0000 (21:33 +0000)
commit587daedce2d6c2b2d380b6a5843a6f8b6cfc79e4
treef01732c9f02fd1154ac34176b7a5bbf1f5f0fc44
parent556d0a0d15689531f2b203575a3fe55e00713777
Change MachineInstrBuilder::addReg() to take a flag instead of a list of
booleans. This gives a better indication of what the "addReg()" is
doing. Remembering what all of those booleans mean isn't easy, especially if you
aren't spending all of your time in that code.

I took Jakob's suggestion and made it illegal to pass in "true" for the
flag. This should hopefully prevent any unintended misuse of this (by reverting
to the old way of using addReg()).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71722 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
docs/CodeGenerator.html
include/llvm/CodeGen/MachineInstrBuilder.h
lib/CodeGen/TargetInstrInfoImpl.cpp
lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/ARMRegisterInfo.cpp
lib/Target/Alpha/AlphaInstrInfo.cpp
lib/Target/CellSPU/SPUInstrInfo.cpp
lib/Target/IA64/IA64InstrInfo.cpp
lib/Target/MSP430/MSP430InstrInfo.cpp
lib/Target/MSP430/MSP430RegisterInfo.cpp
lib/Target/Mips/MipsInstrInfo.cpp
lib/Target/PIC16/PIC16InstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/Sparc/SparcInstrInfo.cpp
lib/Target/X86/X86InstrBuilder.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/XCore/XCoreInstrInfo.cpp
lib/Target/XCore/XCoreRegisterInfo.cpp