Lines Matching refs:llvm

47   llvm::Triple::ArchType arch = pConfig.targets().triple().getArch();  in X86GNULDBackend()
48 assert(arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64); in X86GNULDBackend()
49 if (arch == llvm::Triple::x86 || in X86GNULDBackend()
50 pConfig.targets().triple().getEnvironment() == llvm::Triple::GNUX32) { in X86GNULDBackend()
53 if (arch == llvm::Triple::x86) in X86GNULDBackend()
54 m_PointerRel = llvm::ELF::R_386_32; in X86GNULDBackend()
56 m_PointerRel = llvm::ELF::R_X86_64_32; in X86GNULDBackend()
60 m_PointerRel = llvm::ELF::R_X86_64_64; in X86GNULDBackend()
175 unsigned int plt0_size = llvm::cast<PLTEntryBase>((*it)).size(); in emitSectionData()
177 memcpy(buffer, llvm::cast<PLTEntryBase>((*it)).getValue(), plt0_size); in emitSectionData()
184 plt1 = &(llvm::cast<PLTEntryBase>(*it)); in emitSectionData()
283 llvm::StringRef cie_region = createCIERegionForPLT(); in addEhFrameForPLT()
284 llvm::StringRef fde_region = createFDERegionForPLT(); in addEhFrameForPLT()
289 (uint8_t)(llvm::dwarf::DW_EH_PE_pcrel | llvm::dwarf::DW_EH_PE_sdata4); in addEhFrameForPLT()
328 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_386_COPY), in X86_32GNULDBackend()
393 llvm::StringRef X86_32GNULDBackend::createCIERegionForPLT() { in createCIERegionForPLT()
403 llvm::dwarf::DW_EH_PE_pcrel in createCIERegionForPLT()
404 | llvm::dwarf::DW_EH_PE_sdata4, // FDE encoding in createCIERegionForPLT()
405 llvm::dwarf::DW_CFA_def_cfa, 4, 4, in createCIERegionForPLT()
406 llvm::dwarf::DW_CFA_offset + 8, 1, in createCIERegionForPLT()
407 llvm::dwarf::DW_CFA_nop, in createCIERegionForPLT()
408 llvm::dwarf::DW_CFA_nop in createCIERegionForPLT()
410 return llvm::StringRef((const char*)data, 4 + 4 + 16); in createCIERegionForPLT()
413 llvm::StringRef X86_32GNULDBackend::createFDERegionForPLT() { in createFDERegionForPLT()
420 llvm::dwarf::DW_CFA_def_cfa_offset, 8, in createFDERegionForPLT()
421 llvm::dwarf::DW_CFA_advance_loc + 6, in createFDERegionForPLT()
422 llvm::dwarf::DW_CFA_def_cfa_offset, 12, in createFDERegionForPLT()
423 llvm::dwarf::DW_CFA_advance_loc + 10, in createFDERegionForPLT()
424 llvm::dwarf::DW_CFA_def_cfa_expression, in createFDERegionForPLT()
426 llvm::dwarf::DW_OP_breg4, 4, in createFDERegionForPLT()
427 llvm::dwarf::DW_OP_breg8, 0, in createFDERegionForPLT()
428 llvm::dwarf::DW_OP_lit15, in createFDERegionForPLT()
429 llvm::dwarf::DW_OP_and, in createFDERegionForPLT()
430 llvm::dwarf::DW_OP_lit11, in createFDERegionForPLT()
431 llvm::dwarf::DW_OP_ge, in createFDERegionForPLT()
432 llvm::dwarf::DW_OP_lit2, in createFDERegionForPLT()
433 llvm::dwarf::DW_OP_shl, in createFDERegionForPLT()
434 llvm::dwarf::DW_OP_plus, in createFDERegionForPLT()
435 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
436 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
437 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
438 llvm::dwarf::DW_CFA_nop in createFDERegionForPLT()
440 return llvm::StringRef((const char*)data, 4 + 4 + 32); in createFDERegionForPLT()
479 got = &(llvm::cast<X86_32GOTEntry>((*it))); in emitGOTSectionData()
503 got = &(llvm::cast<X86_32GOTEntry>((*it))); in emitGOTPLTSectionData()
513 : X86GNULDBackend(pConfig, pInfo, llvm::ELF::R_X86_64_COPY), in X86_64GNULDBackend()
550 llvm::StringRef X86_64GNULDBackend::createCIERegionForPLT() { in createCIERegionForPLT()
560 llvm::dwarf::DW_EH_PE_pcrel in createCIERegionForPLT()
561 | llvm::dwarf::DW_EH_PE_sdata4, // FDE encoding in createCIERegionForPLT()
562 llvm::dwarf::DW_CFA_def_cfa, 7, 8, in createCIERegionForPLT()
563 llvm::dwarf::DW_CFA_offset + 16, 1, in createCIERegionForPLT()
564 llvm::dwarf::DW_CFA_nop, in createCIERegionForPLT()
565 llvm::dwarf::DW_CFA_nop in createCIERegionForPLT()
567 return llvm::StringRef((const char*)data, 4 + 4 + 16); in createCIERegionForPLT()
570 llvm::StringRef X86_64GNULDBackend::createFDERegionForPLT() { in createFDERegionForPLT()
577 llvm::dwarf::DW_CFA_def_cfa_offset, 16, in createFDERegionForPLT()
578 llvm::dwarf::DW_CFA_advance_loc + 6, in createFDERegionForPLT()
579 llvm::dwarf::DW_CFA_def_cfa_offset, 24, in createFDERegionForPLT()
580 llvm::dwarf::DW_CFA_advance_loc + 10, in createFDERegionForPLT()
581 llvm::dwarf::DW_CFA_def_cfa_expression, in createFDERegionForPLT()
583 llvm::dwarf::DW_OP_breg7, 8, in createFDERegionForPLT()
584 llvm::dwarf::DW_OP_breg16, 0, in createFDERegionForPLT()
585 llvm::dwarf::DW_OP_lit15, in createFDERegionForPLT()
586 llvm::dwarf::DW_OP_and, in createFDERegionForPLT()
587 llvm::dwarf::DW_OP_lit11, in createFDERegionForPLT()
588 llvm::dwarf::DW_OP_ge, in createFDERegionForPLT()
589 llvm::dwarf::DW_OP_lit3, in createFDERegionForPLT()
590 llvm::dwarf::DW_OP_shl, in createFDERegionForPLT()
591 llvm::dwarf::DW_OP_plus, in createFDERegionForPLT()
592 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
593 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
594 llvm::dwarf::DW_CFA_nop, in createFDERegionForPLT()
595 llvm::dwarf::DW_CFA_nop in createFDERegionForPLT()
597 return llvm::StringRef((const char*)data, 4 + 4 + 32); in createFDERegionForPLT()
664 got = &(llvm::cast<X86_64GOTEntry>((*it))); in emitGOTSectionData()
688 got = &(llvm::cast<X86_64GOTEntry>((*it))); in emitGOTPLTSectionData()
716 llvm::Triple::ArchType arch = pConfig.targets().triple().getArch(); in createX86LDBackend()
717 if (arch == llvm::Triple::x86) in createX86LDBackend()
720 assert(arch == llvm::Triple::x86_64); in createX86LDBackend()