//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
class MachineInstrBuilder {
MachineInstr *MI;
public:
- MachineInstrBuilder(MachineInstr *mi) : MI(mi) {}
+ explicit MachineInstrBuilder(MachineInstr *mi) : MI(mi) {}
/// Allow automatic conversion to the machine instruction we are working on.
///
/// addReg - Add a new virtual register operand...
///
const
- MachineInstrBuilder &addReg(int RegNo, bool isDef = false, bool isImp = false,
- bool isKill = false, bool isDead = false) const {
- MI->addRegOperand(RegNo, isDef, isImp);
+ MachineInstrBuilder &addReg(unsigned RegNo, bool isDef = false,
+ bool isImp = false, bool isKill = false,
+ bool isDead = false, unsigned SubReg = 0) const {
+ MI->addRegOperand(RegNo, isDef, isImp, isKill, isDead, SubReg);
return *this;
}