Lines Matching refs:ConstExpr

404     ConstantExpr *ConstExpr) {  in collectConstantCandidates()  argument
406 if (ConstExpr->getType()->isVectorTy()) in collectConstantCandidates()
409 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates()
417 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates()
442 ConstPtrUnionType Cand = ConstExpr; in collectConstantCandidates()
447 ConstExpr)); in collectConstantCandidates()
480 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates() local
482 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates()
483 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstExpr); in collectConstantCandidates()
486 if (!ConstExpr->isCast()) in collectConstantCandidates()
489 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates()
646 ConstantExpr *ConstExpr = MaxCostItr->ConstExpr; in findAndMakeBaseConstant() local
649 ConstInfo.BaseExpr = ConstExpr; in findAndMakeBaseConstant()
657 ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr; in findAndMakeBaseConstant()
821 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants() local
822 if (isa<GEPOperator>(ConstExpr)) { in emitBaseConstants()
829 assert(ConstExpr->isCast() && "ConstExpr should be a cast"); in emitBaseConstants()
830 Instruction *ConstExprInst = ConstExpr->getAsInstruction( in emitBaseConstants()
838 << "From : " << *ConstExpr << '\n'); in emitBaseConstants()