llvm-project/llvm/unittests/ExecutionEngine
Lang Hames 5f154795ef [JITLink] Add convenience methods for creating block readers / writers.
This saves clients some boilerplate compared to setting up the readers and
writers manually.

To obtain a BinaryStreamWriter / BinaryStreamReader for a given block, B,
clients can now write:

auto Reader = G.getBlockContentReader(B);

and

auto Writer = G.getBlockContentWriter(B);

The latter will trigger a copy to mutable memory allocated on the graph's
allocator if the block is currently marked as backed by read-only memory.

This commit also introduces a new createMutableContentBlock overload that
creates a block with a given size and zero-filled content (by default --
passing false for the ZeroInitialize bypasses initialization entirely).
This overload is intended to be used with getBlockContentWriter above when
creating new content for the graph.
2022-10-18 16:25:47 -07:00
..
JITLink [JITLink] Add convenience methods for creating block readers / writers. 2022-10-18 16:25:47 -07:00
MCJIT [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
Orc [ORC][JITLink] Move MemoryFlags.h (MemProt, AllocGroup,...) from JITLink to ORC. 2022-10-03 19:35:34 -07:00
CMakeLists.txt [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
ExecutionEngineTest.cpp