Skip to content

Commit

Permalink
AVR: Update for getRegisterByName change
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Jan 9, 2020
1 parent 2519554 commit 5fe4679
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AVR/AVRISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2005,11 +2005,11 @@ void AVRTargetLowering::LowerAsmOperandForConstraint(SDValue Op,
return TargetLowering::LowerAsmOperandForConstraint(Op, Constraint, Ops, DAG);
}

Register AVRTargetLowering::getRegisterByName(const char *RegName, EVT VT,
Register AVRTargetLowering::getRegisterByName(const char *RegName, LLT VT,
const MachineFunction &MF) const {
Register Reg;

if (VT == MVT::i8) {
if (VT == LLT::scalar(8)) {
Reg = StringSwitch<unsigned>(RegName)
.Case("r0", AVR::R0).Case("r1", AVR::R1).Case("r2", AVR::R2)
.Case("r3", AVR::R3).Case("r4", AVR::R4).Case("r5", AVR::R5)
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AVR/AVRISelLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class AVRTargetLowering : public TargetLowering {
std::vector<SDValue> &Ops,
SelectionDAG &DAG) const override;

Register getRegisterByName(const char* RegName, EVT VT,
Register getRegisterByName(const char* RegName, LLT VT,
const MachineFunction &MF) const override;

bool shouldSplitFunctionArgumentsAsLittleEndian(const DataLayout &DL)
Expand Down

0 comments on commit 5fe4679

Please sign in to comment.