LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Call Sites and Invocations
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 1787 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 1838 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 1796 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 1842 of file Core.cpp.

References llvm::Call.