mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Rename IsPowerOf2 to isPowerOf2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -586,7 +586,7 @@ CreateMulConstInstruction(const TargetMachine &target, Function* F,
|
|||||||
destVal);
|
destVal);
|
||||||
mvec.push_back(M);
|
mvec.push_back(M);
|
||||||
}
|
}
|
||||||
else if (IsPowerOf2(C, pow))
|
else if (isPowerOf2(C, pow))
|
||||||
{
|
{
|
||||||
unsigned int opSize = target.DataLayout.getTypeSize(resultType);
|
unsigned int opSize = target.DataLayout.getTypeSize(resultType);
|
||||||
MachineOpCode opCode = (opSize <= 32)? SLL : SLLX;
|
MachineOpCode opCode = (opSize <= 32)? SLL : SLLX;
|
||||||
@@ -757,7 +757,7 @@ CreateDivConstInstruction(TargetMachine &target,
|
|||||||
minstr1->SetMachineOperandReg(1,
|
minstr1->SetMachineOperandReg(1,
|
||||||
target.getRegInfo().getZeroRegNum());
|
target.getRegInfo().getZeroRegNum());
|
||||||
}
|
}
|
||||||
else if (IsPowerOf2(C, pow))
|
else if (isPowerOf2(C, pow))
|
||||||
{
|
{
|
||||||
MachineOpCode opCode= ((resultType->isSigned())
|
MachineOpCode opCode= ((resultType->isSigned())
|
||||||
? (resultType==Type::LongTy)? SRAX : SRA
|
? (resultType==Type::LongTy)? SRAX : SRA
|
||||||
|
Reference in New Issue
Block a user