Minor comment updates

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-28 21:43:42 +00:00
parent f0136b376e
commit 9ed63ee0fc

View File

@ -9,7 +9,7 @@
//
// we can now use code like this:
//
// M = BuildMI(X86::ADDrr8).addReg(argVal1).addReg(argVal2);
// M = BuildMI(X86::ADDrr8, 2).addReg(argVal1).addReg(argVal2);
//
//===----------------------------------------------------------------------===//
@ -27,23 +27,30 @@ struct MachineInstrBuilder {
///
operator MachineInstr*() const { return MI; }
/// addReg - Add a new register operand...
/// addReg - Add a new virtual register operand...
///
MachineInstrBuilder &addReg(int RegNo) {
MI->addRegOperand(RegNo);
return *this;
}
/// addReg - Add an LLVM value that is to be used as a register...x
///
MachineInstrBuilder &addReg(Value *V, bool isDef = false, bool isDNU = false){
MI->addRegOperand(V, isDef, isDNU);
return *this;
}
/// addPCDisp - Add an LLVM value to be treated as a PC relative
/// displacement...
///
MachineInstrBuilder &addPCDisp(Value *V) {
MI->addPCDispOperand(V);
return *this;
}
/// addMReg - Add a machine register operand...
///
MachineInstrBuilder &addMReg(int Reg, bool isDef=false) {
MI->addMachineRegOperand(Reg, isDef);
return *this;