Lines Matching defs:Shl
916 case Instruction::Shl:
942 Instruction::Shl})
1031 static BinaryOperator *ConvertShiftToMul(Instruction *Shl) {
1032 Constant *MulCst = ConstantInt::get(Shl->getType(), 1);
1033 auto *SA = cast<ConstantInt>(Shl->getOperand(1));
1034 MulCst = ConstantFoldBinaryInstruction(Instruction::Shl, MulCst, SA);
1037 BinaryOperator *Mul = BinaryOperator::CreateMul(Shl->getOperand(0), MulCst,
1038 "", Shl->getIterator());
1039 Shl->setOperand(0, PoisonValue::get(Shl->getType())); // Drop use of op.
1040 Mul->takeName(Shl);
1043 Shl->replaceAllUsesWith(Mul);
1044 Mul->setDebugLoc(Shl->getDebugLoc());
1050 bool NSW = cast<BinaryOperator>(Shl)->hasNoSignedWrap();
1051 bool NUW = cast<BinaryOperator>(Shl)->hasNoUnsignedWrap();
1052 unsigned BitWidth = Shl->getType()->getIntegerBitWidth();
2147 if (I->getOpcode() == Instruction::Shl && isa<ConstantInt>(I->getOperand(1)))