[llvm-commits] [llvm] r116458 - /llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp

Jim Grosbach grosbach at apple.com
Wed Oct 13 17:12:49 PDT 2010


Author: grosbach
Date: Wed Oct 13 19:12:49 2010
New Revision: 116458

URL: http://llvm.org/viewvc/llvm-project?rev=116458&view=rev
Log:
Teach PerfectShuffle to not generate files with embedded tab characters.

Modified:
    llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp

Modified: llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp?rev=116458&r1=116457&r2=116458&view=diff
==============================================================================
--- llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp (original)
+++ llvm/trunk/utils/PerfectShuffle/PerfectShuffle.cpp Wed Oct 13 19:12:49 2010
@@ -15,6 +15,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <iostream>
+#include <iomanip>
 #include <vector>
 #include <cassert>
 #include <cstdlib>
@@ -400,7 +401,7 @@
     // LHS, and 13 bits of RHS = 32 bits.
     unsigned Val = (CostSat << 30) | (OpNum << 26) | (LHS << 13) | RHS;
 
-    std::cout << "  " << Val << "U,\t// ";
+    std::cout << "  " << std::setw(10) << Val << "U, // ";
     PrintMask(i, std::cout);
     std::cout << ": Cost " << ShufTab[i].Cost;
     std::cout << " " << (ShufTab[i].Op ? ShufTab[i].Op->getName() : "copy");





More information about the llvm-commits mailing list