[all-commits] [llvm/llvm-project] d0bfeb: [Docs] Improve cycle and closed path definitions

Jannik Silvanus via All-commits all-commits at lists.llvm.org
Wed Aug 3 01:30:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0bfebda5b789621dd97b5dca0bd2082a82e82d9
      https://github.com/llvm/llvm-project/commit/d0bfebda5b789621dd97b5dca0bd2082a82e82d9
  Author: Jannik Silvanus <jannik.silvanus at amd.com>
  Date:   2022-08-03 (Wed, 03 Aug 2022)

  Changed paths:
    M llvm/docs/CycleTerminology.rst
    M llvm/include/llvm/ADT/GenericCycleInfo.h

  Log Message:
  -----------
  [Docs] Improve cycle and closed path definitions

Improve the cycle definition, by avoiding usage of not yet defined
or only vaguely defined terminology inside definitions.
More precisely, the existing definition defined "outermost cycles",
and then proceeded to use the term "cycles" for further definitions,
which in turn were used to actually define "cycles".

Now, instead only define "cycles". This does not change the meaning
of a cycle, which depends on the chosen surrounding (subgraph) of a CFG.

Also mention the function CFG in the first definition, because later
later definitions require it anyways.

Also slightly improve the definition of a closed path, by explicitly
requiring the inner nodes to be distinct.

Differential Revision: https://reviews.llvm.org/D130891




More information about the All-commits mailing list