Introduce -dot-cfg-mssa option which creates dot-cfg style file with mssa comments...
authorJamie Schmeiser <schmeise@ca.ibm.com>
Thu, 12 Nov 2020 15:41:11 +0000 (15:41 +0000)
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>
Thu, 12 Nov 2020 15:41:16 +0000 (15:41 +0000)
commit45d459e7522ddc512ac70c4c822d58d335099672
tree82f21eaffce023c1b8fdb196887b0e5e350a811d
parent9ca02d6fe166e4dcc8e651592883171af47257c9
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]