Lines Matching refs:Instruction

199   SmallVector<Instruction *, 64> InstructionList;
493 case bitc::CAST_TRUNC : return Instruction::Trunc;
494 case bitc::CAST_ZEXT : return Instruction::ZExt;
495 case bitc::CAST_SEXT : return Instruction::SExt;
496 case bitc::CAST_FPTOUI : return Instruction::FPToUI;
497 case bitc::CAST_FPTOSI : return Instruction::FPToSI;
498 case bitc::CAST_UITOFP : return Instruction::UIToFP;
499 case bitc::CAST_SITOFP : return Instruction::SIToFP;
500 case bitc::CAST_FPTRUNC : return Instruction::FPTrunc;
501 case bitc::CAST_FPEXT : return Instruction::FPExt;
502 case bitc::CAST_PTRTOINT: return Instruction::PtrToInt;
503 case bitc::CAST_INTTOPTR: return Instruction::IntToPtr;
504 case bitc::CAST_BITCAST : return Instruction::BitCast;
511 return Ty->isFPOrFPVectorTy() ? Instruction::FAdd : Instruction::Add;
513 return Ty->isFPOrFPVectorTy() ? Instruction::FSub : Instruction::Sub;
515 return Ty->isFPOrFPVectorTy() ? Instruction::FMul : Instruction::Mul;
516 case bitc::BINOP_UDIV: return Instruction::UDiv;
518 return Ty->isFPOrFPVectorTy() ? Instruction::FDiv : Instruction::SDiv;
519 case bitc::BINOP_UREM: return Instruction::URem;
521 return Ty->isFPOrFPVectorTy() ? Instruction::FRem : Instruction::SRem;
522 case bitc::BINOP_SHL: return Instruction::Shl;
523 case bitc::BINOP_LSHR: return Instruction::LShr;
524 case bitc::BINOP_ASHR: return Instruction::AShr;
525 case bitc::BINOP_AND: return Instruction::And;
526 case bitc::BINOP_OR: return Instruction::Or;
527 case bitc::BINOP_XOR: return Instruction::Xor;
543 : ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) {
550 cast<ConstantExpr>(V)->getOpcode() == Instruction::UserOp1;
1547 assert(CE.getOpcode() == Instruction::BitCast ||
1548 CE.getOpcode() == Instruction::GetElementPtr ||
1549 CE.getOpcode() == Instruction::AddrSpaceCast);
1550 if (CE.getOpcode() == Instruction::GetElementPtr)
1773 if (Opc == Instruction::Add ||
1774 Opc == Instruction::Sub ||
1775 Opc == Instruction::Mul ||
1776 Opc == Instruction::Shl) {
1781 } else if (Opc == Instruction::SDiv ||
1782 Opc == Instruction::UDiv ||
1783 Opc == Instruction::LShr ||
1784 Opc == Instruction::AShr) {
2513 Instruction *Inst = InstructionList[Record[0]];
2592 Instruction *I = nullptr;
2660 I = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
2663 if (Opc == Instruction::Add ||
2664 Opc == Instruction::Sub ||
2665 Opc == Instruction::Mul ||
2666 Opc == Instruction::Shl) {
2671 } else if (Opc == Instruction::SDiv ||
2672 Opc == Instruction::UDiv ||
2673 Opc == Instruction::LShr ||
2674 Opc == Instruction::AShr) {
2692 I = CastInst::Create((Instruction::CastOps)Opc, Op, ResTy);