LLVM 19.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 2910 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 2958 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 2954 of file Core.cpp.
References llvm::wrap().
unsigned LLVMGetCallSiteAttributeCount | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx | ||
) |
Definition at line 2915 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMGetCallSiteAttributes | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
LLVMAttributeRef * | Attrs | ||
) |
Definition at line 2922 of file Core.cpp.
References A, llvm::CallingConv::C, Idx, and llvm::wrap().
LLVMAttributeRef LLVMGetCallSiteEnumAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
unsigned | KindID | ||
) |
Definition at line 2930 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 2937 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 2992 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 2884 of file Core.cpp.
References llvm::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 2962 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 2966 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 2996 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 2944 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMRemoveCallSiteStringAttribute | ( | LLVMValueRef | C, |
LLVMAttributeIndex | Idx, | ||
const char * | K, | ||
unsigned | KLen | ||
) |
Definition at line 2949 of file Core.cpp.
References llvm::CallingConv::C, and Idx.
void LLVMSetInstrParamAlignment | ( | LLVMValueRef | Instr, |
LLVMAttributeIndex | Idx, | ||
unsigned | Align | ||
) |
Definition at line 2902 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 2897 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 3005 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 3009 of file Core.cpp.
References B, and llvm::unwrap().