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

123

/freebsd-13-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-13-stable/sbin/dhclient/
H A Dconflex.c321 intern(char *atom, int dfv) argument
323 if (!isascii(atom[0]))
326 switch (tolower(atom[0])) {
328 if (!strcasecmp(atom + 1, "lways-reply-rfc1048"))
330 if (!strcasecmp(atom + 1, "ppend"))
332 if (!strcasecmp(atom + 1, "llow"))
334 if (!strcasecmp(atom + 1, "lias"))
336 if (!strcasecmp(atom + 1, "bandoned"))
338 if (!strcasecmp(atom + 1, "uthoritative"))
342 if (!strcasecmp(atom
[all...]
/freebsd-13-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-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileFromAtoms.cpp48 const DefinedAtom *atom; member in struct:__anon2726::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:__anon2726::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.h50 // Make a copy of the atom's name and content that is owned by this file.
57 auto *atom = local
60 addAtomForSection(inSection, atom, sectionOffset);
72 // Make a copy of the atom's name and content that is owned by this file.
80 auto *atom = local
85 addAtomForSection(inSection, atom, sectionOffset);
93 // Make a copy of the atom's name and content that is owned by this file.
112 auto *atom = local
115 addAtomForSection(inSection, atom, sectionOffset);
120 // Make a copy of the atom'
123 auto *atom = new (allocator()) SimpleUndefinedAtom(*this, name); local
134 auto *atom = local
255 struct SectionOffsetAndAtom { uint64_t offset; MachODefinedAtom *atom; }; member in struct:lld::mach_o::MachOFile::SectionOffsetAndAtom
257 addAtomForSection(const Section *inSection, MachODefinedAtom* atom, uint64_t sectionOffset) argument
358 auto *atom = new (allocator()) MachOSharedLibraryAtom(*this, name, local
368 auto atom = dylib.file->exports(name, installName); local
387 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.cpp331 // Section has no symbols, put all content in one anonymous atom.
370 [&](MachODefinedAtom *atom, uint64_t offset)->void {
374 Reference::kindLayoutAfter, 0, atom, 0);
375 prevAtom = atom;
472 + " is malformed. The last atom "
515 auto atom = local
518 return atom;
528 // Utility function for ArchHandler to find atom by its address.
530 const lld::Atom **atom, Reference::Addend *addend)
546 *atom
1072 processCIE(const NormalizedFile &normalizedFile, MachOFile &file, mach_o::ArchHandler &handler, const Section *ehFrameSection, MachODefinedAtom *atom, uint64_t offset, CIEInfoMap &cieInfos) argument
1177 processFDE(const NormalizedFile &normalizedFile, MachOFile &file, mach_o::ArchHandler &handler, const Section *ehFrameSection, MachODefinedAtom *atom, uint64_t offset, const CIEInfoMap &cieInfos) argument
1511 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 " +
/freebsd-13-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-13-stable/contrib/opencsd/decoder/source/ptm/
H A Dtrc_pkt_elem_ptm.cpp64 atom.En_bits = 0;
112 atom.num = 1;
113 atom.En_bits = (pHdr & 0x2) ? 0x0 : 0x1;
124 atom.num = 2;
126 atom.num = 1;
130 atom.num = 3;
135 atom.num = 4;
137 atom.num = 5;
142 atom.En_bits = 0;
143 for(int i = 0; i < atom
[all...]
/freebsd-13-stable/contrib/opencsd/decoder/source/etmv3/
H A Dtrc_pkt_elem_etmv3.cpp60 m_pkt_data.atom.num = 0;
147 m_pkt_data.atom.num = E+N;
148 m_pkt_data.atom.En_bits = (((uint32_t)0x1) << E) - 1;
153 m_pkt_data.atom.num = 2;
155 m_pkt_data.atom.En_bits = (pHdr & 0x8 ? 0 : 1) | (pHdr & 0x4 ? 0 : 0x2);
169 m_pkt_data.atom.num = E+N;
170 if(m_pkt_data.atom.num)
172 m_pkt_data.atom.En_bits = (((uint32_t)0x1) << E) - 1;
185 m_pkt_data.atom.num = 1;
187 m_pkt_data.atom
[all...]
/freebsd-13-stable/contrib/opencsd/decoder/include/opencsd/ptm/
H A Dtrc_pkt_decode_ptm.h50 //! initialise the atom and index values
51 void initAtomPkt(const ocsd_pkt_atom &atom, const ocsd_trc_index_t &root_index);
57 void clearAtom(); //!< clear the current atom, set the next.
62 ocsd_trc_index_t m_root_index; //!< root index for the atom packet
65 inline void PtmAtoms::initAtomPkt(const ocsd_pkt_atom &atom, const ocsd_trc_index_t &root_index) argument
67 m_atom = atom;
151 CONT_ATOM, //!< continue processing atom packet after WAIT.
183 PtmAtoms m_atoms; //!< atoms to process in an atom packet
/freebsd-13-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-13-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...]

Completed in 286 milliseconds

123