[PATCH] D80529: [DDG] Data Dependence Graph - Add query function for memory dependencies between two nodes

Bardia Mahjour via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 25 12:19:52 PDT 2020


bmahjour created this revision.
bmahjour added reviewers: Meinersbur, etiotto, Whitney.
bmahjour added a project: LLVM.
Herald added a subscriber: mgorny.

When working with the DDG it's useful to be able to query details of the memory dependencies between two nodes connected by a memory edge. The DDG does not hold a copy of the dependencies, but it contains a reference to a DependenceInfo object through which dependence information can be queried. This patch adds a query function to the DDG to obtain all the `Dependence` objects that exist between instructions of two nodes.

The same function has also been proposed under https://reviews.llvm.org/D73801, but since the review may take loner we'd like to add this query function as a separate revision here to unblock other uses of the DDG.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80529

Files:
  llvm/include/llvm/Analysis/DDG.h
  llvm/unittests/Analysis/CMakeLists.txt
  llvm/unittests/Analysis/DDGTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80529.266061.patch
Type: text/x-patch
Size: 7670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200525/259ddbee/attachment-0001.bin>


More information about the llvm-commits mailing list