Lines Matching defs:ConstExpr
397 ConstantExpr *ConstExpr) {
399 if (ConstExpr->getType()->isVectorTy())
402 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0));
410 auto *GEPO = cast<GEPOperator>(ConstExpr);
426 ConstPtrUnionType Cand = ConstExpr;
431 ConstExpr));
464 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) {
466 if (ConstHoistGEP && ConstExpr->isGEPWithNoNotionalOverIndexing())
467 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstExpr);
470 if (!ConstExpr->isCast())
473 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) {
630 ConstantExpr *ConstExpr = MaxCostItr->ConstExpr;
633 ConstInfo.BaseExpr = ConstExpr;
641 ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr;
805 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) {
806 if (ConstExpr->isGEPWithNoNotionalOverIndexing()) {
813 assert(ConstExpr->isCast() && "ConstExpr should be a cast");
814 Instruction *ConstExprInst = ConstExpr->getAsInstruction();
823 << "From : " << *ConstExpr << '\n');