GlobalISel: add missing type to G_UADDE instructions

llvm-svn: 279762
This commit is contained in:
Tim Northover 2016-08-25 17:37:44 +00:00
parent d8a6d7ce91
commit 6c43b850b7
2 changed files with 8 additions and 8 deletions

View File

@ -144,7 +144,7 @@ public:
MachineInstrBuilder buildAdd(LLT Ty, unsigned Res, unsigned Op0,
unsigned Op1);
/// Build and insert \p Res<def>, \p CarryOut = G_UADDE \p Ty \p Op0, \p Op1,
/// Build and insert \p Res<def>, \p CarryOut = G_UADDE \p Tys \p Op0, \p Op1,
/// \p CarryIn
///
/// G_UADDE sets \p Res to \p Op0 + \p Op1 + \p CarryIn (truncated to the bit
@ -154,8 +154,9 @@ public:
/// \pre setBasicBlock or setMI must have been called.
///
/// \return The newly created instruction.
MachineInstrBuilder buildUAdde(LLT Ty, unsigned Res, unsigned CarryOut,
unsigned Op0, unsigned Op1, unsigned CarryIn);
MachineInstrBuilder buildUAdde(ArrayRef<LLT> Tys, unsigned Res,
unsigned CarryOut, unsigned Op0, unsigned Op1,
unsigned CarryIn);
/// Build and insert \p Res<def> = G_ANYEXT \p { DstTy, SrcTy } \p Op0
///

View File

@ -141,11 +141,10 @@ MachineInstrBuilder MachineIRBuilder::buildStore(LLT VTy, LLT PTy,
.addMemOperand(&MMO);
}
MachineInstrBuilder MachineIRBuilder::buildUAdde(LLT Ty, unsigned Res,
unsigned CarryOut,
unsigned Op0, unsigned Op1,
unsigned CarryIn) {
return buildInstr(TargetOpcode::G_UADDE, Ty)
MachineInstrBuilder
MachineIRBuilder::buildUAdde(ArrayRef<LLT> Tys, unsigned Res, unsigned CarryOut,
unsigned Op0, unsigned Op1, unsigned CarryIn) {
return buildInstr(TargetOpcode::G_UADDE, Tys)
.addDef(Res)
.addDef(CarryOut)
.addUse(Op0)