• Home
  • Raw
  • Download

Lines Matching refs:ShiftOp

543   BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0);  in FoldShiftByConstant()  local
544 if (ShiftOp && !ShiftOp->isShift()) in FoldShiftByConstant()
545 ShiftOp = nullptr; in FoldShiftByConstant()
547 if (ShiftOp && isa<ConstantInt>(ShiftOp->getOperand(1))) { in FoldShiftByConstant()
561 ConstantInt *ShiftAmt1C = cast<ConstantInt>(ShiftOp->getOperand(1)); in FoldShiftByConstant()
566 Value *X = ShiftOp->getOperand(0); in FoldShiftByConstant()
571 if (I.getOpcode() == ShiftOp->getOpcode()) { in FoldShiftByConstant()
588 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
600 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
601 ShiftOp->isExact()) { in FoldShiftByConstant()
602 assert(ShiftOp->getOpcode() == Instruction::LShr || in FoldShiftByConstant()
603 ShiftOp->getOpcode() == Instruction::AShr); in FoldShiftByConstant()
614 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
617 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
633 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
634 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant()
651 ShiftOp->getOpcode() != Instruction::Shl && in FoldShiftByConstant()
652 ShiftOp->isExact()) { in FoldShiftByConstant()
654 BinaryOperator *NewShr = BinaryOperator::Create(ShiftOp->getOpcode(), in FoldShiftByConstant()
662 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
664 if (ShiftOp->hasNoUnsignedWrap()) { in FoldShiftByConstant()
681 ShiftOp->getOpcode() == Instruction::Shl) { in FoldShiftByConstant()
682 if (ShiftOp->hasNoSignedWrap()) { in FoldShiftByConstant()