summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcFrameLowering.cpp
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-06-04 18:33:25 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-06-04 18:33:25 +0000
commit1e06bcbd633175d75d13aaa5695ca0633ba86068 (patch)
treefb4121a5ec1d625b217caebab939ea6676026124 /lib/Target/Sparc/SparcFrameLowering.cpp
parent5a57dbef33ec2d336de2a2e9da4e477a4969fe57 (diff)
downloadllvm-1e06bcbd633175d75d13aaa5695ca0633ba86068.tar.gz
llvm-1e06bcbd633175d75d13aaa5695ca0633ba86068.tar.bz2
llvm-1e06bcbd633175d75d13aaa5695ca0633ba86068.tar.xz
Sparc: No functionality change. Cleanup whitespaces, comment formatting etc.,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcFrameLowering.cpp')
-rw-r--r--lib/Target/Sparc/SparcFrameLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcFrameLowering.cpp b/lib/Target/Sparc/SparcFrameLowering.cpp
index 09e21edcce..7e91bc38d4 100644
--- a/lib/Target/Sparc/SparcFrameLowering.cpp
+++ b/lib/Target/Sparc/SparcFrameLowering.cpp
@@ -130,7 +130,7 @@ void SparcFrameLowering::emitEpilogue(MachineFunction &MF,
}
bool SparcFrameLowering::hasReservedCallFrame(const MachineFunction &MF) const {
- //Reserve call frame if there are no variable sized objects on the stack
+ // Reserve call frame if there are no variable sized objects on the stack.
return !MF.getFrameInfo()->hasVarSizedObjects();
}
@@ -174,17 +174,17 @@ void SparcFrameLowering::remapRegsForLeafProc(MachineFunction &MF) const {
MachineRegisterInfo &MRI = MF.getRegInfo();
- //remap %i[0-7] to %o[0-7]
+ // Remap %i[0-7] to %o[0-7].
for (unsigned reg = SP::I0; reg <= SP::I7; ++reg) {
if (!MRI.isPhysRegUsed(reg))
continue;
unsigned mapped_reg = (reg - SP::I0 + SP::O0);
assert(!MRI.isPhysRegUsed(mapped_reg));
- //Replace I register with O register
+ // Replace I register with O register.
MRI.replaceRegWith(reg, mapped_reg);
- //mark the reg unused.
+ // Mark the reg unused.
MRI.setPhysRegUnused(reg);
}