Home
last modified time | relevance | path

Searched refs:COp (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/Target/X86/
DX86ShuffleDecodeConstantPool.cpp62 Constant *COp = C->getAggregateElement(i); in DecodePSHUFBMask() local
63 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() local
140 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() local
192 if (!COp) { in DecodeVPERMIL2PMask()
[all …]
DX86MCInstLower.cpp1635 Constant *COp = CV->getOperand(i); in EmitInstruction() local
1636 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()
/external/llvm/lib/Analysis/
DLoopUnrollAnalyzer.cpp141 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst() local
142 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()
DInlineCost.cpp432 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitBitCast() local
433 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() local
461 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 …]
DInstructionSimplify.cpp3351 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced() local
3352 ConstOps.push_back(COp); in SimplifyWithOpReplaced()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp383 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift() local
384 if (!COp) in simplifyX86varShift()
390 APInt ShiftVal = COp->getValue(); in simplifyX86varShift()
460 auto *COp = C->getAggregateElement(I); in simplifyX86movmsk() local
461 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() local
745 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in simplifyX86pshufb()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopRerollPass.cpp1449 const SCEVConstant *COp = nullptr; in updateNonLoopCtrlIncr() local
1451 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()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp320 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced() local
321 ConstOps.push_back(COp); in SimplifyWithOpReplaced()