diff options
Diffstat (limited to 'include/llvm/Transforms/Utils/FunctionUtils.h')
-rw-r--r-- | include/llvm/Transforms/Utils/FunctionUtils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/FunctionUtils.h b/include/llvm/Transforms/Utils/FunctionUtils.h index 8d71e43aa9..821a61e99b 100644 --- a/include/llvm/Transforms/Utils/FunctionUtils.h +++ b/include/llvm/Transforms/Utils/FunctionUtils.h @@ -23,6 +23,14 @@ namespace llvm { class Function; class Loop; + /// \brief Test whether a basic block is a viable candidate for extraction. + /// + /// This tests whether a particular basic block is viable for extraction into + /// a separate function. It can be used to prune code extraction eagerly + /// rather than waiting for one of the Extract* methods below to reject + /// a request. + bool isBlockViableForExtraction(const BasicBlock &BB); + /// ExtractCodeRegion - Rip out a sequence of basic blocks into a new /// function. /// |