Generalize the PassConfig API and remove addFinalizeRegAlloc().
authorAndrew Trick <atrick@apple.com>
Wed, 10 Apr 2013 01:06:56 +0000 (01:06 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 10 Apr 2013 01:06:56 +0000 (01:06 +0000)
commit5ed028385c39f3de4570fa6f77c734d968d26902
tree2c8c05693e181f5a10b8ae3b15ae62fa662c601b
parenta9a5c537ad0bf5ab68ed79c163500a4fcb3fc3ff
Generalize the PassConfig API and remove addFinalizeRegAlloc().

The target hooks are getting out of hand. What does it mean to run
before or after regalloc anyway? Allowing either Pass* or AnalysisID
pass identification should make it much easier for targets to use the
substitutePass and insertPass APIs, and create less need for badly
named target hooks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179140 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Passes.h
lib/CodeGen/Passes.cpp