Searched refs:atom (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/lld/include/lld/Core/
H A DAtom.h33 /// Whether this atom is defined or a proxy for an undefined symbol
41 /// The scope in which this atom is accessible to other atoms.
54 /// name - The name of the atom. For a function atom, it is the (mangled)
58 /// definition - Whether this atom is a definition or represents an undefined
78 /// Class which owns an atom pointer and runs the atom destructor when the
88 OwningAtomPtr(T *atom) : atom(atom) { } argument
95 runDestructor(Atom *atom) argument
125 T *atom = nullptr; member in class:lld::OwningAtomPtr
[all...]
H A DResolver.h37 void doDefinedAtom(OwningAtomPtr<DefinedAtom> atom);
38 bool doUndefinedAtom(OwningAtomPtr<UndefinedAtom> atom);
39 void doSharedLibraryAtom(OwningAtomPtr<SharedLibraryAtom> atom);
40 void doAbsoluteAtom(OwningAtomPtr<AbsoluteAtom> atom);
71 void markLive(const Atom *atom);
H A DSimple.h63 void addAtom(const Atom &atom) { argument
64 if (auto *p = dyn_cast<DefinedAtom>(&atom)) {
66 } else if (auto *p = dyn_cast<UndefinedAtom>(&atom)) {
68 } else if (auto *p = dyn_cast<SharedLibraryAtom>(&atom)) {
70 } else if (auto *p = dyn_cast<AbsoluteAtom>(&atom)) {
73 llvm_unreachable("atom has unknown definition kind");
257 /// name - The name of the atom. For a function atom, it is the (mangled)
/freebsd-11-stable/sbin/dhclient/
H A Dconflex.c319 intern(char *atom, int dfv) argument
321 if (!isascii(atom[0]))
324 switch (tolower(atom[0])) {
326 if (!strcasecmp(atom + 1, "lways-reply-rfc1048"))
328 if (!strcasecmp(atom + 1, "ppend"))
330 if (!strcasecmp(atom + 1, "llow"))
332 if (!strcasecmp(atom + 1, "lias"))
334 if (!strcasecmp(atom + 1, "bandoned"))
336 if (!strcasecmp(atom + 1, "uthoritative"))
340 if (!strcasecmp(atom
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/Core/
H A DResolver.cpp36 for (auto &atom : file.defined().owning_ptrs())
37 doDefinedAtom(std::move(atom));
38 for (auto &atom : file.undefined().owning_ptrs()) {
39 if (doUndefinedAtom(std::move(atom)))
42 for (auto &atom : file.sharedLibrary().owning_ptrs())
43 doSharedLibraryAtom(std::move(atom));
44 for (auto &atom : file.absolute().owning_ptrs())
45 doAbsoluteAtom(std::move(atom));
58 const Atom *atom = _symbolTable.findByName(undefName); local
59 if (!isa<UndefinedAtom>(atom) || _symbolTabl
[all...]
H A DSymbolTable.cpp30 bool SymbolTable::add(const UndefinedAtom &atom) { return addByName(atom); } argument
32 bool SymbolTable::add(const SharedLibraryAtom &atom) { return addByName(atom); } argument
34 bool SymbolTable::add(const AbsoluteAtom &atom) { return addByName(atom); } argument
36 bool SymbolTable::add(const DefinedAtom &atom) { argument
37 if (!atom.name().empty() &&
38 atom.scope() != DefinedAtom::scopeTranslationUnit) {
40 assert(atom
207 getHashValue(const DefinedAtom *atom) argument
257 replacement(const Atom *atom) argument
268 isCoalescedAway(const Atom *atom) argument
275 const Atom *atom = it.second; local
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileFromAtoms.cpp48 const DefinedAtom *atom; member in struct:__anon1147::AtomInfo
115 void processAtomAttributes(const DefinedAtom *atom);
116 void assignAtomToSection(const DefinedAtom *atom);
158 void appendAtom(SectionInfo *sect, const DefinedAtom *atom);
163 uint16_t descBits(const DefinedAtom* atom);
169 llvm::Error getSymbolTableRegion(const DefinedAtom* atom,
173 uint32_t sectionIndexForAtom(const Atom *atom);
174 void fixLazyReferenceImm(const DefinedAtom *atom, uint32_t offset,
178 struct AtomAndIndex { const Atom *atom; uint32_t index; SymbolScope scope; }; member in struct:__anon1147::Util::AtomAndIndex
343 SectionInfo *Util::sectionForAtom(const DefinedAtom *atom) { argument
376 appendAtom(SectionInfo *sect, const DefinedAtom *atom) argument
406 processAtomAttributes(const DefinedAtom *atom) argument
428 assignAtomToSection(const DefinedAtom *atom) argument
437 appendAtom(sectionForAtom(atom), atom); local
947 descBits(const DefinedAtom* atom) argument
983 getSymbolTableRegion(const DefinedAtom* atom, bool &inGlobalsRegion, SymbolScope &scope) argument
1058 const DefinedAtom *atom = info.atom; local
1283 sectionIndexForAtom(const Atom *atom) argument
1318 const DefinedAtom *atom = info.atom; local
1433 const DefinedAtom *atom = info.atom; local
1492 fixLazyReferenceImm(const DefinedAtom *atom, uint32_t offset, NormalizedFile &file) argument
1539 const DefinedAtom *atom = info.atom; local
[all...]
H A DLayoutPass.cpp55 static std::string atomToDebugString(const Atom *atom) { argument
56 const DefinedAtom *definedAtom = dyn_cast<DefinedAtom>(atom);
74 const DefinedAtom *atom) {
75 const DefinedAtom *start = atom;
78 llvm::dbgs() << " " << atomToDebugString(atom) << "\n";
79 for (const Reference *ref : *atom) {
88 atom = followOnNexts[atom];
89 } while (atom != start);
94 /// given root atom
72 showCycleDetectedError(const Registry &registry, AtomToAtomT &followOnNexts, const DefinedAtom *atom) argument
111 checkReachabilityFromRoot(AtomToAtomT &followOnRoots, const DefinedAtom *atom) argument
272 const DefinedAtom *atom = _followOnRoots[targetAtom]; local
290 const DefinedAtom *atom = _followOnRoots[targetAtom]; local
407 const DefinedAtom *atom = ai; local
[all...]
H A DFile.h48 // Make a copy of the atom's name and content that is owned by this file.
55 auto *atom = local
58 addAtomForSection(inSection, atom, sectionOffset);
70 // Make a copy of the atom's name and content that is owned by this file.
78 auto *atom = local
83 addAtomForSection(inSection, atom, sectionOffset);
91 // Make a copy of the atom's name and content that is owned by this file.
110 auto *atom = local
113 addAtomForSection(inSection, atom, sectionOffset);
118 // Make a copy of the atom'
121 auto *atom = new (allocator()) SimpleUndefinedAtom(*this, name); local
132 auto *atom = local
253 struct SectionOffsetAndAtom { uint64_t offset; MachODefinedAtom *atom; }; member in struct:lld::mach_o::MachOFile::SectionOffsetAndAtom
255 addAtomForSection(const Section *inSection, MachODefinedAtom* atom, uint64_t sectionOffset) argument
355 auto *atom = new (allocator()) MachOSharedLibraryAtom(*this, name, local
365 auto atom = dylib.file->exports(name, installName); local
383 const SharedLibraryAtom *atom; member in struct:lld::mach_o::MachODylibFile::AtomAndFlags
[all...]
H A DArchHandler.h81 /// Reference from an __eh_frame CIE atom to its personality function it's
89 /// Reference from an __eh_frame FDE atom to the function it's
122 /// finds the atom and offset with that atom of that address.
127 /// Prototype for a helper function. Given a symbolIndex, finds the atom
134 /// Two helper functions are passed as parameters to find the target atom
149 /// Two helper functions are passed as parameters to find the target atom
163 /// Prototype for a helper function. Given an atom, finds the symbol table
165 typedef std::function<uint32_t (const Atom &atom)> FindSymbolIndexForAtom;
167 /// Prototype for a helper function. Given an atom, find
176 needsLocalSymbolInRelocatableFile(const DefinedAtom *atom) argument
197 addAdditionalReferences(MachODefinedAtom &atom) argument
200 addDataInCodeReference(MachODefinedAtom &atom, uint32_t atomOff, uint16_t length, uint16_t kind) argument
211 dataInCodeTransitionStart( const MachODefinedAtom &atom) argument
218 dataInCodeTransitionEnd( const MachODefinedAtom &atom) argument
224 isThumbFunction(const DefinedAtom &atom) argument
[all...]
H A DDebugInfo.h65 Stab(const Atom* atom, uint8_t type, uint8_t other, uint16_t desc, argument
67 : atom(atom), type(type), other(other), desc(desc), value(value),
70 const class Atom* atom; member in struct:lld::mach_o::Stab
79 os << "Stab -- atom: " << llvm::format("%p", s.atom) << ", type: " << (uint32_t)s.type
H A DArchHandler.cpp142 bool ArchHandler::isDwarfCIE(bool isBig, const DefinedAtom *atom) { argument
143 assert(atom->contentType() == DefinedAtom::typeCFI);
144 if (atom->rawContent().size() < sizeof(uint32_t))
146 uint32_t size = read32(atom->rawContent().data(), isBig);
152 return read32(atom->rawContent().data() + idOffset, isBig) == 0;
H A DStubsPass.cpp223 for (const DefinedAtom *atom : mergedFile.defined()) {
224 for (const Reference *ref : *atom) {
274 mergedFile.sharedLibrary(), [&](const SharedLibraryAtom *atom) {
275 return atom->name().equals(_stubInfo.binderSymbolName);
316 // Switch call site to reference stub atom instead.
336 void addReference(SimpleDefinedAtom* atom, argument
339 atom->addReference(Reference::KindNamespace::mach_o,
344 void addReferenceAddend(SimpleDefinedAtom *atom, argument
347 atom->addReference(Reference::KindNamespace::mach_o, refInfo.arch,
351 void addOptReference(SimpleDefinedAtom* atom, argument
[all...]
H A DMachONormalizedFileToAtoms.cpp329 // Section has no symbols, put all content in one anonymous atom.
368 [&](MachODefinedAtom *atom, uint64_t offset)->void {
372 Reference::kindLayoutAfter, 0, atom, 0);
373 prevAtom = atom;
470 + " is malformed. The last atom "
513 auto atom = local
516 return atom;
526 // Utility function for ArchHandler to find atom by its address.
528 const lld::Atom **atom, Reference::Addend *addend)
544 *atom
1070 processCIE(const NormalizedFile &normalizedFile, MachOFile &file, mach_o::ArchHandler &handler, const Section *ehFrameSection, MachODefinedAtom *atom, uint64_t offset, CIEInfoMap &cieInfos) argument
1175 processFDE(const NormalizedFile &normalizedFile, MachOFile &file, mach_o::ArchHandler &handler, const Section *ehFrameSection, MachODefinedAtom *atom, uint64_t offset, const CIEInfoMap &cieInfos) argument
1509 MachODefinedAtom *atom = file->findAtomCoveringAddress(*s, offsetInSect, local
[all...]
H A DShimPass.cpp21 // modifies the original atom with the B instruction to target to the shim atom.
51 for (const DefinedAtom *atom : mergedFile.defined()) {
52 for (const Reference *ref : *atom) {
59 bool atomIsThumb = _archHandler.isThumbFunction(*atom);
95 // Switch branch site to target shim atom.
H A DCompactUnwindPass.cpp353 mergedFile.removeDefinedAtomsIf([](const DefinedAtom *atom) {
354 return atom->contentType() == DefinedAtom::typeCompactUnwindInfo;
366 for (const DefinedAtom *atom : mergedFile.defined()) {
367 if (atom->contentType() != DefinedAtom::typeCompactUnwindInfo)
370 auto unwindEntry = extractCompactUnwindEntry(atom);
396 CompactUnwindEntry extractCompactUnwindEntry(const DefinedAtom *atom) { argument
399 for (const Reference *ref : *atom) {
412 assert(ref->addend() == 0 && "unexpected offset into LSDA atom");
418 if (atom->rawContent().size() < 4 * sizeof(uint32_t))
423 read32(atom
[all...]
H A DArchHandler_x86.cpp109 void generateAtomContent(const DefinedAtom &atom, bool relocatable,
115 void appendSectionRelocations(const DefinedAtom &atom,
128 const MachODefinedAtom &atom) override {
133 const MachODefinedAtom &atom) override {
382 "SECTDIFF relocation where neither target is in atom");
393 // the start of the function (atom) containing the funcRel32.
409 void ArchHandler_x86::generateAtomContent(const DefinedAtom &atom, argument
416 std::copy(atom.rawContent().begin(), atom.rawContent().end(),
419 for (const Reference *ref : atom) {
551 appendSectionRelocations( const DefinedAtom &atom, uint64_t atomSectionOffset, const Reference &ref, FindSymbolIndexForAtom symbolIndexForAtom, FindSectionIndexForAtom sectionIndexForAtom, FindAddressForAtom addressForAtom, normalized::Relocations &relocs) argument
[all...]
H A DArchHandler_arm64.cpp158 bool needsLocalSymbolInRelocatableFile(const DefinedAtom *atom) override {
159 return (atom->contentType() == DefinedAtom::typeCString);
162 void generateAtomContent(const DefinedAtom &atom, bool relocatable,
168 void appendSectionRelocations(const DefinedAtom &atom,
207 imageOffset, /// Location contains offset of atom in final image
208 imageOffsetGot, /// Location contains offset of GOT entry for atom in
539 const DefinedAtom &atom, bool relocatable, FindAddressForAtom findAddress,
543 std::copy(atom.rawContent().begin(), atom.rawContent().end(),
547 if (atom
538 generateAtomContent( const DefinedAtom &atom, bool relocatable, FindAddressForAtom findAddress, FindAddressForAtom findSectionAddress, uint64_t imageBaseAddress, llvm::MutableArrayRef<uint8_t> atomContentBuffer) argument
[all...]
H A DTLVPass.cpp77 for (const DefinedAtom *atom : mergedFile.defined()) {
78 for (const Reference *ref : *atom) {
85 "variables in " + atom->name() + " for architecture " +
H A DLayoutPass.h35 SortKey(OwningAtomPtr<DefinedAtom> &&atom, argument
37 : _atom(std::move(atom)), _root(root), _override(override) {}
87 // result; if Atom X is mapped to atom Y in this map, X will be located
89 // atom, constructing a follow-on chain. An atom cannot be mapped to more
90 // than one atom unless all but one atom are of size zero.
93 // A map to be used to sort atoms. It's a map from an atom to its root of
94 // follow-on chain. A root atom is mapped to itself. If an atom i
[all...]
H A DArchHandler_x86_64.cpp166 bool needsLocalSymbolInRelocatableFile(const DefinedAtom *atom) override {
167 return (atom->contentType() == DefinedAtom::typeCString);
170 void generateAtomContent(const DefinedAtom &atom, bool relocatable,
176 void appendSectionRelocations(const DefinedAtom &atom,
189 const MachODefinedAtom &atom) override {
194 const MachODefinedAtom &atom) override {
237 imageOffset, /// Location contains offset of atom in final image
238 imageOffsetGot, /// Location contains offset of GOT entry for atom in
244 tlvInitSectionOffset /// Location contains offset tlv init-value atom
529 return llvm::make_error<GenericError>("pointer diff not in base atom");
545 generateAtomContent( const DefinedAtom &atom, bool relocatable, FindAddressForAtom findAddress, FindAddressForAtom findSectionAddress, uint64_t imageBaseAddress, llvm::MutableArrayRef<uint8_t> atomContentBuffer) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/YAML/
H A DReaderWriterYAML.cpp64 /// use the atom name as the target (e.g. target: foo). But in a few
78 for (const lld::DefinedAtom *atom : file.defined()) {
80 if (!atom->name().empty())
81 buildDuplicateNameMap(*atom);
84 for (const lld::Reference *ref : *atom) {
94 llvm::dbgs() << "unnamed atom: creating ref-name: '"
113 void buildDuplicateNameMap(const lld::Atom &atom) { argument
114 assert(!atom.name().empty());
115 NameToAtom::iterator pos = _nameMap.find(atom.name());
120 buffer << atom
154 hasRefName(const lld::Atom *atom) argument
156 refName(const lld::Atom *atom) argument
196 add(StringRef name, const lld::Atom *atom) argument
815 NormalizedAtom(IO &io, const lld::DefinedAtom *atom) argument
988 mapping(IO &io, lld::DefinedAtom *&atom) argument
1002 NormalizedAtom(IO &io, const lld::UndefinedAtom *atom) argument
1040 mapping(IO &io, const lld::UndefinedAtom *&atom) argument
1052 mapping(IO &io, lld::UndefinedAtom *&atom) argument
1067 NormalizedAtom(IO &io, const lld::SharedLibraryAtom *atom) argument
1115 mapping(IO &io, const lld::SharedLibraryAtom *&atom) argument
1130 mapping(IO &io, lld::SharedLibraryAtom *&atom) argument
1144 NormalizedAtom(IO &io, const lld::AbsoluteAtom *atom) argument
1185 mapping(IO &io, const lld::AbsoluteAtom *&atom) argument
1210 mapping(IO &io, lld::AbsoluteAtom *&atom) argument
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_atom.c88 struct refclock_atom atom; /* atom structure pointer */ member in struct:ppsunit
154 return (refclock_ppsapi(up->fddev, &up->atom));
192 if (refclock_pps(peer, &up->atom, pp->sloppyclockflag) <= 0)
/freebsd-11-stable/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_loc.c371 Dwarf_Small atom, Dwarf_Unsigned operand1, Dwarf_Unsigned operand2,
387 switch (atom) {
490 *p++ = atom;
499 *p++ = atom;
508 *p++ = atom;
517 *p++ = atom;
526 *p++ = atom;
537 *p++ = atom;
578 *p++ = atom;
589 *p++ = atom;
370 _dwarf_loc_expr_add_atom(Dwarf_Debug dbg, uint8_t *out, uint8_t *end, Dwarf_Small atom, Dwarf_Unsigned operand1, Dwarf_Unsigned operand2, int *length, Dwarf_Error *error) argument
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Doptimize.c590 int atom; local
595 atom = atomuse(&s->s);
596 if (atom >= 0) {
597 if (atom == AX_ATOM) {
603 else if (atom < N_ATOMS) {
604 if (!ATOMELEM(def, atom))
605 use |= ATOMMASK(atom);
610 atom = atomdef(&s->s);
611 if (atom >= 0) {
612 if (!ATOMELEM(use, atom))
1325 register int atom; local
1350 register int atom; local
1474 int atom; local
[all...]

Completed in 301 milliseconds

12