llvm-project/llvm/examples/Kaleidoscope
Lang Hames 114b4f324b [Orc] Add a JITSymbol class to the Orc APIs, refactor APIs, update clients.
This patch refactors a key piece of the Orc APIs: It removes the
*::getSymbolAddress and *::lookupSymbolAddressIn methods, which returned target
addresses (uint64_ts), and replaces them with *::findSymbol and *::findSymbolIn
respectively, which return instances of the new JITSymbol type. Unlike the old
methods, calling findSymbol or findSymbolIn does not cause the symbol to be
immediately materialized when found. Instead, the symbol will be materialized
if/when the getAddress method is called on the returned JITSymbol. This allows
us to query for the existence of symbols without actually materializing them. In
the future I expect more information to be attached to the JITSymbol class, for
example whether the returned symbol is a weak or strong definition. This will
allow us to properly handle weak symbols and multiple definitions.

llvm-svn: 228557
2015-02-09 01:20:51 +00:00
..
Chapter2 cmake: Add Kaleidoscope target 2015-01-06 23:39:37 +00:00
Chapter3 cmake: Add Kaleidoscope target 2015-01-06 23:39:37 +00:00
Chapter4 Reorder. 2015-01-19 00:35:33 +00:00
Chapter5 Reorder. 2015-01-19 00:35:33 +00:00
Chapter6 Reorder. 2015-01-19 00:35:33 +00:00
Chapter7 Reorder. 2015-01-19 00:35:33 +00:00
Chapter8 Reorder. 2015-01-19 00:35:33 +00:00
MCJIT Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00
Orc [Orc] Add a JITSymbol class to the Orc APIs, refactor APIs, update clients. 2015-02-09 01:20:51 +00:00
CMakeLists.txt Add CMake build support for Orc examples (& fix some clang -Werror build 2015-02-08 07:20:04 +00:00
Makefile Add Chapter 8 to the Kaleidoscope tutorial. This chapter adds 2014-12-08 18:00:47 +00:00