Project Alice
|
Functions | |
unsigned | LLVMGetNumSuccessors (LLVMValueRef Term) |
LLVMBasicBlockRef | LLVMGetSuccessor (LLVMValueRef Term, unsigned i) |
void | LLVMSetSuccessor (LLVMValueRef Term, unsigned i, LLVMBasicBlockRef block) |
LLVMBool | LLVMIsConditional (LLVMValueRef Branch) |
LLVMValueRef | LLVMGetCondition (LLVMValueRef Branch) |
void | LLVMSetCondition (LLVMValueRef Branch, LLVMValueRef Cond) |
LLVMBasicBlockRef | LLVMGetSwitchDefaultDest (LLVMValueRef SwitchInstr) |
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.
unsigned LLVMGetNumSuccessors | ( | LLVMValueRef | Term | ) |
Return the number of successors that this terminator has.
LLVMBasicBlockRef LLVMGetSuccessor | ( | LLVMValueRef | Term, |
unsigned | i | ||
) |
Return the specified successor.
LLVMBasicBlockRef LLVMGetSwitchDefaultDest | ( | LLVMValueRef | SwitchInstr | ) |
Obtain the default destination basic block of a switch instruction.
This only works on llvm::SwitchInst instructions.
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.