Lines Matching refs:atom
56 static std::string atomToDebugString(const Atom *atom) { in atomToDebugString() argument
57 const DefinedAtom *definedAtom = dyn_cast<DefinedAtom>(atom); in atomToDebugString()
75 const DefinedAtom *atom) { in showCycleDetectedError() argument
76 const DefinedAtom *start = atom; in showCycleDetectedError()
79 llvm::dbgs() << " " << atomToDebugString(atom) << "\n"; in showCycleDetectedError()
80 for (const Reference *ref : *atom) { in showCycleDetectedError()
89 atom = followOnNexts[atom]; in showCycleDetectedError()
90 } while (atom != start); in showCycleDetectedError()
113 const DefinedAtom *atom) { in checkReachabilityFromRoot() argument
114 if (!atom) return; in checkReachabilityFromRoot()
115 auto i = followOnRoots.find(atom); in checkReachabilityFromRoot()
117 llvm_unreachable(((Twine("Atom <") + atomToDebugString(atom) + in checkReachabilityFromRoot()
126 llvm_unreachable((Twine("Atom <" + atomToDebugString(atom) + in checkReachabilityFromRoot()
138 for (const DefinedAtom *atom : atomRange) { in printDefinedAtoms() local
139 llvm::dbgs() << " file=" << atom->file().path() in printDefinedAtoms()
140 << ", name=" << atom->name() in printDefinedAtoms()
141 << ", size=" << atom->size() in printDefinedAtoms()
142 << ", type=" << atom->contentType() in printDefinedAtoms()
143 << ", ordinal=" << atom->ordinal() in printDefinedAtoms()
273 const DefinedAtom *atom = _followOnRoots[targetAtom]; in findAtomFollowedBy() local
275 const DefinedAtom *prevAtom = atom; in findAtomFollowedBy()
276 AtomToAtomT::iterator targetFollowOnAtomsIter = _followOnNexts.find(atom); in findAtomFollowedBy()
279 atom = targetFollowOnAtomsIter->second; in findAtomFollowedBy()
280 if (atom == targetAtom) in findAtomFollowedBy()
291 const DefinedAtom *atom = _followOnRoots[targetAtom]; in checkAllPrevAtomsZeroSize() local
293 if (atom == targetAtom) in checkAllPrevAtomsZeroSize()
295 if (atom->size() != 0) in checkAllPrevAtomsZeroSize()
299 AtomToAtomT::iterator targetFollowOnAtomsIter = _followOnNexts.find(atom); in checkAllPrevAtomsZeroSize()
302 atom = targetFollowOnAtomsIter->second; in checkAllPrevAtomsZeroSize()
408 const DefinedAtom *atom = ai; in buildOrdinalOverrideMap() local
409 if (_ordinalOverrideMap.find(atom) != _ordinalOverrideMap.end()) in buildOrdinalOverrideMap()
411 AtomToAtomT::iterator start = _followOnRoots.find(atom); in buildOrdinalOverrideMap()
426 for (OwningAtomPtr<DefinedAtom> &atom : atomRange.owning_ptrs()) { in decorate()
427 auto ri = _followOnRoots.find(atom.get()); in decorate()
428 auto oi = _ordinalOverrideMap.find(atom.get()); in decorate()
429 const auto *root = (ri == _followOnRoots.end()) ? atom.get() : ri->second; in decorate()
431 ret.push_back(SortKey(std::move(atom), root, override)); in decorate()