LLVM API Documentation

Functions
PHI Nodes
Instructions
Collaboration diagram for PHI Nodes:

Functions

void LLVMAddIncoming (LLVMValueRef PhiNode, LLVMValueRef *IncomingValues, LLVMBasicBlockRef *IncomingBlocks, unsigned Count)
unsigned LLVMCountIncoming (LLVMValueRef PhiNode)
LLVMValueRef LLVMGetIncomingValue (LLVMValueRef PhiNode, unsigned Index)
LLVMBasicBlockRef LLVMGetIncomingBlock (LLVMValueRef PhiNode, unsigned Index)

Detailed Description

Functions in this group only apply to instructions that map to llvm::PHINode instances.


Function Documentation

void LLVMAddIncoming ( LLVMValueRef  PhiNode,
LLVMValueRef IncomingValues,
LLVMBasicBlockRef IncomingBlocks,
unsigned  Count 
)

Add an incoming value to the end of a PHI list.

Definition at line 1793 of file Core.cpp.

References llvm::PHINode::addIncoming(), llvm::ARM_PROC::I, and llvm::unwrap().

unsigned LLVMCountIncoming ( LLVMValueRef  PhiNode)

Obtain the number of incoming basic blocks to a PHI node.

Definition at line 1800 of file Core.cpp.

LLVMBasicBlockRef LLVMGetIncomingBlock ( LLVMValueRef  PhiNode,
unsigned  Index 
)

Obtain an incoming value to a PHI node as a LLVMBasicBlockRef.

Definition at line 1808 of file Core.cpp.

References llvm::wrap().

LLVMValueRef LLVMGetIncomingValue ( LLVMValueRef  PhiNode,
unsigned  Index 
)

Obtain an incoming value to a PHI node as a LLVMValueRef.

Definition at line 1804 of file Core.cpp.

References llvm::wrap().