LLVM API Documentation

Functions
Call Sites and Invocations
Instructions
Collaboration diagram for Call Sites and Invocations:

Functions

void LLVMSetInstructionCallConv (LLVMValueRef Instr, unsigned CC)
unsigned LLVMGetInstructionCallConv (LLVMValueRef Instr)
void LLVMAddInstrAttribute (LLVMValueRef Instr, unsigned index, LLVMAttribute)
void LLVMRemoveInstrAttribute (LLVMValueRef Instr, unsigned index, LLVMAttribute)
void LLVMSetInstrParamAlignment (LLVMValueRef Instr, unsigned index, unsigned align)
LLVMBool LLVMIsTailCall (LLVMValueRef CallInst)
void LLVMSetTailCall (LLVMValueRef CallInst, LLVMBool IsTailCall)

Detailed Description

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.


Function Documentation

void LLVMAddInstrAttribute ( LLVMValueRef  Instr,
unsigned  index,
LLVMAttribute   
)
unsigned LLVMGetInstructionCallConv ( LLVMValueRef  Instr)

Obtain the calling convention for a call instruction.

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

See also:
LLVMSetInstructionCallConv()

Definition at line 1730 of file Core.cpp.

References llvm_unreachable, and llvm::unwrap().

LLVMBool LLVMIsTailCall ( LLVMValueRef  CallInst)

Obtain whether a call instruction is a tail call.

This only works on llvm::CallInst instructions.

See also:
llvm::CallInst::isTailCall()

Definition at line 1781 of file Core.cpp.

References llvm::Call.

void LLVMRemoveInstrAttribute ( LLVMValueRef  Instr,
unsigned  index,
LLVMAttribute   
)
void LLVMSetInstrParamAlignment ( LLVMValueRef  Instr,
unsigned  index,
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.

See also:
llvm::CallInst::setCallingConv()
llvm::InvokeInst::setCallingConv()

Definition at line 1739 of file Core.cpp.

References llvm_unreachable, and llvm::unwrap().

void LLVMSetTailCall ( LLVMValueRef  CallInst,
LLVMBool  IsTailCall 
)

Set whether a call instruction is a tail call.

This only works on llvm::CallInst instructions.

See also:
llvm::CallInst::setTailCall()

Definition at line 1785 of file Core.cpp.

References llvm::Call.