summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-07-24 23:24:13 +0000
committerPhilip Reames <listmail@philipreames.com>2019-07-24 23:24:13 +0000
commit58b4787a22cb9e2de361db8d854f4b9d6a6a21bf (patch)
tree1fb302e95fe6590b3eb2f127f096b464c6324d60 /llvm/include
parent728b18f29f970af753750a0d8d11b94ad4966286 (diff)
downloadbcm5719-llvm-58b4787a22cb9e2de361db8d854f4b9d6a6a21bf.tar.gz
bcm5719-llvm-58b4787a22cb9e2de361db8d854f4b9d6a6a21bf.zip
Define some basic terminology around loops in our documentation
I've noticed a lot of confusion around this area recently with key terms being misused in a number of threads. To help reign that in, let's go ahead and document the current terminology and meaning thereof. My hope is to grow this over time into a broader discussion of canonical loop forms - yes, there are more than one ... many more than one - but for the moment, simply having the key terminology is a good stopping place. Note: I am landing this *without* an LGTM. All feedback so far has been positive, and trying to apply all of the suggested changes/extensions would cause the review to never end. Instead, I decided to land it with the obvious fixes made based on reviewer comments, then iterate from there. Differential Revision: https://reviews.llvm.org/D65164 llvm-svn: 366960
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/LoopInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h
index 584eb3a8c85..b64e1f5548d 100644
--- a/llvm/include/llvm/Analysis/LoopInfo.h
+++ b/llvm/include/llvm/Analysis/LoopInfo.h
@@ -30,6 +30,9 @@
// instance. In particular, a Loop might be inside such a non-loop SCC, or a
// non-loop SCC might contain a sub-SCC which is a Loop.
//
+// For an overview of terminology used in this API (and thus all of our loop
+// analyses or transforms), see docs/LoopTerminology.rst.
+//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_LOOPINFO_H
OpenPOWER on IntegriCloud