Lines Matching refs:ConstExpr
407 ConstantExpr *ConstExpr) { in collectConstantCandidates() argument
409 if (ConstExpr->getType()->isVectorTy()) in collectConstantCandidates()
412 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates()
420 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates()
445 ConstPtrUnionType Cand = ConstExpr; in collectConstantCandidates()
450 ConstExpr)); in collectConstantCandidates()
483 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates() local
485 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates()
486 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstExpr); in collectConstantCandidates()
489 if (!ConstExpr->isCast()) in collectConstantCandidates()
492 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates()
647 ConstantExpr *ConstExpr = MaxCostItr->ConstExpr; in findAndMakeBaseConstant() local
650 ConstInfo.BaseExpr = ConstExpr; in findAndMakeBaseConstant()
658 ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr; in findAndMakeBaseConstant()
817 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants() local
818 if (isa<GEPOperator>(ConstExpr)) { in emitBaseConstants()
825 assert(ConstExpr->isCast() && "ConstExpr should be a cast"); in emitBaseConstants()
826 Instruction *ConstExprInst = ConstExpr->getAsInstruction(); in emitBaseConstants()
834 << "From : " << *ConstExpr << '\n'); in emitBaseConstants()