aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9InstrSelection.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-19 21:20:19 +0000
committerChris Lattner <sabre@nondot.org>2002-05-19 21:20:19 +0000
commit36346c7a1e21b268e5e68cd07e5761055269851c (patch)
treea3308298b108ae8c392f61e035dad464afc149ca /lib/Target/SparcV9/SparcV9InstrSelection.cpp
parent54ea60c69e69b8e5a464a1d7688ceec5c68bacd5 (diff)
downloadexternal_llvm-36346c7a1e21b268e5e68cd07e5761055269851c.zip
external_llvm-36346c7a1e21b268e5e68cd07e5761055269851c.tar.gz
external_llvm-36346c7a1e21b268e5e68cd07e5761055269851c.tar.bz2
Rename IsPowerOf2 to isPowerOf2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelection.cpp')
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 668ac4a..44f4ea5 100644
--- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
@@ -586,7 +586,7 @@ CreateMulConstInstruction(const TargetMachine &target, Function* F,
destVal);
mvec.push_back(M);
}
- else if (IsPowerOf2(C, pow))
+ else if (isPowerOf2(C, pow))
{
unsigned int opSize = target.DataLayout.getTypeSize(resultType);
MachineOpCode opCode = (opSize <= 32)? SLL : SLLX;
@@ -757,7 +757,7 @@ CreateDivConstInstruction(TargetMachine &target,
minstr1->SetMachineOperandReg(1,
target.getRegInfo().getZeroRegNum());
}
- else if (IsPowerOf2(C, pow))
+ else if (isPowerOf2(C, pow))
{
MachineOpCode opCode= ((resultType->isSigned())
? (resultType==Type::LongTy)? SRAX : SRA