Home | History | Annotate | Download | only in IR

Lines Matching full:instruction

260   case Instruction::UDiv:
261 case Instruction::SDiv:
262 case Instruction::FDiv:
263 case Instruction::URem:
264 case Instruction::SRem:
265 case Instruction::FRem:
352 if (CE->getOpcode() == Instruction::Sub) {
356 LHS->getOpcode() == Instruction::PtrToInt &&
357 RHS->getOpcode() == Instruction::PtrToInt &&
1034 // can't be inline because we don't want to #include Instruction.h into
1037 return Instruction::isCast(getOpcode());
1041 return getOpcode() == Instruction::ICmp || getOpcode() == Instruction::FCmp;
1045 if (getOpcode() != Instruction::GetElementPtr) return false;
1070 return getOpcode() == Instruction::ExtractValue ||
1071 getOpcode() == Instruction::InsertValue;
1117 case Instruction::Trunc:
1118 case Instruction::ZExt:
1119 case Instruction::SExt:
1120 case Instruction::FPTrunc:
1121 case Instruction::FPExt:
1122 case Instruction::UIToFP:
1123 case Instruction::SIToFP:
1124 case Instruction::FPToUI:
1125 case Instruction::FPToSI:
1126 case Instruction::PtrToInt:
1127 case Instruction::IntToPtr:
1128 case Instruction::BitCast:
1130 case Instruction::Select:
1132 case Instruction::InsertElement:
1134 case Instruction::ExtractElement:
1136 case Instruction::InsertValue:
1138 case Instruction::ExtractValue:
1140 case Instruction::ShuffleVector:
1142 case Instruction::GetElementPtr:
1145 case Instruction::ICmp:
1146 case Instruction::FCmp:
1429 Instruction::CastOps opc, Constant *C, Type *Ty) {
1444 Instruction::CastOps opc = Instruction::CastOps(oc);
1445 assert(Instruction::isCast(opc) && "opcode out of range");
1452 case Instruction::Trunc: return getTrunc(C, Ty);
1453 case Instruction::ZExt: return getZExt(C, Ty);
1454 case Instruction::SExt: return getSExt(C, Ty);
1455 case Instruction::FPTrunc: return getFPTrunc(C, Ty);
1456 case Instruction::FPExt: return getFPExtend(C, Ty);
1457 case Instruction::UIToFP: return getUIToFP(C, Ty);
1458 case Instruction::SIToFP: return getSIToFP(C, Ty);
1459 case Instruction::FPToUI: return getFPToUI(C, Ty);
1460 case Instruction::FPToSI: return getFPToSI(C, Ty);
1461 case Instruction::PtrToInt: return getPtrToInt(C, Ty);
1462 case Instruction::IntToPtr: return getIntToPtr(C, Ty);
1463 case Instruction::BitCast: return getBitCast(C, Ty);
1501 Instruction::CastOps opcode =
1502 (SrcBits == DstBits ? Instruction::BitCast :
1503 (SrcBits > DstBits ? Instruction::Trunc :
1504 (isSigned ? Instruction::SExt : Instruction::ZExt)));
1515 Instruction::CastOps opcode =
1516 (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt);
1531 return getFoldedCast(Instruction::Trunc, C, Ty);
1545 return getFoldedCast(Instruction::SExt, C, Ty);
1559 return getFoldedCast(Instruction::ZExt, C, Ty);
1571 return getFoldedCast(Instruction::FPTrunc, C, Ty);
1583 return getFoldedCast(Instruction::FPExt, C, Ty);
1594 return getFoldedCast(Instruction::UIToFP, C, Ty);
1605 return getFoldedCast(Instruction::SIToFP, C, Ty);
1616 return getFoldedCast(Instruction::FPToUI, C, Ty);
1627 return getFoldedCast(Instruction::FPToSI, C, Ty);
1639 return getFoldedCast(Instruction::PtrToInt, C, DstTy);
1651 return getFoldedCast(Instruction::IntToPtr, C, DstTy);
1655 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) &&
1662 return getFoldedCast(Instruction::BitCast, C, DstTy);
1668 assert(Opcode >= Instruction::BinaryOpsBegin &&
1669 Opcode < Instruction::BinaryOpsEnd &&
1676 case Instruction::Add:
1677 case Instruction::Sub:
1678 case Instruction::Mul:
1683 case Instruction::FAdd:
1684 case Instruction::FSub:
1685 case Instruction::FMul:
1691 case Instruction::UDiv:
1692 case Instruction::SDiv:
1697 case Instruction::FDiv:
1702 case Instruction::URem:
1703 case Instruction::SRem:
1708 case Instruction::FRem:
1713 case Instruction::And:
1714 case Instruction::Or:
1715 case Instruction::Xor:
1720 case Instruction::Shl:
1721 case Instruction::LShr:
1722 case Instruction::AShr:
1813 ExprMapKeyType Key(Instruction::Select, ArgVec);
1848 const ExprMapKeyType Key(Instruction::GetElementPtr, ArgVec, 0,
1867 const ExprMapKeyType Key(Instruction::ICmp, ArgVec, pred);
1888 const ExprMapKeyType Key(Instruction::FCmp, ArgVec, pred);
1909 const ExprMapKeyType Key(Instruction::ExtractElement, ArgVec);
1929 const ExprMapKeyType Key(Instruction::InsertElement, ArgVec);
1949 const ExprMapKeyType Key(Instruction::ShuffleVector, ArgVec);
1969 const ExprMapKeyType Key(Instruction::InsertValue, ArgVec, 0, 0, Idxs);
1990 const ExprMapKeyType Key(Instruction::ExtractValue, ArgVec, 0, 0, Idxs);
2012 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType()));
2019 return get(Instruction::Add, C1, C2, Flags);
2023 return get(Instruction::FAdd, C1, C2);
2030 return get(Instruction::Sub, C1, C2, Flags);
2034 return get(Instruction::FSub, C1, C2);
2041 return get(Instruction::Mul, C1, C2, Flags);
2045 return get(Instruction::FMul, C1, C2);
2049 return get(Instruction::UDiv, C1, C2,
2054 return get(Instruction::SDiv, C1, C2,
2059 return get(Instruction::FDiv, C1, C2);
2063 return get(Instruction::URem, C1, C2);
2067 return get(Instruction::SRem, C1, C2);
2071 return get(Instruction::FRem, C1, C2);
2075 return get(Instruction::And, C1, C2);
2079 return get(Instruction::Or, C1, C2);
2083 return get(Instruction::Xor, C1, C2);
2090 return get(Instruction::Shl, C1, C2, Flags);
2094 return get(Instruction::LShr, C1, C2,
2099 return get(Instruction::AShr, C1, C2,
2112 case Instruction::Add:
2113 case Instruction::Or:
2114 case Instruction::Xor:
2117 case Instruction::Mul:
2120 case Instruction::And:
2135 case Instruction::Or:
2138 case Instruction::And:
2139 case Instruction::Mul:
2152 return Instruction::getOpcodeName(getOpcode());
2160 : ConstantExpr(DestTy, Instruction::GetElementPtr,
2739 Instruction *ConstantExpr::getAsInstruction() {
2747 case Instruction::Trunc:
2748 case Instruction::ZExt:
2749 case Instruction::SExt:
2750 case Instruction::FPTrunc:
2751 case Instruction::FPExt:
2752 case Instruction::UIToFP:
2753 case Instruction::SIToFP:
2754 case Instruction::FPToUI:
2755 case Instruction::FPToSI:
2756 case Instruction::PtrToInt:
2757 case Instruction::IntToPtr:
2758 case Instruction::BitCast:
2759 return CastInst::Create((Instruction::CastOps)getOpcode(),
2761 case Instruction::Select:
2763 case Instruction::InsertElement:
2765 case Instruction::ExtractElement:
2767 case Instruction::InsertValue:
2769 case Instruction::ExtractValue:
2771 case Instruction::ShuffleVector:
2774 case Instruction::GetElementPtr:
2780 case Instruction::ICmp:
2781 case Instruction::FCmp:
2782 return CmpInst::Create((Instruction::OtherOps)getOpcode(),
2788 BinaryOperator::Create((Instruction::BinaryOps)getOpcode(),