Lines Matching defs:Shl
918 case Instruction::Shl:
944 Instruction::Shl})
1033 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) {
1034 Constant *MulCst = ConstantInt::get(Shl->getType(), 1);
1035 auto *SA = cast<ConstantInt>(Shl->getOperand(1));
1036 MulCst = ConstantFoldBinaryInstruction(Instruction::Shl, MulCst, SA);
1039 BinaryOperator *Mul = BinaryOperator::CreateMul(Shl->getOperand(0), MulCst,
1040 "", Shl->getIterator());
1041 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op.
1042 Mul->takeName(Shl);
1045 Shl->replaceAllUsesWith(Mul);
1046 Mul->setDebugLoc(Shl->getDebugLoc());
1052 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap();
1053 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap();
1054 unsigned BitWidth = Shl->getType()->getIntegerBitWidth();
2149 if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1)))