LLVM API Documentation
|
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) |
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.
| void LLVMAddInstrAttribute | ( | LLVMValueRef | Instr, |
| unsigned | index, | ||
| LLVMAttribute | |||
| ) |
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
Definition at line 1893 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.
Definition at line 1944 of file Core.cpp.
References llvm::Call.
| void LLVMRemoveInstrAttribute | ( | LLVMValueRef | Instr, |
| unsigned | index, | ||
| LLVMAttribute | |||
| ) |
Definition at line 1921 of file Core.cpp.
References llvm::Call, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getAttributes(), llvm::AttributeSet::removeAttributes(), and llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::setAttributes().
| void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
| unsigned | index, | ||
| unsigned | align | ||
| ) |
Definition at line 1931 of file Core.cpp.
References llvm::AttrBuilder::addAlignmentAttr(), llvm::AttributeSet::addAttributes(), llvm::Call, llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::getAttributes(), and llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::setAttributes().
| 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.
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.
Definition at line 1948 of file Core.cpp.
References llvm::Call.