OSDN Git Service

Reland: Introduce -dot-cfg-mssa option which creates dot-cfg style file with mssa...
authorJamie Schmeiser <schmeise@ca.ibm.com>
Thu, 12 Nov 2020 17:39:10 +0000 (17:39 +0000)
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>
Thu, 12 Nov 2020 17:39:14 +0000 (17:39 +0000)
commit5f672fefeb26b741a655a4f1938bbc9984e34ead
treed586de3954e5b2cf47b8905f81ed7611ac42a7a7
parent37a1336de722c6920a24e8cd4278e396402f1b2a
Reland: Introduce -dot-cfg-mssa option which creates dot-cfg style file with mssa comments included in source

Summary:
Expand the print-memoryssa and print<memoryssa> passes with a new hidden
option -cfg-dot-mssa that names a file. When set, a dot-cfg style file
will be generated into the named file with the memoryssa comments retained
and those blocks containing them shown in light pink. The option does
nothing in isolation.

Author: Jamie Schmeiser <schmeise@ca.ibm.com>

Reviewed By: asbirlea (Alina Sbirlea), dblaikie (David Blaikie)

Differential Revision: https://reviews.llvm.org/D90638
llvm/include/llvm/Analysis/CFGPrinter.h
llvm/lib/Analysis/MemorySSA.cpp
llvm/test/Analysis/MemorySSA/print-dot-cfg-mssa.ll [new file with mode: 0644]