LLVM 20.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 | ||
) |
LLVMBasicBlockRef LLVMGetCallBrDefaultDest | ( | LLVMValueRef | CallBr | ) |
Get the default destination of a CallBr instruction.
Definition at line 3111 of file Core.cpp.
References llvm::wrap().
LLVMBasicBlockRef LLVMGetCallBrIndirectDest | ( | LLVMValueRef | CallBr, |
unsigned | Idx | ||
) |
Get the indirect destination of a CallBr instruction at the given index.
Definition at line 3119 of file Core.cpp.
References Idx, and llvm::wrap().
unsigned LLVMGetCallBrNumIndirectDests | ( | LLVMValueRef | CallBr | ) |
Get the number of indirect destinations of a CallBr instruction.
LLVMTypeRef LLVMGetCalledFunctionType | ( | LLVMValueRef | C | ) |
Obtain the function type called by this instruction.
Definition at line 3051 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 3047 of file Core.cpp.
References llvm::wrap().
unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx | ||
) |
Definition at line 3008 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef * | Attrs | ||
) |
Definition at line 3015 of file Core.cpp.
References A, llvm::CallingConv::C, Idx, and llvm::wrap().
LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
Definition at line 3023 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 3030 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 3085 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 2977 of file Core.cpp.
References unwrap().
unsigned LLVMGetNumOperandBundles | ( | LLVMValueRef | C | ) |
Obtain the number of operand bundles attached to this instruction.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
Definition at line 3055 of file Core.cpp.
References llvm::CallingConv::C.
LLVMOperandBundleRef LLVMGetOperandBundleAtIndex | ( | LLVMValueRef | C, |
unsigned | Index | ||
) |
Obtain the operand bundle attached to this instruction at the given index.
Use LLVMDisposeOperandBundle to free the operand bundle.
This only works on llvm::CallInst and llvm::InvokeInst instructions.
Definition at line 3059 of file Core.cpp.
References llvm::CallingConv::C, and llvm::wrap().
LLVMTailCallKind LLVMGetTailCallKind | ( | LLVMValueRef | CallInst | ) |
Obtain a tail call kind of the call instruction.
LLVMBasicBlockRef LLVMGetUnwindDest | ( | LLVMValueRef | InvokeInst | ) |
Return the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.
Definition at line 3089 of file Core.cpp.
References 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 3037 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
Definition at line 3042 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
LLVMAttributeIndex | Idx, | ||
unsigned | Align | ||
) |
Definition at line 2995 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 2990 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.
void LLVMSetTailCall | ( | LLVMValueRef | CallInst, |
LLVMBool | IsTailCall | ||
) |
Set whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
void LLVMSetTailCallKind | ( | LLVMValueRef | CallInst, |
LLVMTailCallKind | kind | ||
) |
Set the call kind of the call instruction.
void LLVMSetUnwindDest | ( | LLVMValueRef | InvokeInst, |
LLVMBasicBlockRef | B | ||
) |
Set the unwind destination basic block.
Works on llvm::InvokeInst, llvm::CleanupReturnInst, and llvm::CatchSwitchInst instructions.