LLVM: Call Sites and Invocations (original) (raw)

Functions in this group apply to instructions that refer to call sites and invocations. More...

Functions
LLVM_C_ABI unsigned LLVMGetNumArgOperands (LLVMValueRef Instr)
Obtain the argument count for a call instruction.
LLVM_C_ABI void LLVMSetInstructionCallConv (LLVMValueRef Instr, unsigned CC)
Set the calling convention for a call instruction.
LLVM_C_ABI unsigned LLVMGetInstructionCallConv (LLVMValueRef Instr)
Obtain the calling convention for a call instruction.
LLVM_C_ABI void LLVMSetInstrParamAlignment (LLVMValueRef Instr, LLVMAttributeIndex Idx, unsigned Align)
LLVM_C_ABI void LLVMAddCallSiteAttribute (LLVMValueRef C, LLVMAttributeIndex Idx, LLVMAttributeRef A)
LLVM_C_ABI unsigned LLVMGetCallSiteAttributeCount (LLVMValueRef C, LLVMAttributeIndex Idx)
LLVM_C_ABI void LLVMGetCallSiteAttributes (LLVMValueRef C, LLVMAttributeIndex Idx, LLVMAttributeRef *Attrs)
LLVM_C_ABI LLVMAttributeRef LLVMGetCallSiteEnumAttribute (LLVMValueRef C, LLVMAttributeIndex Idx, unsigned KindID)
LLVM_C_ABI LLVMAttributeRef LLVMGetCallSiteStringAttribute (LLVMValueRef C, LLVMAttributeIndex Idx, const char *K, unsigned KLen)
LLVM_C_ABI void LLVMRemoveCallSiteEnumAttribute (LLVMValueRef C, LLVMAttributeIndex Idx, unsigned KindID)
LLVM_C_ABI void LLVMRemoveCallSiteStringAttribute (LLVMValueRef C, LLVMAttributeIndex Idx, const char *K, unsigned KLen)
LLVM_C_ABI LLVMTypeRef LLVMGetCalledFunctionType (LLVMValueRef C)
Obtain the function type called by this instruction.
LLVM_C_ABI LLVMValueRef LLVMGetCalledValue (LLVMValueRef Instr)
Obtain the pointer to the function invoked by this instruction.
LLVM_C_ABI unsigned LLVMGetNumOperandBundles (LLVMValueRef C)
Obtain the number of operand bundles attached to this instruction.
LLVM_C_ABI LLVMOperandBundleRef LLVMGetOperandBundleAtIndex (LLVMValueRef C, unsigned Index)
Obtain the operand bundle attached to this instruction at the given index.
LLVM_C_ABI LLVMBool LLVMIsTailCall (LLVMValueRef CallInst)
Obtain whether a call instruction is a tail call.
LLVM_C_ABI void LLVMSetTailCall (LLVMValueRef CallInst, LLVMBool IsTailCall)
Set whether a call instruction is a tail call.
LLVM_C_ABI LLVMTailCallKind LLVMGetTailCallKind (LLVMValueRef CallInst)
Obtain a tail call kind of the call instruction.
LLVM_C_ABI void LLVMSetTailCallKind (LLVMValueRef CallInst, LLVMTailCallKind kind)
Set the call kind of the call instruction.
LLVM_C_ABI LLVMBasicBlockRef LLVMGetNormalDest (LLVMValueRef InvokeInst)
Return the normal destination basic block.
LLVM_C_ABI LLVMBasicBlockRef LLVMGetUnwindDest (LLVMValueRef InvokeInst)
Return the unwind destination basic block.
LLVM_C_ABI void LLVMSetNormalDest (LLVMValueRef InvokeInst, LLVMBasicBlockRef B)
Set the normal destination basic block.
LLVM_C_ABI void LLVMSetUnwindDest (LLVMValueRef InvokeInst, LLVMBasicBlockRef B)
Set the unwind destination basic block.
LLVM_C_ABI LLVMBasicBlockRef LLVMGetCallBrDefaultDest (LLVMValueRef CallBr)
Get the default destination of a CallBr instruction.
LLVM_C_ABI unsigned LLVMGetCallBrNumIndirectDests (LLVMValueRef CallBr)
Get the number of indirect destinations of a CallBr instruction.
LLVM_C_ABI LLVMBasicBlockRef LLVMGetCallBrIndirectDest (LLVMValueRef CallBr, unsigned Idx)
Get the indirect destination of a CallBr instruction at the given index.

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.

LLVMAddCallSiteAttribute()

LLVMGetCallBrDefaultDest()

LLVMGetCallBrIndirectDest()

LLVMGetCallBrNumIndirectDests()

LLVMGetCalledFunctionType()

LLVMGetCalledValue()

LLVMGetCallSiteAttributeCount()

LLVMGetCallSiteAttributes()

LLVMGetCallSiteEnumAttribute()

LLVMGetCallSiteStringAttribute()

LLVMGetInstructionCallConv()

Obtain the calling convention for a call instruction.

This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.

See also

LLVMSetInstructionCallConv()

Definition at line 3093 of file Core.cpp.

References llvm::unwrap().

LLVMGetNormalDest()

LLVMGetNumArgOperands()

LLVMGetNumOperandBundles()

LLVMGetOperandBundleAtIndex()

LLVMGetTailCallKind()

LLVMGetUnwindDest()

LLVMIsTailCall()

LLVMRemoveCallSiteEnumAttribute()

LLVMRemoveCallSiteStringAttribute()

LLVMSetInstrParamAlignment()

LLVMSetInstructionCallConv()

LLVMSetNormalDest()

LLVMSetTailCall()

LLVMSetTailCallKind()

LLVMSetUnwindDest()