From f9fc5457577cb71579cac107e5d493621b8ca371 Mon Sep 17 00:00:00 2001 From: Toma Tabacu Date: Tue, 28 Apr 2015 13:16:06 +0000 Subject: [PATCH] [mips] [IAS] Rename the createShiftOr function to createLShiftOri. NFC. Summary: The new name is more accurate with regard to the functionality. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8968 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235984 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index f0829a67871..4d57c79c678 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1633,7 +1633,7 @@ bool MipsAsmParser::expandInstruction(MCInst &Inst, SMLoc IDLoc, namespace { template -void createShiftOr(MCOperand Operand, unsigned RegNo, SMLoc IDLoc, +void createLShiftOri(MCOperand Operand, unsigned RegNo, SMLoc IDLoc, SmallVectorImpl &Instructions) { MCInst tmpInst; if (PerformShift) { @@ -1654,9 +1654,9 @@ void createShiftOr(MCOperand Operand, unsigned RegNo, SMLoc IDLoc, } template -void createShiftOr(int64_t Value, unsigned RegNo, SMLoc IDLoc, +void createLShiftOri(int64_t Value, unsigned RegNo, SMLoc IDLoc, SmallVectorImpl &Instructions) { - createShiftOr( + createLShiftOri( MCOperand::CreateImm(((Value & (0xffffLL << Shift)) >> Shift)), RegNo, IDLoc, Instructions); } @@ -1741,7 +1741,7 @@ bool MipsAsmParser::expandLoadImm(MCInst &Inst, SMLoc IDLoc, tmpInst.addOperand(MCOperand::CreateReg(Reg)); tmpInst.addOperand(MCOperand::CreateImm((ImmValue & 0xffff0000) >> 16)); Instructions.push_back(tmpInst); - createShiftOr<0, false>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<0, false>(ImmValue, Reg, IDLoc, Instructions); } else if ((ImmValue & (0xffffLL << 48)) == 0) { if (!isGP64bit()) { Error(IDLoc, "instruction requires a 64-bit architecture"); @@ -1766,8 +1766,8 @@ bool MipsAsmParser::expandLoadImm(MCInst &Inst, SMLoc IDLoc, tmpInst.addOperand( MCOperand::CreateImm((ImmValue & (0xffffLL << 32)) >> 32)); Instructions.push_back(tmpInst); - createShiftOr<16, false>(ImmValue, Reg, IDLoc, Instructions); - createShiftOr<0, true>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<16, false>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<0, true>(ImmValue, Reg, IDLoc, Instructions); } else { if (!isGP64bit()) { Error(IDLoc, "instruction requires a 64-bit architecture"); @@ -1793,9 +1793,9 @@ bool MipsAsmParser::expandLoadImm(MCInst &Inst, SMLoc IDLoc, tmpInst.addOperand( MCOperand::CreateImm((ImmValue & (0xffffLL << 48)) >> 48)); Instructions.push_back(tmpInst); - createShiftOr<32, false>(ImmValue, Reg, IDLoc, Instructions); - createShiftOr<16, true>(ImmValue, Reg, IDLoc, Instructions); - createShiftOr<0, true>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<32, false>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<16, true>(ImmValue, Reg, IDLoc, Instructions); + createLShiftOri<0, true>(ImmValue, Reg, IDLoc, Instructions); } return false; } @@ -1934,11 +1934,11 @@ MipsAsmParser::expandLoadAddressSym(MCInst &Inst, SMLoc IDLoc, tmpInst.addOperand(MCOperand::CreateExpr(HighestExpr)); Instructions.push_back(tmpInst); - createShiftOr(MCOperand::CreateExpr(HigherExpr), RegNo, SMLoc(), + createLShiftOri(MCOperand::CreateExpr(HigherExpr), RegNo, SMLoc(), Instructions); - createShiftOr(MCOperand::CreateExpr(HiExpr), RegNo, SMLoc(), + createLShiftOri(MCOperand::CreateExpr(HiExpr), RegNo, SMLoc(), Instructions); - createShiftOr(MCOperand::CreateExpr(LoExpr), RegNo, SMLoc(), + createLShiftOri(MCOperand::CreateExpr(LoExpr), RegNo, SMLoc(), Instructions); } else { // Otherwise, expand to: @@ -1949,7 +1949,7 @@ MipsAsmParser::expandLoadAddressSym(MCInst &Inst, SMLoc IDLoc, tmpInst.addOperand(MCOperand::CreateExpr(HiExpr)); Instructions.push_back(tmpInst); - createShiftOr(MCOperand::CreateExpr(LoExpr), RegNo, SMLoc(), + createLShiftOri(MCOperand::CreateExpr(LoExpr), RegNo, SMLoc(), Instructions); } }