Lines Matching refs:ConstantExpr

235     } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) {  in CleanupPointerRootUsers()
301 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { in CleanupConstantGlobalUsers()
323 if (!isa<ConstantExpr>(GEP->getOperand(0))) { in CleanupConstantGlobalUsers()
324 ConstantExpr *CE = dyn_cast_or_null<ConstantExpr>( in CleanupConstantGlobalUsers()
422 (!isa<ConstantExpr>(U) || in GlobalUsersSafeToSRA()
423 cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr)) in GlobalUsersSafeToSRA()
553 assert(((isa<ConstantExpr>(GEP) && in SRAGlobal()
554 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)|| in SRAGlobal()
568 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GEP)) { in SRAGlobal()
574 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
590 cast<ConstantExpr>(GEP)->destroyConstant(); in SRAGlobal()
715 ConstantExpr::getCast(CI->getOpcode(), in OptimizeAwayTrappingUsesOfValue()
733 GEPI, ConstantExpr::getGetElementPtr(nullptr, NewV, Idxs)); in OptimizeAwayTrappingUsesOfValue()
779 isa<ConstantExpr>(GlobalUser) || isa<CmpInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads()
877 RepValue = ConstantExpr::getBitCast(RepValue, GV->getValueType()); in OptimizeGlobalAddressOfMalloc()
1579 SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType()); in optimizeOnceStoredGlobal()
1858 if (!isa<ConstantExpr>(U)) in allNonInstructionUsersCanBeMadeInstructions()
1875 SmallVector<ConstantExpr*,4> Users; in makeAllConstantUsesInstructions()
1877 if (isa<ConstantExpr>(U)) in makeAllConstantUsesInstructions()
1878 Users.push_back(cast<ConstantExpr>(U)); in makeAllConstantUsesInstructions()
2359 ConstantExpr *Addr, unsigned OpNo) { in EvaluateStoreInto()
2408 ConstantExpr *CE = cast<ConstantExpr>(Addr); in CommitValueTo()
2456 SmallVector<std::pair<ConstantExpr*, Constant*>, 32> ComplexCEs; in BatchCommitValueTo()
2457 SmallVector<std::pair<ConstantExpr*, Constant*>, 32> SimpleCEs; in BatchCommitValueTo()
2464 ConstantExpr *GEP = cast<ConstantExpr>(I.first); in BatchCommitValueTo()
2525 ConstantExpr *GEP = CEPair.first; in BatchCommitValueTo()
2582 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(GV, Int8PtrTy); in setUsedInitializer()
2761 J->replaceAllUsesWith(ConstantExpr::getBitCast(Aliasee, J->getType())); in OptimizeGlobalAliases()