LLVM 22.0.0git
|
Functions in this group only apply to instructions for which LLVMIsATerminatorInst returns true. More...
Functions | |
LLVM_C_ABI unsigned | LLVMGetNumSuccessors (LLVMValueRef Term) |
Return the number of successors that this terminator has. | |
LLVM_C_ABI LLVMBasicBlockRef | LLVMGetSuccessor (LLVMValueRef Term, unsigned i) |
Return the specified successor. | |
LLVM_C_ABI void | LLVMSetSuccessor (LLVMValueRef Term, unsigned i, LLVMBasicBlockRef block) |
Update the specified successor to point at the provided block. | |
LLVM_C_ABI LLVMBool | LLVMIsConditional (LLVMValueRef Branch) |
Return if a branch is conditional. | |
LLVM_C_ABI LLVMValueRef | LLVMGetCondition (LLVMValueRef Branch) |
Return the condition of a branch instruction. | |
LLVM_C_ABI void | LLVMSetCondition (LLVMValueRef Branch, LLVMValueRef Cond) |
Set the condition of a branch instruction. | |
LLVM_C_ABI 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.
LLVM_C_ABI LLVMValueRef LLVMGetCondition | ( | LLVMValueRef | Branch | ) |
Return the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
Definition at line 3193 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVM_C_ABI unsigned LLVMGetNumSuccessors | ( | LLVMValueRef | Term | ) |
Return the number of successors that this terminator has.
Definition at line 3175 of file Core.cpp.
References llvm::unwrap().
LLVM_C_ABI LLVMBasicBlockRef LLVMGetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i ) |
Return the specified successor.
Definition at line 3179 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVM_C_ABI LLVMBasicBlockRef LLVMGetSwitchDefaultDest | ( | LLVMValueRef | SwitchInstr | ) |
Obtain the default destination basic block of a switch instruction.
This only works on llvm::SwitchInst instructions.
Definition at line 3203 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVM_C_ABI LLVMBool LLVMIsConditional | ( | LLVMValueRef | Branch | ) |
Return if a branch is conditional.
This only works on llvm::BranchInst instructions.
Definition at line 3189 of file Core.cpp.
References llvm::unwrap().
LLVM_C_ABI void LLVMSetCondition | ( | LLVMValueRef | Branch, |
LLVMValueRef | Cond ) |
Set the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
Definition at line 3197 of file Core.cpp.
References Cond, and llvm::unwrap().
LLVM_C_ABI void LLVMSetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i, | ||
LLVMBasicBlockRef | block ) |
Update the specified successor to point at the provided block.
Definition at line 3183 of file Core.cpp.
References block, and llvm::unwrap().