Lines Matching defs:V
30 static Constant *getNegativeIsTrueBoolVec(Constant *V, const DataLayout &DL) {
31 VectorType *IntTy = VectorType::getInteger(cast<VectorType>(V->getType()));
32 V = ConstantExpr::getBitCast(V, IntTy);
33 V = ConstantFoldCompareInstOperands(CmpInst::ICMP_SGT,
34 Constant::getNullValue(IntTy), V, DL);
35 assert(V && "Vector must be foldable");
36 return V;
695 auto Not = [&](auto V) -> std::pair<Value *, uint8_t> {
696 return {Builder.CreateNot(V.first), ~V.second};
1986 auto *V = dyn_cast<Constant>(II.getArgOperand(1));
1987 if (!V)
2001 Constant *COp = V->getAggregateElement(I);
2031 auto *V = dyn_cast<Constant>(II.getArgOperand(1));
2032 if (!V)
2046 Constant *COp = V->getAggregateElement(I);
2078 auto *V = dyn_cast<Constant>(II.getArgOperand(1));
2079 if (!V)
2091 Constant *COp = V->getAggregateElement(I);
2112 auto *V = dyn_cast<Constant>(II.getArgOperand(1));
2113 if (!V)
2126 Constant *COp = V->getAggregateElement(I);
2323 if (Value *V = SimplifyDemandedVectorEltsLow(Arg, VWidth, 1)) {
2324 return IC.replaceOperand(II, 0, V);
2336 if (Value *V = simplifyX86movmsk(II, IC.Builder)) {
2337 return IC.replaceInstUsesWith(II, V);
2375 if (Value *V = SimplifyDemandedVectorEltsLow(Arg0, VWidth, 1)) {
2376 IC.replaceOperand(II, 0, V);
2379 if (Value *V = SimplifyDemandedVectorEltsLow(Arg1, VWidth, 1)) {
2380 IC.replaceOperand(II, 1, V);
2404 Value *V;
2410 V = IC.Builder.CreateFAdd(Arg0, Arg1);
2414 V = IC.Builder.CreateFSub(Arg0, Arg1);
2418 V = IC.Builder.CreateFMul(Arg0, Arg1);
2422 V = IC.Builder.CreateFDiv(Arg0, Arg1);
2426 return IC.replaceInstUsesWith(II, V);
2449 Value *V;
2455 V = IC.Builder.CreateFAdd(LHS, RHS);
2459 V = IC.Builder.CreateFSub(LHS, RHS);
2463 V = IC.Builder.CreateFMul(LHS, RHS);
2467 V = IC.Builder.CreateFDiv(LHS, RHS);
2485 V = IC.Builder.CreateSelect(Mask, V, Passthru);
2489 V = IC.Builder.CreateInsertElement(Arg0, V, (uint64_t)0);
2491 return IC.replaceInstUsesWith(II, V);
2526 if (Value *V = simplifyX86immShift(II, IC.Builder)) {
2527 return IC.replaceInstUsesWith(II, V);
2558 if (Value *V = simplifyX86immShift(II, IC.Builder)) {
2559 return IC.replaceInstUsesWith(II, V);
2569 if (Value *V = SimplifyDemandedVectorEltsLow(Arg1, VWidth, VWidth / 2)) {
2570 return IC.replaceOperand(II, 1, V);
2602 if (Value *V = simplifyX86varShift(II, IC.Builder)) {
2603 return IC.replaceInstUsesWith(II, V);
2613 if (Value *V = simplifyX86pack(II, IC.Builder, true)) {
2614 return IC.replaceInstUsesWith(II, V);
2624 if (Value *V = simplifyX86pack(II, IC.Builder, false)) {
2625 return IC.replaceInstUsesWith(II, V);
2632 if (Value *V = simplifyX86pmulh(II, IC.Builder, true, false)) {
2633 return IC.replaceInstUsesWith(II, V);
2640 if (Value *V = simplifyX86pmulh(II, IC.Builder, false, false)) {
2641 return IC.replaceInstUsesWith(II, V);
2648 if (Value *V = simplifyX86pmulh(II, IC.Builder, true, true)) {
2649 return IC.replaceInstUsesWith(II, V);
2656 if (Value *V = simplifyX86pmadd(II, IC.Builder, true)) {
2657 return IC.replaceInstUsesWith(II, V);
2664 if (Value *V = simplifyX86pmadd(II, IC.Builder, false)) {
2665 return IC.replaceInstUsesWith(II, V);
2684 if (Value *V =
2686 IC.replaceOperand(II, 0, V);
2693 if (Value *V =
2695 IC.replaceOperand(II, 1, V);
2714 if (Value *V = simplifyX86insertps(II, IC.Builder)) {
2715 return IC.replaceInstUsesWith(II, V);
2738 if (Value *V = simplifyX86extrq(II, Op0, CILength, CIIndex, IC.Builder)) {
2739 return IC.replaceInstUsesWith(II, V);
2745 if (Value *V = SimplifyDemandedVectorEltsLow(Op0, VWidth0, 1)) {
2746 IC.replaceOperand(II, 0, V);
2749 if (Value *V = SimplifyDemandedVectorEltsLow(Op1, VWidth1, 2)) {
2750 IC.replaceOperand(II, 1, V);
2772 if (Value *V = simplifyX86extrq(II, Op0, CILength, CIIndex, IC.Builder)) {
2773 return IC.replaceInstUsesWith(II, V);
2778 if (Value *V = SimplifyDemandedVectorEltsLow(Op0, VWidth, 1)) {
2779 return IC.replaceOperand(II, 0, V);
2804 if (Value *V = simplifyX86insertq(II, Op0, Op1, Len, Idx, IC.Builder)) {
2805 return IC.replaceInstUsesWith(II, V);
2811 if (Value *V = SimplifyDemandedVectorEltsLow(Op0, VWidth, 1)) {
2812 return IC.replaceOperand(II, 0, V);
2837 if (Value *V = simplifyX86insertq(II, Op0, Op1, Len, Idx, IC.Builder)) {
2838 return IC.replaceInstUsesWith(II, V);
2845 if (Value *V = SimplifyDemandedVectorEltsLow(Op0, VWidth0, 1)) {
2846 IC.replaceOperand(II, 0, V);
2849 if (Value *V = SimplifyDemandedVectorEltsLow(Op1, VWidth1, 1)) {
2850 IC.replaceOperand(II, 1, V);
2952 if (Value *V = simplifyX86pshufb(II, IC.Builder)) {
2953 return IC.replaceInstUsesWith(II, V);
2963 if (Value *V = simplifyX86vpermilvar(II, IC.Builder)) {
2964 return IC.replaceInstUsesWith(II, V);
2982 if (Value *V = simplifyX86vpermv(II, IC.Builder)) {
2983 return IC.replaceInstUsesWith(II, V);
3005 if (Value *V = simplifyX86vpermv3(II, IC.Builder)) {
3006 return IC.replaceInstUsesWith(II, V);
3039 if (Value *V = simplifyX86addcarry(II, IC.Builder)) {
3040 return IC.replaceInstUsesWith(II, V);
3050 if (Value *V = simplifyTernarylogic(II, IC.Builder)) {
3051 return IC.replaceInstUsesWith(II, V);