Lines Matching refs:getOpcode
108 switch (I->getOpcode()) {
206 switch (I->getOpcode()) {
323 bool isLeftShift = I.getOpcode() == Instruction::Shl;
338 if (I.getOpcode() != Instruction::AShr &&
356 if (BO->getOpcode() == Instruction::Mul && isLeftShift)
382 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName());
396 if (I.getOpcode() == Instruction::Shl)
399 assert(I.getOpcode() == Instruction::LShr && "Unknown logical shift");
418 switch (Op0BO->getOpcode()) {
432 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), YS, V1,
455 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM);
468 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), V1, YS,
490 return BinaryOperator::Create(Op0BO->getOpcode(), XM, YS);
504 switch (Op0BO->getOpcode()) {
524 if (isValid && I.getOpcode() == Instruction::AShr)
528 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);
531 Builder->CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1);
534 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift,
570 if (I.getOpcode() == ShiftOp->getOpcode()) {
575 if (I.getOpcode() != Instruction::AShr)
580 return BinaryOperator::Create(I.getOpcode(), X,
586 if (I.getOpcode() == Instruction::LShr &&
587 ShiftOp->getOpcode() == Instruction::Shl) {
598 if (I.getOpcode() == Instruction::Shl &&
599 ShiftOp->getOpcode() != Instruction::Shl &&
601 assert(ShiftOp->getOpcode() == Instruction::LShr ||
602 ShiftOp->getOpcode() == Instruction::AShr);
612 if (I.getOpcode() == Instruction::LShr &&
613 ShiftOp->getOpcode() == Instruction::Shl) {
631 if (I.getOpcode() == Instruction::AShr &&
632 ShiftOp->getOpcode() == Instruction::Shl) {
649 if (I.getOpcode() == Instruction::Shl &&
650 ShiftOp->getOpcode() != Instruction::Shl &&
653 BinaryOperator *NewShr = BinaryOperator::Create(ShiftOp->getOpcode(),
660 if (I.getOpcode() == Instruction::LShr &&
661 ShiftOp->getOpcode() == Instruction::Shl) {
679 if (I.getOpcode() == Instruction::AShr &&
680 ShiftOp->getOpcode() == Instruction::Shl) {