LLVM
8.0.1
|
Functions in this group only apply to instructions for which LLVMIsATerminatorInst returns true. More...
Functions | |
unsigned | LLVMGetNumSuccessors (LLVMValueRef Term) |
Return the number of successors that this terminator has. More... | |
LLVMBasicBlockRef | LLVMGetSuccessor (LLVMValueRef Term, unsigned i) |
Return the specified successor. More... | |
void | LLVMSetSuccessor (LLVMValueRef Term, unsigned i, LLVMBasicBlockRef block) |
Update the specified successor to point at the provided block. More... | |
LLVMBool | LLVMIsConditional (LLVMValueRef Branch) |
Return if a branch is conditional. More... | |
LLVMValueRef | LLVMGetCondition (LLVMValueRef Branch) |
Return the condition of a branch instruction. More... | |
void | LLVMSetCondition (LLVMValueRef Branch, LLVMValueRef Cond) |
Set the condition of a branch instruction. More... | |
LLVMBasicBlockRef | LLVMGetSwitchDefaultDest (LLVMValueRef SwitchInstr) |
Obtain the default destination basic block of a switch instruction. More... | |
Functions in this group only apply to instructions for which LLVMIsATerminatorInst returns true.
LLVMValueRef LLVMGetCondition | ( | LLVMValueRef | Branch | ) |
Return the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
Definition at line 2797 of file Core.cpp.
References llvm::wrap().
unsigned LLVMGetNumSuccessors | ( | LLVMValueRef | Term | ) |
Return the number of successors that this terminator has.
LLVMBasicBlockRef LLVMGetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i | ||
) |
Return the specified successor.
Definition at line 2783 of file Core.cpp.
References llvm::wrap().
LLVMBasicBlockRef LLVMGetSwitchDefaultDest | ( | LLVMValueRef | SwitchInstr | ) |
Obtain the default destination basic block of a switch instruction.
This only works on llvm::SwitchInst instructions.
Definition at line 2807 of file Core.cpp.
References llvm::wrap().
LLVMBool LLVMIsConditional | ( | LLVMValueRef | Branch | ) |
Return if a branch is conditional.
This only works on llvm::BranchInst instructions.
Definition at line 2793 of file Core.cpp.
References llvm::MCID::Branch.
void LLVMSetCondition | ( | LLVMValueRef | Branch, |
LLVMValueRef | Cond | ||
) |
Set the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
Definition at line 2801 of file Core.cpp.
References llvm::MCID::Branch, and llvm::unwrap().
void LLVMSetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i, | ||
LLVMBasicBlockRef | block | ||
) |
Update the specified successor to point at the provided block.
Definition at line 2787 of file Core.cpp.
References llvm::unwrap().