aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-28 18:19:43 +0000
committerDan Gohman <gohman@apple.com>2008-04-28 18:19:43 +0000
commit10a6b7ab656ddce1acfa1216311d2564edaecbe3 (patch)
treefbaa4e4505160956fdc8606dee0dc930260bb256 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent0fe00906c8f1d1e455c780b221299a1349cc7094 (diff)
Add a comment to CreateRegForValue that clarifies the handling of
aggregate types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 46b0cf576f..93de652398 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -369,6 +369,10 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
/// CreateRegForValue - Allocate the appropriate number of virtual registers of
/// the correctly promoted or expanded types. Assign these registers
/// consecutive vreg numbers and return the first assigned number.
+///
+/// In the case that the given value has struct or array type, this function
+/// will assign registers for each member or element.
+///
unsigned FunctionLoweringInfo::CreateRegForValue(const Value *V) {
SmallVector<MVT::ValueType, 4> ValueVTs;
ComputeValueVTs(TLI, V->getType(), ValueVTs);