llc: Add a 'run-pass' option.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 6 Jul 2015 17:44:26 +0000 (17:44 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 6 Jul 2015 17:44:26 +0000 (17:44 +0000)
commitedfa571cbd115bf534d8aa92c8d9da1253f6ac76
tree98d7fa320e5afd6b5330f63c5f8bef2202de193f
parentb560f9ca2fee8c4e060d486367cf19f3b1774921
llc: Add a 'run-pass' option.

This commit adds a 'run-pass' option to llc, which instructs the compiler to run
one specific code generation pass only.

Llc already has the 'start-after' and the 'stop-after' options, and this new
option complements the other two by making it easier to write tests that want
to invoke a single pass only.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10776

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241476 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/CommandFlags.h
include/llvm/CodeGen/Passes.h
include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/Passes.cpp
lib/Target/CppBackend/CPPBackend.cpp
lib/Target/CppBackend/CPPTargetMachine.h
test/CodeGen/Generic/run-pass.ll [new file with mode: 0644]
tools/llc/llc.cpp