summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-07-01 18:50:55 +0000
committerBill Wendling <isanbard@gmail.com>2009-07-01 18:50:55 +0000
commit512ff7353e9bc7af72921b7713a5c0bb53a889d6 (patch)
treea586cc4cfbd06296df0338b5ae10e89fb46f301e /llvm/lib/Target/CellSPU
parent246676db7d4ee790e57180179ef756955071336e (diff)
downloadbcm5719-llvm-512ff7353e9bc7af72921b7713a5c0bb53a889d6.tar.gz
bcm5719-llvm-512ff7353e9bc7af72921b7713a5c0bb53a889d6.zip
Update comments to make it clear that the function alignment is the Log2 of the
bytes and not bytes. llvm-svn: 74624
Diffstat (limited to 'llvm/lib/Target/CellSPU')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelLowering.cpp2
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelLowering.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
index f16d7d88959..faaccc3aa64 100644
--- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -481,7 +481,7 @@ SPUTargetLowering::getTargetNodeName(unsigned Opcode) const
return ((i != node_names.end()) ? i->second : 0);
}
-/// getFunctionAlignment - Return the function alignment.
+/// getFunctionAlignment - Return the Log2 alignment of this function.
unsigned SPUTargetLowering::getFunctionAlignment(const Function *) const {
return 3;
}
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.h b/llvm/lib/Target/CellSPU/SPUISelLowering.h
index 09c3d78a555..06b30da0e24 100644
--- a/llvm/lib/Target/CellSPU/SPUISelLowering.h
+++ b/llvm/lib/Target/CellSPU/SPUISelLowering.h
@@ -149,7 +149,7 @@ namespace llvm {
virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
- /// getFunctionAlignment - Return the function alignment.
+ /// getFunctionAlignment - Return the Log2 alignment of this function.
virtual unsigned getFunctionAlignment(const Function *F) const;
};
}
OpenPOWER on IntegriCloud