summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-27 14:06:22 +0000
committerDan Gohman <gohman@apple.com>2007-06-27 14:06:22 +0000
commitf4e86da3a6851085472bad0ed82de354ac464736 (patch)
treeb71b54196e089719904ee18ec0e93d6a5a2c719b /llvm/lib/CodeGen
parent8d438858c8946d4be168202d304ac7dbeaf8b1b8 (diff)
downloadbcm5719-llvm-f4e86da3a6851085472bad0ed82de354ac464736.tar.gz
bcm5719-llvm-f4e86da3a6851085472bad0ed82de354ac464736.zip
Make the comment for ScalarizeVectorOp mention that it is only for use
with single-element vectors. llvm-svn: 37752
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 5f41452055c..bc94a624f0f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -177,8 +177,9 @@ private:
/// two smaller values.
void SplitVectorOp(SDOperand O, SDOperand &Lo, SDOperand &Hi);
- /// ScalarizeVectorOp - Given an operand of vector type, convert it into the
- /// equivalent operation that returns a scalar value.
+ /// ScalarizeVectorOp - Given an operand of single-element vector type
+ /// (e.g. v1f32), convert it into the equivalent operation that returns a
+ /// scalar (e.g. f32) value.
SDOperand ScalarizeVectorOp(SDOperand O);
/// isShuffleLegal - Return true if a vector shuffle is legal with the
@@ -5602,8 +5603,9 @@ void SelectionDAGLegalize::SplitVectorOp(SDOperand Op, SDOperand &Lo,
}
-/// ScalarizeVectorOp - Given an operand of vector type, convert it into the
-/// equivalent operation that returns a scalar (e.g. F32) value.
+/// ScalarizeVectorOp - Given an operand of single-element vector type
+/// (e.g. v1f32), convert it into the equivalent operation that returns a
+/// scalar (e.g. f32) value.
SDOperand SelectionDAGLegalize::ScalarizeVectorOp(SDOperand Op) {
assert(MVT::isVector(Op.getValueType()) &&
"Bad ScalarizeVectorOp invocation!");
OpenPOWER on IntegriCloud