LLVM 18.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 2882 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 2930 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 2926 of file Core.cpp.
References llvm::wrap().
unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx | ||
) |
Definition at line 2887 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef * | Attrs | ||
) |
Definition at line 2894 of file Core.cpp.
References A, llvm::CallingConv::C, Idx, and llvm::wrap().
LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
Definition at line 2902 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 2909 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 2954 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 2856 of file Core.cpp.
References llvm::unwrap().
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 2958 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 2916 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
Definition at line 2921 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
LLVMAttributeIndex | Idx, | ||
unsigned | Align | ||
) |
Definition at line 2874 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 2869 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 2967 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 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.
Definition at line 2971 of file Core.cpp.
References B, and llvm::unwrap().