Home
last modified time | relevance | path

Searched refs:jitlink (Results 1 – 25 of 187) sorted by relevance

12345678

/llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/AArch64/
H A DMachO_arm64_relocations.s42 # jitlink-check: decode_operand(test_gotpage21_external, 1) = \
44 # jitlink-check: test_gotpage21_external[32:12])
61 # jitlink-check: test_gotpage21_defined[32:12])
81 # jitlink-check: decode_operand(test_page21, 1)[20:0] = \
202 # jitlink-check: *{8}named_func_addr_quad = named_func
211 # jitlink-check: *{8}anon_func_addr_quad = \
220 # jitlink-check: *{8}anon_minuend_quad1 = \
229 # jitlink-check: *{4}anon_minuend_long1 = \
351 # jitlink-check: *{8}zero_fill_test = 0
359 # jitlink-check: section_alignment_check1[2:0] = 0
[all …]
H A DELF_aarch64_relocations.s4 # RUN: llvm-jitlink -noexec \
83 # jitlink-check: decode_operand(test_ldrb, 2) = named_data[11:0]
89 # jitlink-check: decode_operand(test_strb, 2) = named_data[11:0]
155 # jitlink-check: decode_operand(test_movz_g3, 1) = named_data[63:48]
156 # jitlink-check: decode_operand(test_movk_g3, 2) = named_data[63:48]
200 # jitlink-check: *{8}local_func_addr_quad = named_func
209 # jitlink-check: *{8}external_func_addr_quad = external_func
227 # jitlink-check: decode_operand(test_adr_gotpage_external, 1) = \
229 # jitlink-check: test_adr_gotpage_external[32:12])
230 # jitlink-check: decode_operand(test_ld64_gotlo12_external, 2) = \
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/
H A DObjectLinkingLayer.h35 namespace jitlink {
62 using JITLinkSymbolSet = DenseSet<jitlink::Symbol *>;
68 jitlink::LinkGraph &G, in modifyPassConfig()
74 jitlink::LinkGraph &G, in notifyMaterializing()
106 jitlink::JITLinkMemoryManager &MemMgr);
149 std::unique_ptr<jitlink::LinkGraph> G);
186 jitlink::LinkGraph &G,
195 jitlink::JITLinkMemoryManager &MemMgr;
208 std::unique_ptr<jitlink::EHFrameRegistrar> Registrar);
210 jitlink::LinkGraph &G,
[all …]
H A DEPCGenericJITLinkMemoryManager.h27 class EPCGenericJITLinkMemoryManager : public jitlink::JITLinkMemoryManager {
42 void allocate(const jitlink::JITLinkDylib *JD, jitlink::LinkGraph &G,
57 void completeAllocation(ExecutorAddr AllocAddr, jitlink::BasicLayout BL,
70 jitlink::JITLinkMemoryManager::FinalizedAlloc> {
72 static size_t size(const jitlink::JITLinkMemoryManager::FinalizedAlloc &FA) { in size()
78 const jitlink::JITLinkMemoryManager::FinalizedAlloc &FA) { in serialize()
84 jitlink::JITLinkMemoryManager::FinalizedAlloc &FA) { in deserialize()
88 FA = jitlink::JITLinkMemoryManager::FinalizedAlloc(A); in deserialize()
H A DMachOPlatform.h118 jitlink::LinkGraph &G,
119 jitlink::PassConfiguration &Config) override;
141 Error associateJITDylibHeaderSymbol(jitlink::LinkGraph &G,
144 Error preserveInitSections(jitlink::LinkGraph &G,
147 Error processObjCImageInfo(jitlink::LinkGraph &G,
150 Error fixTLVSectionsAndEdges(jitlink::LinkGraph &G, JITDylib &JD);
152 Error registerObjectPlatformSections(jitlink::LinkGraph &G, JITDylib &JD);
154 Error registerEHSectionsPhase1(jitlink::LinkGraph &G);
H A DDebuggerSupportPlugin.h50 jitlink::LinkGraph &LG,
51 jitlink::PassConfiguration &PassConfig) override;
55 jitlink::LinkGraph &LG,
56 jitlink::PassConfiguration &PassConfig);
/llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/X86/
H A DMachO_x86-64_relocations.s3 # RUN: llvm-jitlink -noexec \
15 # jitlink-check: *{4}common_symbol = 0
16 # jitlink-check: common_symbol[1:0] = 0
110 # jitlink-check: decode_operand(signedanon, 4) = \
116 # jitlink-check: decode_operand(signed1anon, 3) = \
122 # jitlink-check: decode_operand(signed2anon, 3) = \
128 # jitlink-check: decode_operand(signed4anon, 3) = \
203 # jitlink-check: *{8}anon_minuend_quad1 = \
212 # jitlink-check: *{4}anon_minuend_long1 = \
337 # jitlink-check: *{8}zero_fill_test = 0
[all …]
H A DELF_x86-64_small_pic_relocations.s4 # RUN: llvm-jitlink -noexec \
46 # jitlink-check: decode_operand(test_call_local, 0) = \
47 # jitlink-check: named_func - next_pc(test_call_local)
61 # jitlink-check: decode_operand(test_call_alt_sec_at_offset, 0) = \
63 # jitlink-check: next_pc(test_call_alt_sec_at_offset)
77 # jitlink-check: decode_operand(test_call_extern_plt, 0) = \
79 # jitlink-check: next_pc(test_call_extern_plt)
81 # jitlink-check: extern_out_of_range32
94 # jitlink-check: decode_operand(test_gotpcrel, 4) = \
108 # jitlink-check: decode_operand(test_rex_gotpcrelx, 4) = \
[all …]
H A DELF_x86-64_got_plt_optimizations.s4 # RUN: llvm-jitlink -noexec \
25 # jitlink-check: decode_operand(test_call_gotpcrelx, 0)[31:0] = extern_in_range32
26 # jitlink-check: *{1}test_call_gotpcrelx = 0x67
27 # jitlink-check: *{1}test_call_gotpcrelx+1 = 0xe8
39 # jitlink-check: decode_operand(test_call_gotpcrelx, 0)[31:0] = extern_in_range32
40 # jitlink-check: *{1}test_jmp_gotpcrelx = 0xe9
41 # jitlink-check: *{1}test_jmp_gotpcrelx+5 = 0x90
55 # jitlink-check: decode_operand(test_call_extern, 0) = \
56 # jitlink-check: extern_in_range32 - next_pc(test_call_extern)
H A DMachO_weak_references.s3 # RUN: llvm-jitlink -noexec -check-name=jitlink-check-bar-present -abs bar=0x1 -check=%s %t/macho_w…
4 # RUN: llvm-jitlink -noexec -check-name=jitlink-check-bar-absent -check=%s %t/macho_weak_refs.o
13 # jitlink-check-bar-present: *{8}(got_addr(macho_weak_refs.o, bar)) = bar
14 # jitlink-check-bar-absent: *{8}(got_addr(macho_weak_refs.o, bar)) = 0
H A DELF_x86-64_large_pic_relocations.s4 # RUN: llvm-jitlink -noexec \
24 # jitlink-check: decode_operand(test_gotpc64, 1) = \
25 # jitlink-check: _GLOBAL_OFFSET_TABLE_ - test_lg_pic_GOT
26 # jitlink-check: decode_operand(test_got64, 1) = \
27 # jitlink-check: got_addr(elf_lg_pic_reloc.o, named_data) - \
28 # jitlink-check: _GLOBAL_OFFSET_TABLE_
H A DELF_x86-64_common.s3 # RUN: llvm-jitlink -entry=load_common -noexec -check %s %t/elf_common.o
14 # jitlink-check: decode_operand(load_common, 4) = \
15 # jitlink-check: got_addr(elf_common.o, common_data) - next_pc(load_common)
16 # jitlink-check: *{8}(got_addr(elf_common.o, common_data)) = common_data
23 # jitlink-check: *{4}(common_data) = 0
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A DMemoryFlags.h24 namespace jitlink {
186 template <> struct DenseMapInfo<jitlink::MemProt> {
187 static inline jitlink::MemProt getEmptyKey() {
188 return jitlink::MemProt(~uint8_t(0));
190 static inline jitlink::MemProt getTombstoneKey() {
191 return jitlink::MemProt(~uint8_t(0) - 1);
197 static bool isEqual(const jitlink::MemProt &LHS,
198 const jitlink::MemProt &RHS) {
204 static inline jitlink::AllocGroup getEmptyKey() {
205 return jitlink::AllocGroup(~uint8_t(0));
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-jitlink/
H A DCMakeLists.txt2 add_subdirectory(llvm-jitlink-executor)
21 add_llvm_tool(llvm-jitlink
22 llvm-jitlink.cpp
23 llvm-jitlink-coff.cpp
24 llvm-jitlink-elf.cpp
25 llvm-jitlink-macho.cpp
29 target_link_libraries(llvm-jitlink PRIVATE network)
33 target_link_libraries(llvm-jitlink PRIVATE socket nsl)
36 export_executable_symbols(llvm-jitlink)
/llvm-project-15.0.7/llvm/test/ExecutionEngine/JITLink/RISCV/
H A Driscv_reloc_add.s4 # RUN: llvm-jitlink -noexec -check %s %t/riscv64_reloc_add.o
5 # RUN: llvm-jitlink -noexec -check %s %t/riscv32_reloc_add.o
7 # jitlink-check: *{8}(named_data) = 0x8
8 # jitlink-check: *{4}(named_data+8) = 0x8
9 # jitlink-check: *{2}(named_data+12) = 0x8
10 # jitlink-check: *{1}(named_data+14) = 0x8
11 # jitlink-check: *{1}(named_data+15) = 0x8
H A DELF_riscv64_got_plt_reloc.s4 # RUN: llvm-jitlink -noexec \
23 # jitlink-check: decode_operand(test_got, 1) = (got_addr(elf_riscv64_got_plt_reloc.o, external_data…
24 # jitlink-check: decode_operand(test_got+4, 2)[11:0] = (got_addr(elf_riscv64_got_plt_reloc.o, exter…
25 # jitlink-check: *{8}(got_addr(elf_riscv64_got_plt_reloc.o, external_data)) = external_data
36 # jitlink-check: decode_operand(test_plt, 1) = (stub_addr(elf_riscv64_got_plt_reloc.o, external_fun…
37 # jitlink-check: decode_operand(test_plt+4, 2) = (stub_addr(elf_riscv64_got_plt_reloc.o, external_f…
38 # jitlink-check: *{8}(got_addr(elf_riscv64_got_plt_reloc.o, external_func)) = external_func
H A DELF_riscv32_got_plt_reloc.s4 # RUN: llvm-jitlink -noexec \
22 # jitlink-check: decode_operand(test_got, 1) = (got_addr(elf_riscv32_got_plt_reloc.o, external_data…
23 # jitlink-check: decode_operand(test_got+4, 2)[11:0] = (got_addr(elf_riscv32_got_plt_reloc.o, exter…
24 # jitlink-check: *{4}(got_addr(elf_riscv32_got_plt_reloc.o, external_data)) = external_data
35 # jitlink-check: decode_operand(test_plt, 1) = (stub_addr(elf_riscv32_got_plt_reloc.o, external_fun…
36 # jitlink-check: decode_operand(test_plt+4, 2) = (stub_addr(elf_riscv32_got_plt_reloc.o, external_f…
37 # jitlink-check: *{4}(got_addr(elf_riscv32_got_plt_reloc.o, external_func)) = external_func
H A DELF_reloc_set.s4 # RUN: llvm-jitlink -noexec \
7 # RUN: llvm-jitlink -noexec \
11 # jitlink-check: *{4}(foo) = foo
12 # jitlink-check: *{2}(foo+4) = foo[15:0]
13 # jitlink-check: *{1}(foo+6) = foo[7:0]
14 # jitlink-check: *{1}(foo+7) = foo[5:0]
H A DELF_pc_indirect.s6 # RUN: llvm-jitlink -noexec \
10 # RUN: llvm-jitlink -noexec \
30 # jitlink-check: decode_operand(test_pcrel32, 1) = ((external_data - test_pcrel32) + 0x800)[31:12]
31 # jitlink-check: decode_operand(test_pcrel32+4, 2)[11:0] = (external_data - test_pcrel32)[11:0]
42 # jitlink-check: decode_operand(test_call, 1) = ((external_func - test_call) + 0x800)[31:12]
43 # jitlink-check: decode_operand(test_call+4, 2)[11:0] = (external_func - test_call)[11:0]
/llvm-project-15.0.7/llvm/tools/llvm-jitlink/llvm-jitlink-executor/
H A DCMakeLists.txt7 add_llvm_utility(llvm-jitlink-executor
8 llvm-jitlink-executor.cpp
15 target_link_libraries(llvm-jitlink-executor PRIVATE network)
19 target_link_libraries(llvm-jitlink-executor PRIVATE socket)
22 export_executable_symbols(llvm-jitlink-executor)
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/
H A DBUILD.gn1 executable("llvm-jitlink") {
14 "llvm-jitlink-coff.cpp",
15 "llvm-jitlink-elf.cpp",
16 "llvm-jitlink-macho.cpp",
17 "llvm-jitlink.cpp",
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DELFNixPlatform.cpp41 jitlink::Edge::Kind EdgeKind; in materialize()
49 EdgeKind = jitlink::x86_64::Pointer64; in materialize()
54 EdgeKind = jitlink::aarch64::Pointer64; in materialize()
63 jitlink::getGenericEdgeKindName); in materialize()
71 jitlink::Linkage::Strong, jitlink::Scope::Default, false, true); in materialize()
597 jitlink::SectionRange R(*Sec); in registerInitInfo()
638 jitlink::PassConfiguration &Config) { in modifyPassConfig()
735 jitlink::Section *ThreadDataSection = in addEHAndTLVSupportPasses()
814 jitlink::LinkGraph &G, JITDylib &JD) { in registerInitSections()
830 jitlink::SectionRange R(*Sec); in registerInitSections()
[all …]
H A DMachOPlatform.cpp87 jitlink::getGenericEdgeKindName); in materialize()
114 static jitlink::Block &createHeaderBlock(jitlink::LinkGraph &G, in createHeaderBlock()
612 jitlink::PassConfiguration &Config) { in modifyPassConfig()
813 jitlink::LinkGraph &G, JITDylib &JD) { in fixTLVSectionsAndEdges()
862 E.setKind(jitlink::x86_64:: in fixTLVSectionsAndEdges()
869 jitlink::LinkGraph &G, JITDylib &JD) { in registerObjectPlatformSections()
873 jitlink::SectionRange R(*EHFrameSection); in registerObjectPlatformSections()
886 jitlink::Section *ThreadDataSection = in registerObjectPlatformSections()
929 jitlink::SectionRange R(*Sec); in registerObjectPlatformSections()
974 jitlink::LinkGraph &G) { in registerEHSectionsPhase1()
[all …]
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/
H A DLLJITWithObjectLinkingLayerPlugin.cpp56 jitlink::LinkGraph &LG, in modifyPassConfig()
57 jitlink::PassConfiguration &Config) override { in modifyPassConfig()
94 static void printBlockContent(jitlink::Block &B) { in printBlockContent()
123 static Error printGraph(jitlink::LinkGraph &G) { in printGraph()
125 DenseSet<jitlink::Block *> BlocksAlreadyVisited; in printGraph()
168 jitlink::Symbol &TargetSym = E.getTarget(); in printGraph()
213 ES, ExitOnErr(jitlink::InProcessMemoryManager::Create())); in main()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DMapperJITLinkMemoryManagerTest.cpp18 using namespace llvm::jitlink;
29 auto SSA = jitlink::SimpleSegmentAlloc::Create( in TEST()
30 *MemMgr, nullptr, {{jitlink::MemProt::Read, {Hello.size(), Align(1)}}}); in TEST()
32 auto SegInfo = SSA->getSegInfo(jitlink::MemProt::Read); in TEST()

12345678