Searched refs:COp (Results 1 – 8 of 8) sorted by relevance
62 Constant *COp = C->getAggregateElement(i); in DecodePSHUFBMask() local63 if (!COp) { in DecodePSHUFBMask()66 } else if (isa<UndefValue>(COp)) { in DecodePSHUFBMask()71 APInt APElt = cast<ConstantInt>(COp)->getValue(); in DecodePSHUFBMask()139 Constant *COp = C->getAggregateElement(i * Factor); in DecodeVPERMILPMask() local140 if (!COp) { in DecodeVPERMILPMask()143 } else if (isa<UndefValue>(COp)) { in DecodeVPERMILPMask()148 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMILPMask()191 Constant *COp = C->getAggregateElement(i * Factor); in DecodeVPERMIL2PMask() local192 if (!COp) { in DecodeVPERMIL2PMask()[all …]
1635 Constant *COp = CV->getOperand(i); in EmitInstruction() local1636 if (isa<UndefValue>(COp)) { in EmitInstruction()1638 } else if (auto *CI = dyn_cast<ConstantInt>(COp)) { in EmitInstruction()1652 } else if (auto *CF = dyn_cast<ConstantFP>(COp)) { in EmitInstruction()
141 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst() local142 if (!COp) in visitCastInst()143 COp = SimplifiedValues.lookup(I.getOperand(0)); in visitCastInst()150 if (COp && CastInst::castIsValid(I.getOpcode(), COp, I.getType())) { in visitCastInst()152 ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) { in visitCastInst()
432 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitBitCast() local433 if (!COp) in visitBitCast()434 COp = SimplifiedValues.lookup(I.getOperand(0)); in visitBitCast()435 if (COp) in visitBitCast()436 if (Constant *C = ConstantExpr::getBitCast(COp, I.getType())) { in visitBitCast()460 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitPtrToInt() local461 if (!COp) in visitPtrToInt()462 COp = SimplifiedValues.lookup(I.getOperand(0)); in visitPtrToInt()463 if (COp) in visitPtrToInt()464 if (Constant *C = ConstantExpr::getPtrToInt(COp, I.getType())) { in visitPtrToInt()[all …]
3351 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced() local3352 ConstOps.push_back(COp); in SimplifyWithOpReplaced()
383 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift() local384 if (!COp) in simplifyX86varShift()390 APInt ShiftVal = COp->getValue(); in simplifyX86varShift()460 auto *COp = C->getAggregateElement(I); in simplifyX86movmsk() local461 if (!COp) in simplifyX86movmsk()463 if (isa<UndefValue>(COp)) in simplifyX86movmsk()466 auto *CInt = dyn_cast<ConstantInt>(COp); in simplifyX86movmsk()467 auto *CFp = dyn_cast<ConstantFP>(COp); in simplifyX86movmsk()744 Constant *COp = V->getAggregateElement(I); in simplifyX86pshufb() local745 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in simplifyX86pshufb()[all …]
1449 const SCEVConstant *COp = nullptr; in updateNonLoopCtrlIncr() local1451 COp = dyn_cast<SCEVConstant>(SE->getSCEV(LoopInc->getOperand(1))); in updateNonLoopCtrlIncr()1453 COp = dyn_cast<SCEVConstant>(SE->getSCEV(LoopInc->getOperand(0))); in updateNonLoopCtrlIncr()1454 if (!COp) in updateNonLoopCtrlIncr()1455 COp = dyn_cast<SCEVConstant>(SE->getSCEV(LoopInc->getOperand(1))); in updateNonLoopCtrlIncr()1458 assert(COp && "Didn't find constant operand of LoopInc!\n"); in updateNonLoopCtrlIncr()1460 const APInt &AInt = COp->getValue()->getValue(); in updateNonLoopCtrlIncr()1461 const SCEV *ScaleSCEV = SE->getConstant(COp->getType(), Scale); in updateNonLoopCtrlIncr()1463 NewInc = SE->getNegativeSCEV(COp); in updateNonLoopCtrlIncr()1467 NewInc = SE->getUDivExpr(COp, ScaleSCEV); in updateNonLoopCtrlIncr()
320 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced() local321 ConstOps.push_back(COp); in SimplifyWithOpReplaced()