[ORC] Rename 'finalize' to 'emit' to avoid potential confusion.
authorLang Hames <lhames@gmail.com>
Sat, 18 Aug 2018 02:06:18 +0000 (02:06 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 18 Aug 2018 02:06:18 +0000 (02:06 +0000)
commit76e21c9792ce2abf7a2ba019073bfd0fe1b4134b
treec280af12181fc06e545dd8c8b92c9d577b9e7efc
parent0ac54fad538eabd9b368f6e2460898621828a72b
[ORC] Rename 'finalize' to 'emit' to avoid potential confusion.

An emitted symbol has had its contents written and its memory protections
applied, but it is not automatically ready to execute.

Prior to ORC supporting concurrent compilation, the term "finalized" could be
interpreted two different (but effectively equivalent) ways: (1) The finalized
symbol's contents have been written and its memory protections applied, and (2)
the symbol is ready to run. Now that ORC supports concurrent compilation, sense
(1) no longer implies sense (2). We have already introduced a new term, 'ready',
to capture sense (2), so rename sense (1) to 'emitted' to avoid any lingering
confusion.

llvm-svn: 340115
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp