LLVM  mainline
Functions
Call Sites and Invocations
Instructions

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

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 2026 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 2077 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 2035 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 2081 of file Core.cpp.

References llvm::Call.