reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
63 assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!"); 65 unsigned BitSize = V->getType()->getScalarSizeInBits(); 72 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 72 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 74 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 74 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 76 V = Builder.CreateOr(Tmp1, Tmp2, "bswap.i16"); 80 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), 80 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), 82 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 82 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 84 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 84 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 86 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), 86 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), 89 ConstantInt::get(V->getType(), 0xFF0000), 92 ConstantInt::get(V->getType(), 0xFF00), 96 V = Builder.CreateOr(Tmp4, Tmp2, "bswap.i32"); 100 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), 100 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), 102 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), 102 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), 104 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), 104 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), 106 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 106 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), 108 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 108 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), 110 Value* Tmp3 = Builder.CreateLShr(V, 111 ConstantInt::get(V->getType(), 24), 113 Value* Tmp2 = Builder.CreateLShr(V, 114 ConstantInt::get(V->getType(), 40), 116 Value* Tmp1 = Builder.CreateLShr(V, 117 ConstantInt::get(V->getType(), 56), 120 ConstantInt::get(V->getType(), 124 ConstantInt::get(V->getType(), 128 ConstantInt::get(V->getType(), 132 ConstantInt::get(V->getType(), 136 ConstantInt::get(V->getType(), 140 ConstantInt::get(V->getType(), 149 V = Builder.CreateOr(Tmp8, Tmp4, "bswap.i64"); 153 return V;