MIR: Add method to stop after specific runs of passes
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 4 Dec 2018 17:45:12 +0000 (17:45 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 4 Dec 2018 17:45:12 +0000 (17:45 +0000)
commit43153024ab638b3a971038cd6f8b650667de77e4
tree88f0bf6b8836bdd77bb82468a7abfd9c15183d41
parentd23b5ed85757ed4a2ea4835e69177b5e7dedc5b4
MIR: Add method to stop after specific runs of passes

Currently if you use -{start,stop}-{before,after}, it picks
the first instance with the matching pass name. If you run
the same pass multiple times, there's no way to distinguish them.

Allow specifying a run index wih ,N to specify which you mean.

llvm-svn: 348285
llvm/docs/MIRLangRef.rst
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/test/CodeGen/Generic/llc-start-stop-instance-errors.ll [new file with mode: 0644]
llvm/test/CodeGen/Generic/llc-start-stop-instance.ll [new file with mode: 0644]