]> granicus.if.org Git - clang/commitdiff
improve comments.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Aug 2010 20:08:43 +0000 (20:08 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Aug 2010 20:08:43 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112214 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 05bea0cf85972daa2a71c0258b008b7a029e5471..d2bd33258cd81cf4ec73b16a567a60f404154ef5 100644 (file)
@@ -590,17 +590,14 @@ ABIArgInfo X86_32ABIInfo::classifyArgumentType(QualType Ty) const {
   }
 
   if (const VectorType *VT = Ty->getAs<VectorType>()) {
-    // On Darwin, some vectors are returned in registers.
+    // On Darwin, some vectors are passed in memory, we handle this by passing
+    // it as an i8/i16/i32/i64.
     if (IsDarwinVectorABI) {
       uint64_t Size = getContext().getTypeSize(Ty);
-      
-       // Always return in register if it fits in a general purpose
-      // register, or if it is 64 bits and has a single element.
       if ((Size == 8 || Size == 16 || Size == 32) ||
           (Size == 64 && VT->getNumElements() == 1))
         return ABIArgInfo::getDirect(llvm::IntegerType::get(getVMContext(),
                                                             Size));
-      
       return ABIArgInfo::getIndirect(0);
     }