Reland [Orc] Add verylazy example for C-bindings
authorValentin Churavy <v.churavy@gmail.com>
Sun, 18 Jul 2021 14:22:34 +0000 (16:22 +0200)
committerValentin Churavy <v.churavy@gmail.com>
Sun, 18 Jul 2021 19:17:49 +0000 (21:17 +0200)
commit3321f4821e0973a6b52640433016bd02b3a537a1
treed89a877d4534f96a418ed58b1befa99fd9e09710
parentfbe64f136f7650af22d90a77833eb42f8de1fbee
Reland [Orc] Add verylazy example for C-bindings

This patch relands https://reviews.llvm.org/D104799, but fixes the
memory handling causing leak sanitizer failures.

This reverts commit a56fe117e04f7d4b953a4226af412dad59425fb5.
llvm/examples/OrcV2Examples/CMakeLists.txt
llvm/examples/OrcV2Examples/OrcV2CBindingsVeryLazy/CMakeLists.txt [new file with mode: 0644]
llvm/examples/OrcV2Examples/OrcV2CBindingsVeryLazy/OrcV2CBindingsVeryLazy.c [new file with mode: 0644]
llvm/include/llvm-c/LLJIT.h
llvm/include/llvm-c/Orc.h
llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
llvm/test/CMakeLists.txt
llvm/test/lit.cfg.py
llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp