Lines Matching refs:getOpcode
106 switch (I->getOpcode()) {
201 switch (I->getOpcode()) {
314 bool isLeftShift = I.getOpcode() == Instruction::Shl;
319 if (I.getOpcode() != Instruction::AShr &&
337 if (I.getOpcode() != Instruction::AShr)
346 if (BO->getOpcode() == Instruction::Mul && isLeftShift)
372 Value *NSh = Builder->CreateBinOp(I.getOpcode(), TrOp, ShAmt,I.getName());
386 if (I.getOpcode() == Instruction::Shl)
389 assert(I.getOpcode() == Instruction::LShr && "Unknown logical shift");
408 switch (Op0BO->getOpcode()) {
422 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), YS, V1,
441 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM);
454 Value *X = Builder->CreateBinOp(Op0BO->getOpcode(), V1, YS,
472 return BinaryOperator::Create(Op0BO->getOpcode(), XM, YS);
486 switch (Op0BO->getOpcode()) {
506 if (isValid && I.getOpcode() == Instruction::AShr)
510 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);
513 Builder->CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1);
516 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift,
552 if (I.getOpcode() == ShiftOp->getOpcode()) {
557 if (I.getOpcode() != Instruction::AShr)
562 return BinaryOperator::Create(I.getOpcode(), X,
568 if (I.getOpcode() == Instruction::LShr &&
569 ShiftOp->getOpcode() == Instruction::Shl) {
580 if (I.getOpcode() == Instruction::Shl &&
581 ShiftOp->getOpcode() != Instruction::Shl &&
583 assert(ShiftOp->getOpcode() == Instruction::LShr ||
584 ShiftOp->getOpcode() == Instruction::AShr);
594 if (I.getOpcode() == Instruction::LShr &&
595 ShiftOp->getOpcode() == Instruction::Shl) {
613 if (I.getOpcode() == Instruction::AShr &&
614 ShiftOp->getOpcode() == Instruction::Shl) {
631 if (I.getOpcode() == Instruction::Shl &&
632 ShiftOp->getOpcode() != Instruction::Shl &&
635 BinaryOperator *NewShr = BinaryOperator::Create(ShiftOp->getOpcode(),
642 if (I.getOpcode() == Instruction::LShr &&
643 ShiftOp->getOpcode() == Instruction::Shl) {
661 if (I.getOpcode() == Instruction::AShr &&
662 ShiftOp->getOpcode() == Instruction::Shl) {