Lines Matching defs:llvm

16 #include <llvm/ADT/Triple.h>
17 #include <llvm/Support/Casting.h>
18 #include <llvm/Support/ELF.h>
19 #include <llvm/Support/Host.h>
74 if (llvm::ELF::R_MIPS_26 != pType)
234 uint64_t picFlags = llvm::ELF::EF_MIPS_CPIC;
236 picFlags |= llvm::ELF::EF_MIPS_PIC;
240 picFlags |= llvm::ELF::EF_MIPS_PIC;
318 llvm::errs() << ".gnu.hash is incompatible with the MIPS ABI\n";
327 namespace llvm {
374 llvm::StringRef name(pSD.getSection().name());
385 if (pSD.getSection().type() == llvm::ELF::SHT_MIPS_OPTIONS) {
389 llvm::StringRef region = pInput.memArea()->request(offset, size);
391 const llvm::ELF::Elf_Options* optb =
392 reinterpret_cast<const llvm::ELF::Elf_Options*>(region.begin());
393 const llvm::ELF::Elf_Options* opte =
394 reinterpret_cast<const llvm::ELF::Elf_Options*>(region.begin() + size);
396 for (const llvm::ELF::Elf_Options* opt = optb; opt < opte; opt += opt->size) {
401 case llvm::ELF::ODK_REGINFO:
403 const llvm::ELF::Elf32_RegInfo* reg =
404 reinterpret_cast<const llvm::ELF::Elf32_RegInfo*>(opt + 1);
408 const llvm::ELF::Elf64_RegInfo* reg =
409 reinterpret_cast<const llvm::ELF::Elf64_RegInfo*>(opt + 1);
707 symtab.setSize(symtab.size() + sizeof(llvm::ELF::Elf32_Sym));
733 if (llvm::ELF::R_MIPS_26 != reloc->type())
736 if (relaxRelocation(pBuilder, *llvm::cast<Relocation>(reloc)))
787 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf32_Rel& pRel,
795 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf32_Rela& pRel,
804 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf64_Rel& pRel,
810 if (llvm::sys::IsLittleEndianHost) {
828 bool MipsGNULDBackend::readRelocation(const llvm::ELF::Elf64_Rela& pRel,
835 if (llvm::sys::IsLittleEndianHost) {
851 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf32_Rel& pRel,
859 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf32_Rela& pRel,
868 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf64_Rel& pRel,
881 void MipsGNULDBackend::emitRelocation(llvm::ELF::Elf64_Rela& pRel,
999 const llvm::Triple& triple = pConfig.targets().triple();
1008 llvm::Triple::ArchType arch = triple.getArch();
1010 if (llvm::Triple::mips64el == arch)
1013 assert (arch == llvm::Triple::mipsel);