Lines Matching refs:atom

55 static std::string atomToDebugString(const Atom *atom) {  in atomToDebugString()  argument
56 const DefinedAtom *definedAtom = dyn_cast<DefinedAtom>(atom); in atomToDebugString()
74 const DefinedAtom *atom) { in showCycleDetectedError() argument
75 const DefinedAtom *start = atom; in showCycleDetectedError()
78 llvm::dbgs() << " " << atomToDebugString(atom) << "\n"; in showCycleDetectedError()
79 for (const Reference *ref : *atom) { in showCycleDetectedError()
88 atom = followOnNexts[atom]; in showCycleDetectedError()
89 } while (atom != start); in showCycleDetectedError()
112 const DefinedAtom *atom) { in checkReachabilityFromRoot() argument
113 if (!atom) return; in checkReachabilityFromRoot()
114 auto i = followOnRoots.find(atom); in checkReachabilityFromRoot()
116 llvm_unreachable(((Twine("Atom <") + atomToDebugString(atom) + in checkReachabilityFromRoot()
125 llvm_unreachable((Twine("Atom <" + atomToDebugString(atom) + in checkReachabilityFromRoot()
137 for (const DefinedAtom *atom : atomRange) { in printDefinedAtoms() local
138 llvm::dbgs() << " file=" << atom->file().path() in printDefinedAtoms()
139 << ", name=" << atom->name() in printDefinedAtoms()
140 << ", size=" << atom->size() in printDefinedAtoms()
141 << ", type=" << atom->contentType() in printDefinedAtoms()
142 << ", ordinal=" << atom->ordinal() in printDefinedAtoms()
272 const DefinedAtom *atom = _followOnRoots[targetAtom]; in findAtomFollowedBy() local
274 const DefinedAtom *prevAtom = atom; in findAtomFollowedBy()
275 AtomToAtomT::iterator targetFollowOnAtomsIter = _followOnNexts.find(atom); in findAtomFollowedBy()
278 atom = targetFollowOnAtomsIter->second; in findAtomFollowedBy()
279 if (atom == targetAtom) in findAtomFollowedBy()
290 const DefinedAtom *atom = _followOnRoots[targetAtom]; in checkAllPrevAtomsZeroSize() local
292 if (atom == targetAtom) in checkAllPrevAtomsZeroSize()
294 if (atom->size() != 0) in checkAllPrevAtomsZeroSize()
298 AtomToAtomT::iterator targetFollowOnAtomsIter = _followOnNexts.find(atom); in checkAllPrevAtomsZeroSize()
301 atom = targetFollowOnAtomsIter->second; in checkAllPrevAtomsZeroSize()
407 const DefinedAtom *atom = ai; in buildOrdinalOverrideMap() local
408 if (_ordinalOverrideMap.find(atom) != _ordinalOverrideMap.end()) in buildOrdinalOverrideMap()
410 AtomToAtomT::iterator start = _followOnRoots.find(atom); in buildOrdinalOverrideMap()
425 for (OwningAtomPtr<DefinedAtom> &atom : atomRange.owning_ptrs()) { in decorate()
426 auto ri = _followOnRoots.find(atom.get()); in decorate()
427 auto oi = _ordinalOverrideMap.find(atom.get()); in decorate()
428 const auto *root = (ri == _followOnRoots.end()) ? atom.get() : ri->second; in decorate()
430 ret.push_back(SortKey(std::move(atom), root, override)); in decorate()