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, MachineInstrBuilder buildAdd(LLT Ty, unsigned Res, unsigned Op0,
unsigned Op1); 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 /// \p CarryIn
/// ///
/// G_UADDE sets \p Res to \p Op0 + \p Op1 + \p CarryIn (truncated to the bit /// 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. /// \pre setBasicBlock or setMI must have been called.
/// ///
/// \return The newly created instruction. /// \return The newly created instruction.
MachineInstrBuilder buildUAdde(LLT Ty, unsigned Res, unsigned CarryOut, MachineInstrBuilder buildUAdde(ArrayRef<LLT> Tys, unsigned Res,
unsigned Op0, unsigned Op1, unsigned CarryIn); unsigned CarryOut, unsigned Op0, unsigned Op1,
unsigned CarryIn);
/// Build and insert \p Res<def> = G_ANYEXT \p { DstTy, SrcTy } \p Op0 /// 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); .addMemOperand(&MMO);
} }
MachineInstrBuilder MachineIRBuilder::buildUAdde(LLT Ty, unsigned Res, MachineInstrBuilder
unsigned CarryOut, MachineIRBuilder::buildUAdde(ArrayRef<LLT> Tys, unsigned Res, unsigned CarryOut,
unsigned Op0, unsigned Op1, unsigned Op0, unsigned Op1, unsigned CarryIn) {
unsigned CarryIn) { return buildInstr(TargetOpcode::G_UADDE, Tys)
return buildInstr(TargetOpcode::G_UADDE, Ty)
.addDef(Res) .addDef(Res)
.addDef(CarryOut) .addDef(CarryOut)
.addUse(Op0) .addUse(Op0)