ΒΆllvm::Value* GetIfCondition(
llvm::BasicBlock* BB,
llvm::BasicBlock*& IfTrue,
llvm::BasicBlock*& IfFalse)
llvm::Value* GetIfCondition(
llvm::BasicBlock* BB,
llvm::BasicBlock*& IfTrue,
llvm::BasicBlock*& IfFalse)
Description
Check whether BB is the merge point of a if-region. If so, return the boolean condition that determines which entry into BB will be taken. Also, return by references the block that will be entered from if the condition is true, and the block that will be entered if the condition is false. This does no checking to see if the true/false blocks have large or unsavory instructions in them.
Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:339
Parameters
- llvm::BasicBlock* BB
- llvm::BasicBlock*& IfTrue
- llvm::BasicBlock*& IfFalse