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   
)

Obtain the calling convention for a call instruction.

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

See also:
LLVMSetInstructionCallConv()

Definition at line 1893 of file Core.cpp.

References llvm_unreachable, and llvm::unwrap().

Obtain whether a call instruction is a tail call.

This only works on llvm::CallInst instructions.

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

Definition at line 1944 of file Core.cpp.

References llvm::Call.

void LLVMSetInstrParamAlignment ( LLVMValueRef  Instr,
unsigned  index,
unsigned  align 
)

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 1902 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 1948 of file Core.cpp.

References llvm::Call.