HomeSort by relevance Sort by last modified time
    Searched defs:Sec (Results 1 - 25 of 32) sorted by null

1 2

  /external/llvm/lib/Target/Mips/MCTargetDesc/
MipsOptionRecord.cpp 31 MCSectionELF *Sec =
34 MCA.registerSection(*Sec);
35 Sec->setAlignment(8);
36 Streamer->SwitchSection(Sec);
50 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO,
52 MCA.registerSection(*Sec);
53 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4);
54 Streamer->SwitchSection(Sec);
MipsTargetStreamer.cpp 870 MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, 0);
876 MCA.registerSection(*Sec);
877 Sec->setAlignment(4);
881 OS.SwitchSection(Sec);
    [all...]
  /external/llvm/tools/llvm-dwp/
DWPStringPool.h 34 MCSection *Sec;
39 DWPStringPool(MCStreamer &Out, MCSection *Sec) : Out(Out), Sec(Sec) {}
46 Out.SwitchSection(Sec);
  /external/llvm/lib/Target/AArch64/MCTargetDesc/
AArch64MachObjectWriter.cpp 301 const MCSection &Sec = Symbol->getSection();
302 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
364 const MCSection &Sec = Symbol->getSection();
365 Index = Sec.getOrdinal() + 1;
  /external/llvm/lib/Target/PowerPC/MCTargetDesc/
PPCMachObjectWriter.cpp 363 const MCSection &Sec = A->getSection();
364 Index = Sec.getOrdinal() + 1;
365 FixedValue += Writer->getSectionAddress(&Sec);
  /external/llvm/lib/Target/ARM/MCTargetDesc/
ARMMachObjectWriter.cpp 431 const MCSection &Sec = A->getSection();
432 Index = Sec.getOrdinal() + 1;
433 FixedValue += Writer->getSectionAddress(&Sec);
  /external/llvm/lib/Target/X86/MCTargetDesc/
X86MachObjectWriter.cpp 220 const MCSection &Sec = Symbol->getSection();
221 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
585 const MCSection &Sec = A->getSection();
586 Index = Sec.getOrdinal() + 1;
587 FixedValue += Writer->getSectionAddress(&Sec);
  /external/swiftshader/third_party/LLVM/lib/CodeGen/
TargetLoweringObjectFileImpl.cpp 76 const MCSection *Sec = getContext().getELFSection(NameData,
81 Streamer.SwitchSection(Sec);
  /external/llvm/lib/MC/
MCELFStreamer.cpp 501 MCSection &Sec = *getCurrentSectionOnly();
511 else if (isBundleLocked() && !Sec.isBundleGroupBeforeFirstInst())
527 if (Sec.getBundleLockState() == MCSection::BundleLockedAlignToEnd) {
537 Sec.setBundleGroupBeforeFirstInst(false);
569 MCSection &Sec = *getCurrentSectionOnly();
577 Sec.setBundleGroupBeforeFirstInst(true);
585 Sec.setBundleLockState(AlignToEnd ? MCSection::BundleLockedAlignToEnd
590 MCSection &Sec = *getCurrentSectionOnly();
597 else if (Sec.isBundleGroupBeforeFirstInst())
608 Sec.setBundleLockState(MCSection::NotBundleLocked)
    [all...]
MCFragment.cpp 34 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();
44 const MCFragment *LastValid = LastValidFragment.lookup(Sec);
47 assert(LastValid->getParent() == Sec);
62 MCSection *Sec = F->getParent()
    [all...]
MCObjectStreamer.cpp 224 bool MCObjectStreamer::mayHaveInstructions(MCSection &Sec) const {
225 return Sec.hasInstructions();
232 MCSection *Sec = getCurrentSectionOnly();
233 Sec->setHasInstructions(true);
253 (Assembler.isBundlingEnabled() && Sec->isBundleLocked())) {
494 const MCSection *Sec = getCurrentSection().first;
495 (void)Sec;
496 assert(Sec && "need a section");
MCAssembler.cpp 563 void MCAssembler::writeSectionData(const MCSection *Sec,
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);
    [all...]
MachObjectWriter.cpp 106 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec,
108 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec);
109 unsigned Next = Sec->getLayoutOrder() + 1;
197 const MCSection &Sec, uint64_t VMAddr,
201 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec);
202 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec);
206 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!");
232 write32(IndirectSymBase.lookup(&Sec)); // reserved1
612 for (const MCSection *Sec : Layout.getSectionOrder())
    [all...]
WinCOFFObjectWriter.cpp 156 void defineSection(MCSectionCOFF const &Sec);
266 void WinCOFFObjectWriter::defineSection(MCSectionCOFF const &Sec) {
267 COFFSection *coff_section = createSection(Sec.getSectionName());
268 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
269 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
270 if (const MCSymbol *S = Sec.getCOMDATSymbol()) {
286 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
288 coff_section->Header.Characteristics = Sec.getCharacteristics();
291 switch (Sec.getAlignment()) {
339 coff_section->MCSection = &Sec;
    [all...]
  /external/llvm/tools/dsymutil/
MachOUtils.cpp 277 MCSection *Sec = Layout.getSectionOrder()[i];
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];
394 if (Sec->begin() == Sec->end()
    [all...]
  /external/llvm/tools/obj2yaml/
macho2yaml.cpp 53 MachOYAML::Section constructSectionCommon(SectionType Sec) {
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.flags
    [all...]
  /external/llvm/tools/yaml2obj/
yaml2coff.cpp 65 COFFYAML::Section &Sec = *i;
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.Alignment) + 1) << 20
    [all...]
  /external/llvm/lib/ExecutionEngine/RuntimeDyld/
RuntimeDyldMachO.cpp 124 SectionRef Sec = Obj.getAnyRelocationSection(RelInfo);
125 bool IsCode = Sec.isText();
126 if (auto SectionIDOrErr = findOrEmitSection(Obj, Sec, IsCode,
131 uint64_t Addr = Sec.getAddress();
  /external/llvm/tools/llvm-size/
llvm-size.cpp 227 MachO::section_64 Sec = MachO->getSection64(Load, J);
229 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", "
230 << format("%.16s", &Sec.sectname) << "): ";
232 outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": ";
233 outs() << format(fmt.str().c_str(), Sec.size);
235 outs() << " (addr 0x" << format("%" PRIx64, Sec.addr) << " offset "
236 << Sec.offset << ")";
238 sec_total += Sec.size;
254 MachO::section Sec = MachO->getSection(Load, J);
256 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ",
    [all...]
  /external/llvm/include/llvm/Object/
ELF.h 118 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_end(Sec))
    [all...]
  /external/llvm/lib/CodeGen/
TargetLoweringObjectFileImpl.cpp 73 MCSection *Sec = getContext().getELFNamedSection(".data", Label->getName(),
76 Streamer.SwitchSection(Sec);
    [all...]
  /external/llvm/tools/llvm-cxxdump/
llvm-cxxdump.cpp 78 const SectionRef &Sec, uint64_t SecAddress,
83 for (const SectionRef &SR : SectionRelocMap[Sec]) {
102 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress,
107 for (const SectionRef &SR : SectionRelocMap[Sec]) {
195 const SectionRef &Sec = *SecI;
197 if (Sec.isBSS() || Sec.isVirtual())
200 error(Sec.getContents(SecContents));
204 uint64_t SecAddress = Sec.getAddress();
205 uint64_t SecSize = Sec.getSize()
    [all...]
  /external/llvm/tools/llvm-rtdyld/
llvm-rtdyld.cpp 371 object::section_iterator Sec = *SecOrErr;
373 Sec->getName(SecName);
375 LoadedObjInfo->getSectionLoadAddress(*Sec);
377 Addr += SectionLoadAddress - Sec->getAddress();
  /external/swiftshader/third_party/LLVM/lib/MC/
WinCOFFObjectWriter.cpp 368 MCSectionCOFF const &Sec =
371 COFFSection *coff_section = createSection(Sec.getSectionName());
372 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
382 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
384 coff_section->Header.Characteristics = Sec.getCharacteristics();
793 COFFSection *Sec = SectionMap[&i->getSection()];
795 if (Sec->Number == -1)
798 Sec->Header.SizeOfRawData = Layout.getSectionAddressSize(i);
800 if (IsPhysicalSection(Sec)) {
801 Sec->Header.PointerToRawData = offset
    [all...]
  /external/llvm/lib/Object/
COFFObjectFile.cpp 242 const coff_section *Sec = nullptr;
243 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec))
246 Ret.p = reinterpret_cast<uintptr_t>(Sec);
256 const coff_section *Sec = toSec(Ref);
257 Sec += 1;
258 Ref.p = reinterpret_cast<uintptr_t>(Sec);
263 const coff_section *Sec = toSec(Ref);
264 return getSectionName(Sec, Result);
268 const coff_section *Sec = toSec(Ref);
269 uint64_t Result = Sec->VirtualAddress
    [all...]

Completed in 1039 milliseconds

1 2