Home | History | Annotate | Download | only in IPO

Lines Matching refs:Init

301 static bool CleanupConstantGlobalUsers(Value *V, Constant *Init,
308 if (Init) {
310 LI->replaceAllUsesWith(Init);
315 // Store must be unreachable or storing Init into the global.
321 if (Init)
322 SubInit = ConstantFoldLoadThroughGEPConstantExpr(Init, CE);
337 // and will invalidate our notion of what Init is.
342 if (Init && CE && CE->getOpcode() == Instruction::GetElementPtr)
343 SubInit = ConstantFoldLoadThroughGEPConstantExpr(Init, CE);
348 if (Init && isa<ConstantAggregateZero>(Init) && GEP->isInBounds())
369 CleanupConstantGlobalUsers(V, Init, TD, TLI);
500 Constant *Init = GV->getInitializer();
501 Type *Ty = Init->getType();
515 Constant *In = Init->getAggregateElement(i);
547 Constant *In = Init->getAggregateElement(i);
902 GV->getName()+".init", GV->isThreadLocal());
1958 /// initializers have an init priority of 65535.
1982 // Init priority must be standard.
2019 // Create the new init list.
2200 /// initializer. This returns 'Init' modified to reflect 'Val' stored into it.
2202 static Constant *EvaluateStoreInto(Constant *Init, Constant *Val,
2206 assert(Val->getType() == Init->getType() && "Type mismatch!");
2211 if (StructType *STy = dyn_cast<StructType>(Init->getType())) {
2214 Elts.push_back(Init->getAggregateElement(i));
2227 SequentialType *InitTy = cast<SequentialType>(Init->getType());
2237 Elts.push_back(Init->getAggregateElement(i));
2243 if (Init->getType()->isArrayTy())