[C++11] Use 'nullptr'.
[oota-llvm.git] / utils / PerfectShuffle / PerfectShuffle.cpp
index dd48180a3d16599b9e67033892d2c5f33911fcd7..f80d88563168f5219dfecd1627012e9d95dcaf66 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#include <iostream>
-#include <iomanip>
-#include <vector>
 #include <cassert>
 #include <cstdlib>
+#include <iomanip>
+#include <iostream>
+#include <vector>
 struct Operator;
 
 // Masks are 4-nibble hex numbers.  Values 0-7 in any nibble means that it takes
@@ -219,10 +219,10 @@ static void EvaluateOps(unsigned short Elt, unsigned short Vals[],
 int main() {
   // Seed the table with accesses to the LHS and RHS.
   ShufTab[0x0123].Cost = 0;
-  ShufTab[0x0123].Op = 0;
+  ShufTab[0x0123].Op = nullptr;
   ShufTab[0x0123].Arg0 = 0x0123;
   ShufTab[0x4567].Cost = 0;
-  ShufTab[0x4567].Op = 0;
+  ShufTab[0x4567].Op = nullptr;
   ShufTab[0x4567].Arg0 = 0x4567;
 
   // Seed the first-level of shuffles, shuffles whose inputs are the input to
@@ -520,7 +520,7 @@ enum {
 };
 
 struct vrev : public Operator {
-  vrev() : Operator(0x3210, "vrev", OP_VREV) {}
+  vrev() : Operator(0x1032, "vrev", OP_VREV) {}
 } the_vrev;
 
 template<unsigned Elt>