summaryrefslogtreecommitdiffstats
path: root/llvm/docs/ORCv2.rst
Commit message (Collapse)AuthorAgeFilesLines
* [docs] NFC: Fix typos in documentsHans Wennborg2020-01-071-2/+2
| | | | | | | | | "the the" -> "the" "an" -> "a" Patch by Kazuaki Ishizaki <ishizaki@jp.ibm.com>! Differential revision: https://reviews.llvm.org/D72091
* Fix a few spellos in docs.Nico Weber2019-09-131-5/+5
| | | | | | (Trying to debug an incremental build thing on a bot...) llvm-svn: 371860
* [docs] Add some comments to the inline LLJIT example.Lang Hames2019-09-041-0/+2
| | | | llvm-svn: 370950
* [llvm] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere2019-08-151-8/+8
| | | | | | | | Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances across the monorepo. llvm-svn: 369013
* [docs] Fix sphinx doc generation errorsJordan Rupprecht2019-08-141-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Errors fixed: - GettingStarted: Duplicate explicit target name: "cmake" - GlobalISel: Unexpected indentation - LoopTerminology: Explicit markup ends without a blank line; unexpected unindent - ORCv2: Definition list ends without a blank line; unexpected unindent - Misc: document isn't included in any toctree Verified that a clean docs build (`rm -rf docs/ && ninja docs-llvm-html`) passes with no errors. Spot checked the individual pages to make sure they look OK. Reviewers: thakis, dsanders Reviewed By: dsanders Subscribers: arphaman, llvm-commits, lhames, rovka, dsanders, reames Tags: #llvm Differential Revision: https://reviews.llvm.org/D66183 llvm-svn: 368932
* [ORC] Change the locking scheme for ThreadSafeModule.Lang Hames2019-08-021-28/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ThreadSafeModule/ThreadSafeContext are used to manage lifetimes and locking for LLVMContexts in ORCv2. Prior to this patch contexts were locked as soon as an associated Module was emitted (to be compiled and linked), and were not unlocked until the emit call returned. This could lead to deadlocks if interdependent modules that shared contexts were compiled on different threads: when, during emission of the first module, the dependence was discovered the second module (which would provide the required symbol) could not be emitted as the thread emitting the first module still held the lock. This patch eliminates this possibility by moving to a finer-grained locking scheme. Each client holds the module lock only while they are actively operating on it. To make this finer grained locking simpler/safer to implement this patch removes the explicit lock method, 'getContextLock', from ThreadSafeModule and replaces it with a new method, 'withModuleDo', that implicitly locks the context, calls a user-supplied function object to operate on the Module, then implicitly unlocks the context before returning the result. ThreadSafeModule TSM = getModule(...); size_t NumFunctions = TSM.withModuleDo( [](Module &M) { // <- context locked before entry to lambda. return M.size(); }); Existing ORCv2 layers that operate on ThreadSafeModules are updated to use the new method. This method is used to introduce Module locking into each of the existing layers. llvm-svn: 367686
* [docs] Add references to unreferenced footnotes.Lang Hames2019-07-311-13/+13
| | | | | | Thanks to Stefan Granitz for catching the issue. llvm-svn: 367458
* [ORC][docs] Fix an RST error: the code-block directive needs a newline after it.Lang Hames2019-07-161-0/+1
| | | | llvm-svn: 366270
* [ORC][docs] Trim ORCv1 to ORCv2 transition section, add a how-to section.Lang Hames2019-07-161-121/+288
| | | | llvm-svn: 366269
* [ORC] Start adding ORCv1 to ORCv2 transition tips to the ORCv2 doc.Lang Hames2019-07-151-0/+464
llvm-svn: 366075
OpenPOWER on IntegriCloud