Make the comment for ScalarizeVectorOp mention that it is only for use
authorDan Gohman <gohman@apple.com>
Wed, 27 Jun 2007 14:06:22 +0000 (14:06 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 27 Jun 2007 14:06:22 +0000 (14:06 +0000)
with single-element vectors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37752 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 5f41452055c17e6e14002b9a81dbd955a160e399..bc94a624f0f4060cf3cceca64f3988a19b906d23 100644 (file)
@@ -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!");