|
LLVM
4.0.0
|
Functions in this group apply to instructions that refer to call sites and invocations. More...
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 LLVMAddCallSiteAttribute | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| LLVMAttributeRef | A | ||
| ) |
Definition at line 2174 of file Core.cpp.
References llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::addAttribute(), and llvm::unwrap().
| LLVMValueRef LLVMGetCalledValue | ( | LLVMValueRef | Instr | ) |
Obtain the pointer to the function invoked by this instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
Definition at line 2223 of file Core.cpp.
References llvm::wrap().
| unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx | ||
| ) |
Definition at line 2179 of file Core.cpp.
References llvm::AttributeSetNode::get(), and llvm::AttributeSetNode::getNumAttributes().
| void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| LLVMAttributeRef * | Attrs | ||
| ) |
Definition at line 2188 of file Core.cpp.
References A, llvm::AttributeSetNode::get(), llvm::make_range(), and llvm::wrap().
| LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| unsigned | KindID | ||
| ) |
Definition at line 2198 of file Core.cpp.
References llvm::wrap().
| LLVMAttributeRef LLVMGetCallSiteStringAttribute | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| const char * | K, | ||
| unsigned | KLen | ||
| ) |
Definition at line 2205 of file Core.cpp.
References llvm::wrap().
| unsigned LLVMGetInstructionCallConv | ( | LLVMValueRef | Instr | ) |
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
Definition at line 2154 of file Core.cpp.
References llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getCallingConv().
| LLVMBasicBlockRef LLVMGetNormalDest | ( | LLVMValueRef | InvokeInst | ) |
Return the normal destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2239 of file Core.cpp.
References llvm::wrap().
| unsigned LLVMGetNumArgOperands | ( | LLVMValueRef | Instr | ) |
Obtain the argument count for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
| LLVMBasicBlockRef LLVMGetUnwindDest | ( | LLVMValueRef | InvokeInst | ) |
Return the unwind destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2243 of file Core.cpp.
References llvm::wrap().
| LLVMBool LLVMIsTailCall | ( | LLVMValueRef | CallInst | ) |
Obtain whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
Definition at line 2229 of file Core.cpp.
References llvm::Call.
| void LLVMRemoveCallSiteEnumAttribute | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| unsigned | KindID | ||
| ) |
| void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
| LLVMAttributeIndex | Idx, | ||
| const char * | K, | ||
| unsigned | KLen | ||
| ) |
| void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
| unsigned | index, | ||
| unsigned | Align | ||
| ) |
Definition at line 2163 of file Core.cpp.
References llvm::AttrBuilder::addAlignmentAttr(), llvm::AttributeSet::addAttributes(), B, llvm::Call, llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getAttributes(), and llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, 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 2158 of file Core.cpp.
References llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::setCallingConv().
| void LLVMSetNormalDest | ( | LLVMValueRef | InvokeInst, |
| LLVMBasicBlockRef | B | ||
| ) |
Set the normal destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2247 of file Core.cpp.
References 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 2233 of file Core.cpp.
References llvm::Call.
| void LLVMSetUnwindDest | ( | LLVMValueRef | InvokeInst, |
| LLVMBasicBlockRef | B | ||
| ) |
Set the unwind destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2251 of file Core.cpp.
References llvm::unwrap().
1.8.6