Home
last modified time | relevance | path

Searched refs:CurrentGV (Results 1 – 1 of 1) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp2492 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()
[all …]