[PATCH] D41638: [llvm-extract] Support extracting basic blocks

Volkan Keles via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 29 15:59:42 PST 2017


volkan created this revision.
volkan added reviewers: loladiro, rafael.
Herald added a subscriber: mgorny.

Currently, there is no way to extract a basic block from a function easily. This patch
extends llvm-extract to extract the specified basic block(s).


https://reviews.llvm.org/D41638

Files:
  include/llvm/InitializePasses.h
  include/llvm/Transforms/IPO.h
  lib/Transforms/IPO/BlockExtractor.cpp
  lib/Transforms/IPO/CMakeLists.txt
  lib/Transforms/IPO/IPO.cpp
  lib/Transforms/IPO/LoopExtractor.cpp
  test/Transforms/BlockExtractor/extract-blocks.ll
  test/Transforms/BlockExtractor/invalid-block.ll
  test/Transforms/BlockExtractor/invalid-function.ll
  test/tools/llvm-extract/extract-block-multiple-functions.ll
  test/tools/llvm-extract/extract-block.ll
  test/tools/llvm-extract/extract-invalid-block.ll
  test/tools/llvm-extract/extract-multiple-blocks.ll
  tools/bugpoint/ExtractFunction.cpp
  tools/llvm-extract/llvm-extract.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41638.128351.patch
Type: text/x-patch
Size: 23480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171229/fc35e66f/attachment.bin>


More information about the llvm-commits mailing list