[llvm] 0172b13 - [docs] Fix some wording
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue May 4 10:22:09 PDT 2021
Author: Arthur Eubanks
Date: 2021-05-04T10:21:38-07:00
New Revision: 0172b1389ecfef2140d459db68f564125d5d41b6
URL: https://github.com/llvm/llvm-project/commit/0172b1389ecfef2140d459db68f564125d5d41b6
DIFF: https://github.com/llvm/llvm-project/commit/0172b1389ecfef2140d459db68f564125d5d41b6.diff
LOG: [docs] Fix some wording
Added:
Modified:
llvm/docs/NewPassManager.rst
Removed:
################################################################################
diff --git a/llvm/docs/NewPassManager.rst b/llvm/docs/NewPassManager.rst
index fb085f142fbf..b516b7d5557a 100644
--- a/llvm/docs/NewPassManager.rst
+++ b/llvm/docs/NewPassManager.rst
@@ -147,13 +147,13 @@ LLVM provides many analyses that passes can use, such as a dominator tree.
Calculating these can be expensive, so the new pass manager has
infrastructure to cache analyses and reuse them when possible.
-When a pass runs on some IR, it also receives an analysis manager which it
-can query for analyses. Querying for an analysis will cause the manager to
-check if it has already computed the result for the requested IR. If it does
-and the result is still valid, it will return that. Otherwise it will
-construct a new result by calling the analysis's ``run()`` method, cache it,
-and return it. You can also ask the analysis manager to only return an
-analysis if it's already cached.
+When a pass runs on some IR, it also receives an analysis manager which it can
+query for analyses. Querying for an analysis will cause the manager to check if
+it has already computed the result for the requested IR. If it already has and
+the result is still valid, it will return that. Otherwise it will construct a
+new result by calling the analysis's ``run()`` method, cache it, and return it.
+You can also ask the analysis manager to only return an analysis if it's
+already cached.
The analysis manager only provides analysis results for the same IR type as
what the pass runs on. For example, a function pass receives an analysis
More information about the llvm-commits
mailing list