LLVM 20.0.0git
|
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. | |
LLVMBasicBlockRef | LLVMGetSuccessor (LLVMValueRef Term, unsigned i) |
Return the specified successor. | |
void | LLVMSetSuccessor (LLVMValueRef Term, unsigned i, LLVMBasicBlockRef block) |
Update the specified successor to point at the provided block. | |
LLVMBool | LLVMIsConditional (LLVMValueRef Branch) |
Return if a branch is conditional. | |
LLVMValueRef | LLVMGetCondition (LLVMValueRef Branch) |
Return the condition of a branch instruction. | |
void | LLVMSetCondition (LLVMValueRef Branch, LLVMValueRef Cond) |
Set the condition of a branch instruction. | |
LLVMBasicBlockRef | LLVMGetSwitchDefaultDest (LLVMValueRef SwitchInstr) |
Obtain the default destination basic block of a switch instruction. | |
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 3175 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 3161 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 3185 of file Core.cpp.
References llvm::wrap().
LLVMBool LLVMIsConditional | ( | LLVMValueRef | Branch | ) |
Return if a branch is conditional.
This only works on llvm::BranchInst instructions.
void LLVMSetCondition | ( | LLVMValueRef | Branch, |
LLVMValueRef | Cond | ||
) |
Set the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
void LLVMSetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i, | ||
LLVMBasicBlockRef | block | ||
) |
Update the specified successor to point at the provided block.