Lines Matching defs:ConstOps
1589 SmallVector<Constant *> ConstOps;
1592 ConstOps.push_back(C);
1595 if (isConstExprSupported(BC) && ConstOps.size() == Ops.size()) {
1598 C = UpgradeBitCastExpr(BC->Opcode, ConstOps[0], BC->getType());
1600 C = ConstantExpr::getCast(BC->Opcode, ConstOps[0], BC->getType());
1602 C = ConstantExpr::get(BC->Opcode, ConstOps[0], ConstOps[1], BC->Flags);
1606 auto *Key = dyn_cast<ConstantInt>(ConstOps[1]);
1610 auto *Disc = dyn_cast<ConstantInt>(ConstOps[2]);
1614 C = ConstantPtrAuth::get(ConstOps[0], Key, Disc, ConstOps[3]);
1618 auto *GV = dyn_cast<GlobalValue>(ConstOps[0]);
1625 auto *GV = dyn_cast<GlobalValue>(ConstOps[0]);
1632 Function *Fn = dyn_cast<Function>(ConstOps[0]);
1668 if (ST->getNumElements() != ConstOps.size())
1671 for (const auto [Ty, Op] : zip(ST->elements(), ConstOps))
1675 C = ConstantStruct::get(ST, ConstOps);
1680 if (AT->getNumElements() != ConstOps.size())
1683 for (Constant *Op : ConstOps)
1687 C = ConstantArray::get(AT, ConstOps);
1692 if (VT->getNumElements() != ConstOps.size())
1695 for (Constant *Op : ConstOps)
1699 C = ConstantVector::get(ConstOps);
1704 BC->SrcElemTy, ConstOps[0], ArrayRef(ConstOps).drop_front(),
1708 C = ConstantExpr::getExtractElement(ConstOps[0], ConstOps[1]);
1711 C = ConstantExpr::getInsertElement(ConstOps[0], ConstOps[1],
1712 ConstOps[2]);
1716 ShuffleVectorInst::getShuffleMask(ConstOps[2], Mask);
1717 C = ConstantExpr::getShuffleVector(ConstOps[0], ConstOps[1], Mask);