[ORC] Introduce C API for adding object buffers directly to an object layer.
authorLang Hames <lhames@gmail.com>
Thu, 6 May 2021 01:29:26 +0000 (18:29 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 6 May 2021 02:02:13 +0000 (19:02 -0700)
commit7b73cd684a8d5fb44d34064200f10e2723085c33
treed850e403b7b2077adc2c329fa65c1f99f32efc82
parent6fac34251d015b2f196dfb46dd015a914b8d6340
[ORC] Introduce C API for adding object buffers directly to an object layer.

This can be useful for clients constructing custom JIT stacks: If the C API
for your custom stack exposes API to obtain a reference to an object layer
(e.g. LLVMOrcLLJITGetObjLinkingLayer) then the newly added
LLVMOrcObjectLayerAddObjectFile and LLVMOrcObjectLayerAddObjectFileWithRT
functions can be used to add objects directly to that layer.
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp