Add TargetMachine::addEarlyAsPossiblePasses, and call it from opt.
authorJustin Lebar <jlebar@google.com>
Wed, 27 Apr 2016 19:08:24 +0000 (19:08 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 27 Apr 2016 19:08:24 +0000 (19:08 +0000)
commit6e1089b3a7501694bc52cc3ec5a690760a28d11c
tree67d1f98cb6df2bb2c8c0b4af57aca1663361ebed
parentace97c1f7d46140b19854b63c5e0a537f5c512cd
Add TargetMachine::addEarlyAsPossiblePasses, and call it from opt.

Summary:
This is a hook to allow TargetMachine to install passes at the
EP_EarlyAsPossible PassManagerBuilder extension point.

Reviewers: chandlerc

Subscribers: llvm-commits

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

llvm-svn: 267763
llvm/include/llvm/Target/TargetMachine.h
llvm/tools/opt/opt.cpp