[llvm-commits] [llvm] r47810 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp

Chris Lattner sabre at nondot.org
Sat Mar 1 19:41:23 PST 2008


Author: lattner
Date: Sat Mar  1 21:41:23 2008
New Revision: 47810

URL: http://llvm.org/viewvc/llvm-project?rev=47810&view=rev
Log:
respect isSigned for vector types, fixing sdiv of vectors etc.

Modified:
    llvm/trunk/lib/Target/CBackend/CBackend.cpp

Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=47810&r1=47809&r2=47810&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Sat Mar  1 21:41:23 2008
@@ -398,7 +398,7 @@
 
 std::ostream &
 CWriter::printSimpleType(std::ostream &Out, const Type *Ty, bool isSigned,
-                            const std::string &NameSoFar) {
+                         const std::string &NameSoFar) {
   assert((Ty->isPrimitiveType() || Ty->isInteger() || isa<VectorType>(Ty)) && 
          "Invalid type for printSimpleType");
   switch (Ty->getTypeID()) {
@@ -428,7 +428,7 @@
       
   case Type::VectorTyID: {
     const VectorType *VTy = cast<VectorType>(Ty);
-    return printType(Out, VTy->getElementType(), false,
+    return printSimpleType(Out, VTy->getElementType(), isSigned,
                      " __attribute__((vector_size(" +
                      utostr(TD->getABITypeSize(VTy)) + " ))) " + NameSoFar);
   }





More information about the llvm-commits mailing list