From f54410e873da4db11e6b8c547f3976f5fec101c6 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Fri, 9 Aug 2024 17:03:32 +0200 Subject: [PATCH] fixup! WIP:Try out gpuc.deferred.with --- examples/jit.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/jit.jl b/examples/jit.jl index 106506be..86fd467c 100644 --- a/examples/jit.jl +++ b/examples/jit.jl @@ -123,11 +123,11 @@ function compiler(job) ir, meta = GPUCompiler.compile(:llvm, job; validate=false) # So 1. serialize the module buf = convert(MemoryBuffer, ir) - buf, meta + buf, LLVM.name(meta.entry) end end -function linker(_, (buf, meta)) +function linker(_, (buf, entry_fn)) compiler = jit[] lljit = compiler.jit jd = JITDylib(lljit) @@ -141,7 +141,7 @@ function linker(_, (buf, meta)) LLVM.add!(lljit, jd, tsm) end - addr = LLVM.lookup(lljit, meta.entry) + addr = LLVM.lookup(lljit, entry_fn) pointer(addr) end