Project Alice
|
Functions in this group apply to instructions that refer to call sites and invocations. These correspond to C++ types in the llvm::CallInst class tree.
void LLVMAddCallSiteAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef | A | ||
) |
LLVMTypeRef LLVMGetCalledFunctionType | ( | LLVMValueRef | C | ) |
Obtain the function type called by this instruction.
LLVMValueRef LLVMGetCalledValue | ( | LLVMValueRef | Instr | ) |
Obtain the pointer to the function invoked by this instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx | ||
) |
void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef * | Attrs | ||
) |
LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
LLVMAttributeRef LLVMGetCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
unsigned LLVMGetInstructionCallConv | ( | LLVMValueRef | Instr | ) |
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
LLVMBasicBlockRef LLVMGetNormalDest | ( | LLVMValueRef | InvokeInst | ) |
Return the normal destination basic block.
This only works on llvm::InvokeInst instructions.
unsigned LLVMGetNumArgOperands | ( | LLVMValueRef | Instr | ) |
Obtain the argument count for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst, llvm::InvokeInst, or llvm:FuncletPadInst.
unsigned LLVMGetNumOperandBundles | ( | LLVMValueRef | C | ) |
Obtain the number of operand bundles attached to this instruction.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
LLVMOperandBundleRef LLVMGetOperandBundleAtIndex | ( | LLVMValueRef | C, |
unsigned | Index | ||
) |
Obtain the operand bundle attached to this instruction at the given index. Use LLVMDisposeOperandBundle to free the operand bundle.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
LLVMTailCallKind LLVMGetTailCallKind | ( | LLVMValueRef | CallInst | ) |
Obtain a tail call kind of the call instruction.
LLVMBasicBlockRef LLVMGetUnwindDest | ( | LLVMValueRef | InvokeInst | ) |
Return the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
LLVMBool LLVMIsTailCall | ( | LLVMValueRef | CallInst | ) |
Obtain whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
void LLVMRemoveCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
LLVMAttributeIndex | Idx, | ||
unsigned | Align | ||
) |
void LLVMSetInstructionCallConv | ( | LLVMValueRef | Instr, |
unsigned | CC | ||
) |
Set the calling convention for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
void LLVMSetNormalDest | ( | LLVMValueRef | InvokeInst, |
LLVMBasicBlockRef | B | ||
) |
Set the normal destination basic block.
This only works on llvm::InvokeInst instructions.
void LLVMSetTailCall | ( | LLVMValueRef | CallInst, |
LLVMBool | IsTailCall | ||
) |
Set whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
void LLVMSetTailCallKind | ( | LLVMValueRef | CallInst, |
LLVMTailCallKind | kind | ||
) |
Set the call kind of the call instruction.
void LLVMSetUnwindDest | ( | LLVMValueRef | InvokeInst, |
LLVMBasicBlockRef | B | ||
) |
Set the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.