Lines Matching refs:ConstantExpr
240 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupPointerRootUsers()
310 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupConstantGlobalUsers()
333 if (!isa<ConstantExpr>(GEP->getOperand(0))) { in CleanupConstantGlobalUsers()
334 ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>( in CleanupConstantGlobalUsers()
433 (!isa<ConstantExpr>(U) || in GlobalUsersSafeToSRA()
434 cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr)) in GlobalUsersSafeToSRA()
521 assert(((isa<ConstantExpr>(GEP) && cast<ConstantExpr>(GEP)->getOpcode() == in SRAGlobal()
598 assert(((isa<ConstantExpr>(GEP) && in SRAGlobal()
599 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)|| in SRAGlobal()
613 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GEP)) { in SRAGlobal()
619 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
653 cast<ConstantExpr>(GEP)->destroyConstant(); in SRAGlobal()
776 ConstantExpr::getCast(CI->getOpcode(), in OptimizeAwayTrappingUsesOfValue()
794 GEPI, ConstantExpr::getGetElementPtr(GEPI->getSourceElementType(), in OptimizeAwayTrappingUsesOfValue()
841 isa<ConstantExpr>(GlobalUser) || isa<CmpInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
939 RepValue = ConstantExpr::getBitCast(RepValue, GV->getValueType()); in OptimizeGlobalAddressOfMalloc()
1120 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in optimizeOnceStoredGlobal()
1410 if (!isa<ConstantExpr>(U)) in allNonInstructionUsersCanBeMadeInstructions()
1427 SmallVector<ConstantExpr*,4> Users; in makeAllConstantUsesInstructions()
1429 if (isa<ConstantExpr>(U)) in makeAllConstantUsesInstructions()
1430 Users.push_back(cast<ConstantExpr>(U)); in makeAllConstantUsesInstructions()
2048 ConstantExpr *Addr, unsigned OpNo) { in EvaluateStoreInto()
2100 ConstantExpr *CE = cast<ConstantExpr>(Addr); in CommitValueTo()
2148 SmallVector<std::pair<ConstantExpr*, Constant*>, 32> ComplexCEs; in BatchCommitValueTo()
2149 SmallVector<std::pair<ConstantExpr*, Constant*>, 32> SimpleCEs; in BatchCommitValueTo()
2156 ConstantExpr *GEP = cast<ConstantExpr>(I.first); in BatchCommitValueTo()
2219 ConstantExpr *GEP = CEPair.first; in BatchCommitValueTo()
2276 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(GV, Int8PtrTy); in setUsedInitializer()
2461 J->replaceAllUsesWith(ConstantExpr::getBitCast(Aliasee, J->getType())); in OptimizeGlobalAliases()