Searched refs:COp (Results 1 – 7 of 7) sorted by relevance
60 Constant *COp = C->getAggregateElement(i); in extractConstantMask() local61 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()64 if (isa<UndefValue>(COp)) { in extractConstantMask()70 auto *Elt = cast<ConstantInt>(COp); in extractConstantMask()80 Constant *COp = C->getAggregateElement(i); in extractConstantMask() local81 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in extractConstantMask()86 if (isa<UndefValue>(COp)) { in extractConstantMask()91 MaskBits.insertBits(cast<ConstantInt>(COp)->getValue(), BitOffset); in extractConstantMask()
1865 static void printConstant(const Constant *COp, raw_ostream &CS) { in printConstant() argument1866 if (isa<UndefValue>(COp)) { in printConstant()1868 } else if (auto *CI = dyn_cast<ConstantInt>(COp)) { in printConstant()1870 } else if (auto *CF = dyn_cast<ConstantFP>(COp)) { in printConstant()
145 Constant *COp = dyn_cast<Constant>(I.getOperand(0)); in visitCastInst() local146 if (!COp) in visitCastInst()147 COp = SimplifiedValues.lookup(I.getOperand(0)); in visitCastInst()154 if (COp && CastInst::castIsValid(I.getOpcode(), COp, I.getType())) { in visitCastInst()156 ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) { in visitCastInst()
898 Constant *COp = dyn_cast<Constant>(Op); in simplifyInstruction() local899 if (!COp) in simplifyInstruction()900 COp = SimplifiedValues.lookup(Op); in simplifyInstruction()901 if (!COp) in simplifyInstruction()903 COps.push_back(COp); in simplifyInstruction()1368 Constant *COp = dyn_cast<Constant>(Op); in visitFNeg() local1369 if (!COp) in visitFNeg()1370 COp = SimplifiedValues.lookup(Op); in visitFNeg()1373 COp ? COp : Op, cast<FPMathOperator>(I).getFastMathFlags(), DL); in visitFNeg()
3780 else if (Constant *COp = dyn_cast<Constant>(I->getOperand(i))) in SimplifyWithOpReplaced() local3781 ConstOps.push_back(COp); in SimplifyWithOpReplaced()
494 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift() local495 if (!COp) in simplifyX86varShift()501 APInt ShiftVal = COp->getValue(); in simplifyX86varShift()939 Constant *COp = V->getAggregateElement(I); in simplifyX86pshufb() local940 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in simplifyX86pshufb()943 if (isa<UndefValue>(COp)) { in simplifyX86pshufb()948 int8_t Index = cast<ConstantInt>(COp)->getValue().getZExtValue(); in simplifyX86pshufb()986 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermilvar() local987 if (!COp || (!isa<UndefValue>(COp) && !isa<ConstantInt>(COp))) in simplifyX86vpermilvar()990 if (isa<UndefValue>(COp)) { in simplifyX86vpermilvar()[all …]
632 unsigned COp = cmpInstr->getOpcode(); in runOnMachineFunction() local633 if ((COp == Hexagon::C2_cmpeq || COp == Hexagon::C4_cmpneq) && in runOnMachineFunction()