[llvm-extract] Expose the group extraction feature of the BlockExtractor
authorQuentin Colombet <quentin.colombet@gmail.com>
Mon, 29 Apr 2019 16:14:03 +0000 (16:14 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Mon, 29 Apr 2019 16:14:03 +0000 (16:14 +0000)
commit2d977935a2984693739a6863b8f71c1f808345fc
tree3c26bf505c0a8917213437cbed7cd71a34ad9a36
parent31ce274207fd16b0277e26a021f7371783475894
[llvm-extract] Expose the group extraction feature of the BlockExtractor

This patch extends the `-bb` option to be able to use the group
extraction feature from the BlockExtractor.
In particular, `-bb=func:bb` is modified to support a list of basic
blocks per function: `-bb=func:bb1[;bb2...]` that will be extracted
together if at all possible (region must be single entry.)

Differential Revision: https://reviews.llvm.org/D60973

llvm-svn: 359464
llvm/test/tools/llvm-extract/extract-blocks-with-groups.ll [new file with mode: 0644]
llvm/tools/llvm-extract/llvm-extract.cpp