LLVM  3.7.0
Functions
Call Sites and Invocations

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

Collaboration diagram for Call Sites and Invocations:

Functions

void LLVMSetInstructionCallConv (LLVMValueRef Instr, unsigned CC)
 Set the calling convention for a call instruction. More...
 
unsigned LLVMGetInstructionCallConv (LLVMValueRef Instr)
 Obtain the calling convention for a call instruction. More...
 
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)
 Obtain whether a call instruction is a tail call. More...
 
void LLVMSetTailCall (LLVMValueRef CallInst, LLVMBool IsTailCall)
 Set whether a call instruction is a tail call. More...
 

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 2034 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 2085 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 2043 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 2089 of file Core.cpp.

References llvm::Call.