add options to stop and dump IR
add options to stop and dump IR

Summary:
Usage example: `redex-all --stop-pass 3 --output-ir ~/local/ir_output/ ...`

It will run pass0, pass1, pass2 and an additional RegAllocPass, then stop and dump dex and additional meta data.

Note that the parameters are usually generated by python script, our `fb-redex`.

Reviewed By: minjang, justinjhendrick

Differential Revision: D9302942

fbshipit-source-id: cb240ca35ae3108b54d57667ddfe25996f1525ee

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex