Lines Matching refs:CurrentGV
2492 GlobalVariable *CurrentGV = nullptr; in BatchCommitValueTo() local
2498 if (CurrentGV) { in BatchCommitValueTo()
2499 assert(CurrentGV && "Expected a GV to commit to!"); in BatchCommitValueTo()
2500 Type *CurrentInitTy = CurrentGV->getInitializer()->getType(); in BatchCommitValueTo()
2503 CurrentGV->setInitializer(ConstantStruct::get(STy, Elts)); in BatchCommitValueTo()
2505 CurrentGV->setInitializer(ConstantArray::get(ArrTy, Elts)); in BatchCommitValueTo()
2507 CurrentGV->setInitializer(ConstantVector::get(Elts)); in BatchCommitValueTo()
2509 if (CurrentGV == GV) in BatchCommitValueTo()
2512 CurrentGV = GV; in BatchCommitValueTo()
2529 commitAndSetupCache(GV, GV != CurrentGV); in BatchCommitValueTo()
2535 commitAndSetupCache(CurrentGV, true); in BatchCommitValueTo()