Displaying 2 results from an estimated 2 matches for "__objc_selref".
2020 Feb 16
2
ORC JIT Weekly #5
...00 has been
updated. The new version contains a MachOPlatform implementation that
demonstrates how Platforms and ObjectLinkingLayer::Plugins can work
together to implement platform specific initialization. In this case, the
MachOPlatform installs a plugin that scans objects for __objc_classlist and
__objc_selref sections and uses them to register JIT'd code with the
Objective-C runtime. This allows LLJIT instances (and the lli command line
tool) to run IR compiled from Objective-C and Swift sources.
Discussion on the review is ongoing (thanks especially to Stefan Granitz
for his review comments!) but...
2020 Feb 24
4
ORC JIT Weekly #6 -- General initializer support and JITLink optimizations
...the other hand, MachOPlatform
implements a scheme that mimics the behavior of the Darwin dynamic loader,
dyld: By installing an ObjectLinkingLayer::Plugin, the MachOPlatform can
scan all objects as they are materialized to discover known special
sections (E.g. __mod_init_func, __objc_classlist, and __objc_selref), then
handle them according the usual platform rules (__mod_init_func pointers
are executed, Objective-C classes and selectors are registered with the
Objective-C runtime).
While this system is still very new, it is far enough along that the lli
command line tool, when run with the -jit-mode=orc-...