wrap overloads
Synopses
Declared in <llvm/Support/Error.h>
Wrap an Attribute as an opaque C API reference.
Conversion from Error to LLVMErrorRef for C error bindings.
Convert a C++ code model to its LLVM C API equivalent.
LLVMCodeModel
wrap(CodeModel::Model Model);
Convert a BasicBlock pointer to an opaque LLVMBasicBlockRef.
LLVMBasicBlockRef
wrap(BasicBlock const* P);
Convert a Comdat pointer to an opaque LLVMComdatRef.
Convert a DIBuilder pointer to an opaque LLVMDIBuilderRef.
Convert a DataLayout pointer to an opaque LLVMTargetDataRef.
LLVMTargetDataRef
wrap(DataLayout const* P);
Wrap a DbgRecord pointer as an opaque LLVMDbgRecordRef.
Convert a DiagnosticInfo pointer to an opaque LLVMDiagnosticInfoRef.
LLVMDiagnosticInfoRef
wrap(DiagnosticInfo const* P);
Convert an ExecutionEngine pointer to an opaque LLVMExecutionEngineRef.
LLVMExecutionEngineRef
wrap(ExecutionEngine const* P);
C API conversion helpers for JITEventListener / LLVMJITEventListenerRef, including unwrap and wrap.
LLVMJITEventListenerRef
wrap(JITEventListener const* P);
Wrap a LLVMContext pointer as an opaque C API reference.
LLVMContextRef
wrap(LLVMContext const* P);
Convert a MemoryBuffer pointer to an LLVMMemoryBufferRef.
LLVMMemoryBufferRef
wrap(MemoryBuffer const* P);
Wrap a Metadata pointer as an opaque LLVMMetadataRef.
Convert a Module pointer to an opaque LLVMModuleRef.
Wrap a NamedMDNode as an opaque LLVMNamedMDNodeRef.
LLVMNamedMDNodeRef
wrap(NamedMDNode const* P);
Convert a PassManagerBase pointer to an opaque LLVMPassManagerRef.
LLVMPassManagerRef
wrap(legacy::PassManagerBase const* P);
C API conversion helpers for RTDyldMemoryManager / LLVMMCJITMemoryManagerRef, including unwrap and wrap.
LLVMMCJITMemoryManagerRef
wrap(RTDyldMemoryManager const* P);
C API conversion helpers for Type / LLVMTypeRef, including typed unwrap.
Convert a Use pointer to an opaque LLVMUseRef.
Convert a Value pointer to an opaque LLVMValueRef.
Convert an IRBuilder<> pointer to an opaque LLVMBuilderRef.
LLVMBuilderRef
wrap(IRBuilder<> const* P);
Wrap an array of Type pointers for the C API.
Wrap an array of LLVMContext pointers for the C API.
LLVMContextRef*
wrap(LLVMContext const** Tys);
Wrap an array of Value pointers as opaque LLVMValueRef values.
Return Value
-
An opaque C API reference for
Attr. -
A C API error reference to the released payload.
-
The corresponding
LLVMCodeModelenumerator. -
The opaque C API basic‐block reference.
-
An opaque C API comdat reference for
P. -
An opaque
LLVMDIBuilderRefforP. -
An opaque LLVMTargetDataRef for
P. -
An opaque
LLVMDbgRecordRefforP. -
An opaque C API diagnostic reference for
P. -
An opaque C API execution‐engine reference for
P. -
The corresponding C++ pointer or C API reference.
-
The opaque C API context reference for
P. -
The corresponding opaque C binding reference.
-
An opaque
LLVMMetadataRefforP. -
An opaque C API module reference for
P. -
An opaque
LLVMNamedMDNodeRefforP. -
Opaque C API reference to
P. -
The converted C++
Typepointer or CLLVMTypeRef. -
Opaque C API use reference for
P. -
The opaque
LLVMValueRefforP. -
An opaque C API builder reference for
P. -
The array reinterpreted as
LLVMTypeRefvalues. -
The same array cast as opaque C API context references.
-
The array reinterpreted as opaque
LLVMValueRefvalues.
Parameters
Name |
Description |
Attr |
Attribute to wrap. |
Err |
Error whose payload is released into the C reference. |
Model |
The C++ |
P |
Basic block to wrap for the C API. |
Tys |
Array of Type pointers. |
Vals |
Array of Value pointers. |
Created with MrDocs