Searched defs:Sec (Results 1 - 25 of 52) sorted by relevance

123

/external/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsOptionRecord.cpp31 MCSectionELF *Sec = local
34 MCA.registerSection(*Sec);
35 Sec->setAlignment(8);
36 Streamer->SwitchSection(Sec);
50 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, local
52 MCA.registerSection(*Sec);
53 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4);
54 Streamer->SwitchSection(Sec);
/external/llvm/tools/llvm-dwp/
H A DDWPStringPool.h34 MCSection *Sec; member in class:llvm::DWPStringPool
39 DWPStringPool(MCStreamer &Out, MCSection *Sec) : Out(Out), Sec(Sec) {} argument
46 Out.SwitchSection(Sec);
/external/llvm/lib/Object/
H A DSymbolSize.cpp34 static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) { argument
36 return M->getSectionID(Sec);
37 return cast<COFFObjectFile>(O).getSectionID(Sec);
69 for (SectionRef Sec : O.sections()) {
70 uint64_t Address = Sec.getAddress();
71 uint64_t Size = Sec.getSize();
73 {O.symbol_end(), Address + Size, 0, getSectionID(O, Sec)});
/external/llvm/include/llvm/MC/
H A DMCMachObjectWriter.h137 uint64_t getSectionAddress(const MCSection *Sec) const {
138 return SectionAddress.lookup(Sec);
175 void writeSection(const MCAsmLayout &Layout, const MCSection &Sec,
215 void addRelocation(const MCSymbol *RelSymbol, const MCSection *Sec, argument
218 Relocations[Sec].push_back(P);
H A DMCFragment.h137 explicit MCDummyFragment(MCSection *Sec) argument
138 : MCFragment(FT_Dummy, false, 0, Sec){};
148 MCSection *Sec)
149 : MCFragment(FType, HasInstructions, 0, Sec) {}
175 MCSection *Sec)
176 : MCEncodedFragment(FType, HasInstructions, Sec) {}
196 MCSection *Sec)
198 Sec) {}
224 MCDataFragment(MCSection *Sec = nullptr)
225 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
147 MCEncodedFragment(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
173 MCEncodedFragmentWithContents(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
194 MCEncodedFragmentWithFixups(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
[all...]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp301 const MCSection &Sec = Symbol->getSection(); local
302 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
364 const MCSection &Sec = Symbol->getSection(); local
365 Index = Sec.getOrdinal() + 1;
/external/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp60 static bool isSmallDataSection(StringRef Sec) { argument
63 if (Sec.equals(".sdata") || Sec.equals(".sbss") || Sec.equals(".scommon"))
67 return Sec.find(".sdata.") != StringRef::npos ||
68 Sec.find(".sbss.") != StringRef::npos ||
69 Sec.find(".scommon.") != StringRef::npos;
/external/llvm/lib/MC/
H A DMCFragment.cpp34 for (MCSection &Sec : Asm)
35 if (!Sec.isVirtualSection())
36 SectionOrder.push_back(&Sec);
37 for (MCSection &Sec : Asm)
38 if (Sec.isVirtualSection())
39 SectionOrder.push_back(&Sec);
43 const MCSection *Sec = F->getParent(); local
44 const MCFragment *LastValid = LastValidFragment.lookup(Sec);
47 assert(LastValid->getParent() == Sec);
62 MCSection *Sec local
[all...]
H A DELFObjectWriter.cpp124 unsigned addToSectionTable(const MCSectionELF *Sec);
204 const MCSectionELF &Sec);
215 void writeSectionData(const MCAssembler &Asm, MCSection &Sec,
223 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec);
244 unsigned ELFObjectWriter::addToSectionTable(const MCSectionELF *Sec) { argument
245 SectionTable.push_back(Sec);
246 StrTabBuilder.add(Sec->getSectionName());
376 for (const MCSection &Sec : Asm) {
377 const MCSymbol *Begin = Sec.getBeginSymbol();
571 auto &Sec
[all...]
H A DMCAssembler.cpp563 void MCAssembler::writeSectionData(const MCSection *Sec, argument
566 if (Sec->isVirtualSection()) {
567 assert(Layout.getSectionFileSize(Sec) == 0 && "Invalid size for section!");
570 for (const MCFragment &F : *Sec) {
582 if (auto *ELFSec = dyn_cast<const MCSectionELF>(Sec))
610 for (const MCFragment &F : *Sec)
614 Layout.getSectionAddressSize(Sec));
642 for (MCSection &Sec : *this) {
645 if (Sec.getFragmentList().empty())
646 new MCDataFragment(&Sec);
653 MCSection *Sec = Layout.getSectionOrder()[i]; local
850 layoutSectionOnce(MCAsmLayout &Layout, MCSection &Sec) argument
904 MCSection &Sec = *it; local
[all...]
H A DMCContext.cpp435 MCSectionCOFF *MCContext::getAssociativeCOFFSection(MCSectionCOFF *Sec, argument
440 return Sec;
444 unsigned Characteristics = Sec->getCharacteristics();
447 return getCOFFSection(Sec->getSectionName(), Characteristics,
448 Sec->getKind(), KeySym->getName(),
452 return getCOFFSection(Sec->getSectionName(), Characteristics, Sec->getKind(),
488 [&](MCSection *Sec) { return !MCOS.mayHaveInstructions(*Sec); });
/external/llvm/lib/ObjectYAML/
H A DCOFFYAML.cpp483 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { argument
485 IO, Sec.Header.Characteristics);
486 IO.mapRequired("Name", Sec.Name);
488 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U);
489 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U);
490 IO.mapOptional("Alignment", Sec.Alignment, 0U);
491 IO.mapRequired("SectionData", Sec.SectionData);
492 IO.mapOptional("Relocations", Sec.Relocations);
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp431 const MCSection &Sec = A->getSection(); local
432 Index = Sec.getOrdinal() + 1;
433 FixedValue += Writer->getSectionAddress(&Sec);
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp363 const MCSection &Sec = A->getSection(); local
364 Index = Sec.getOrdinal() + 1;
365 FixedValue += Writer->getSectionAddress(&Sec);
/external/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp220 const MCSection &Sec = Symbol->getSection(); local
221 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
585 const MCSection &Sec = A->getSection(); local
586 Index = Sec.getOrdinal() + 1;
587 FixedValue += Writer->getSectionAddress(&Sec);
/external/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp53 MachOYAML::Section constructSectionCommon(SectionType Sec) { argument
55 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16);
56 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16);
57 TempSec.addr = Sec.addr;
58 TempSec.size = Sec.size;
59 TempSec.offset = Sec.offset;
60 TempSec.align = Sec.align;
61 TempSec.reloff = Sec.reloff;
62 TempSec.nreloc = Sec.nreloc;
63 TempSec.flags = Sec
73 constructSection(MachO::section Sec) argument
79 constructSection(MachO::section_64 Sec) argument
95 SectionType Sec; local
[all...]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp76 const MCSection *Sec = getContext().getELFSection(NameData, local
81 Streamer.SwitchSection(Sec);
/external/llvm/tools/dsymutil/
H A DMachOUtils.cpp277 MCSection *Sec = Layout.getSectionOrder()[i]; local
278 if (Sec->begin() == Sec->end() || !Layout.getSectionFileSize(Sec))
281 unsigned Align = Sec->getAlignment();
286 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0);
288 FileOffset += Layout.getSectionAddressSize(Sec);
289 VMAddr += Layout.getSectionAddressSize(Sec);
393 MCSection *Sec = Layout.getSectionOrder()[i]; local
394 if (Sec
[all...]
/external/llvm/tools/yaml2obj/
H A Dyaml2coff.cpp65 COFFYAML::Section &Sec = *i; local
69 StringRef Name = Sec.Name;
72 std::copy(Name.begin(), Name.end(), Sec.Header.Name);
81 Sec.Header.Name[0] = '/';
82 std::copy(str.begin(), str.end(), Sec.Header.Name + 1);
85 if (Sec.Alignment) {
86 if (Sec.Alignment > 8192) {
90 if (!isPowerOf2_32(Sec.Alignment)) {
94 Sec.Header.Characteristics |= (Log2_32(Sec
[all...]
H A Dyaml2macho.cpp94 SectionType constructSection(MachOYAML::Section Sec) { argument
96 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16);
97 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16);
98 TempSec.addr = Sec.addr;
99 TempSec.size = Sec.size;
100 TempSec.offset = Sec.offset;
101 TempSec.align = Sec.align;
102 TempSec.reloff = Sec.reloff;
103 TempSec.nreloc = Sec.nreloc;
104 TempSec.flags = Sec
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/MC/
H A DMCContext.h229 void addMCLineSection(const MCSection *Sec, MCLineSection *Line) { argument
230 MCLineSections[Sec] = Line;
231 MCLineSectionOrder.push_back(Sec);
/external/swiftshader/third_party/LLVM/lib/Object/
H A DCOFFObjectFile.cpp72 const coff_section *COFFObjectFile::toSec(DataRefImpl Sec) const {
73 const coff_section *addr = reinterpret_cast<const coff_section*>(Sec.p);
278 error_code COFFObjectFile::getSectionNext(DataRefImpl Sec, argument
280 const coff_section *sec = toSec(Sec);
282 Sec.p = reinterpret_cast<uintptr_t>(sec);
283 Result = SectionRef(Sec, this);
287 error_code COFFObjectFile::getSectionName(DataRefImpl Sec, argument
289 const coff_section *sec = toSec(Sec);
310 error_code COFFObjectFile::getSectionAddress(DataRefImpl Sec, argument
312 const coff_section *sec = toSec(Sec);
317 getSectionSize(DataRefImpl Sec, uint64_t &Result) const argument
324 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
339 getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const argument
348 isSectionText(DataRefImpl Sec, bool &Result) const argument
355 isSectionData(DataRefImpl Sec, bool &Result) const argument
362 isSectionBSS(DataRefImpl Sec, bool &Result) const argument
369 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument
[all...]
/external/llvm/include/llvm/Object/
H A DELF.h118 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const {
119 if (!Sec)
121 if (Sec->sh_entsize != sizeof(Elf_Sym))
123 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset);
125 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const {
126 if (!Sec)
128 uint64_t Size = Sec->sh_size;
131 return symbol_begin(Sec) + Size / sizeof(Elf_Sym);
133 Elf_Sym_Range symbols(const Elf_Shdr *Sec) const {
134 return makeArrayRef(symbol_begin(Sec), symbol_en
200 getSymbol(const Elf_Shdr *Sec, uint32_t Index) const argument
407 ErrorOr<const Elf_Shdr *> Sec = getSection(Section); local
[all...]
/external/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp73 MCSection *Sec = getContext().getELFNamedSection(".data", Label->getName(), local
76 Streamer.SwitchSection(Sec);
1042 MCSection *Sec = getDrectveSection(); local
1043 Streamer.SwitchSection(Sec);
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp124 SectionRef Sec = Obj.getAnyRelocationSection(RelInfo); local
125 bool IsCode = Sec.isText();
126 if (auto SectionIDOrErr = findOrEmitSection(Obj, Sec, IsCode,
131 uint64_t Addr = Sec.getAddress();

Completed in 542 milliseconds

123