LLVM 17.0.0git
|
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 2837 of file Core.cpp.
References A, llvm::CallingConv::C, Idx, and llvm::unwrap().
LLVMTypeRef LLVMGetCalledFunctionType | ( | LLVMValueRef | C | ) |
Obtain the function type called by this instruction.
Definition at line 2885 of file Core.cpp.
References llvm::wrap().
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 2881 of file Core.cpp.
References llvm::wrap().
unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx | ||
) |
Definition at line 2842 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef * | Attrs | ||
) |
Definition at line 2849 of file Core.cpp.
References A, llvm::CallingConv::C, Idx, and llvm::wrap().
LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
Definition at line 2857 of file Core.cpp.
References llvm::CallingConv::C, Idx, and llvm::wrap().
LLVMAttributeRef LLVMGetCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
Definition at line 2864 of file Core.cpp.
References llvm::CallingConv::C, Idx, and llvm::wrap().
unsigned LLVMGetInstructionCallConv | ( | LLVMValueRef | Instr | ) |
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
LLVMBasicBlockRef LLVMGetNormalDest | ( | LLVMValueRef | InvokeInst | ) |
Return the normal destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2901 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, llvm::InvokeInst, or llvm:FuncletPadInst.
Definition at line 2811 of file Core.cpp.
References llvm::unwrap().
LLVMBasicBlockRef LLVMGetUnwindDest | ( | LLVMValueRef | InvokeInst | ) |
Return the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
Definition at line 2905 of file Core.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVMBool LLVMIsTailCall | ( | LLVMValueRef | CallInst | ) |
Obtain whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
void LLVMRemoveCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
Definition at line 2871 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
Definition at line 2876 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
LLVMAttributeIndex | Idx, | ||
unsigned | Align | ||
) |
Definition at line 2829 of file Core.cpp.
References llvm::Attribute::getWithAlignment(), and Idx.
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 2824 of file Core.cpp.
References CC.
void LLVMSetNormalDest | ( | LLVMValueRef | InvokeInst, |
LLVMBasicBlockRef | B | ||
) |
Set the normal destination basic block.
This only works on llvm::InvokeInst instructions.
Definition at line 2914 of file Core.cpp.
References B, 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.
void LLVMSetUnwindDest | ( | LLVMValueRef | InvokeInst, |
LLVMBasicBlockRef | B | ||
) |
Set the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
Definition at line 2918 of file Core.cpp.
References B, and llvm::unwrap().