wrap overloads

Synopses

Declared in <llvm/Support/Error.h>

Wrap an Attribute as an opaque C API reference.

LLVMAttributeRef
wrap(Attribute Attr);

Conversion from Error to LLVMErrorRef for C error bindings.

LLVMErrorRef
wrap(Error Err);

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.

LLVMComdatRef
wrap(Comdat const* P);

Convert a DIBuilder pointer to an opaque LLVMDIBuilderRef.

LLVMDIBuilderRef
wrap(DIBuilder const* P);

Convert a DataLayout pointer to an opaque LLVMTargetDataRef.

LLVMTargetDataRef
wrap(DataLayout const* P);

Wrap a DbgRecord pointer as an opaque LLVMDbgRecordRef.

LLVMDbgRecordRef
wrap(DbgRecord const* P);

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.

LLVMMetadataRef
wrap(Metadata const* P);

Convert a Module pointer to an opaque LLVMModuleRef.

LLVMModuleRef
wrap(Module const* P);

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.

LLVMTypeRef
wrap(Type const* P);

Convert a Use pointer to an opaque LLVMUseRef.

LLVMUseRef
wrap(Use const* P);

Convert a Value pointer to an opaque LLVMValueRef.

LLVMValueRef
wrap(Value const* P);

Convert an IRBuilder<> pointer to an opaque LLVMBuilderRef.

LLVMBuilderRef
wrap(IRBuilder<> const* P);

Wrap an array of Type pointers for the C API.

LLVMTypeRef*
wrap(Type** Tys);

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.

LLVMValueRef*
wrap(Value const** Vals);

Return Value

  • An opaque C API reference for Attr.

  • A C API error reference to the released payload.

  • The corresponding LLVMCodeModel enumerator.

  • The opaque C API basic‐block reference.

  • An opaque C API comdat reference for P.

  • An opaque LLVMDIBuilderRef for P.

  • An opaque LLVMTargetDataRef for P.

  • An opaque LLVMDbgRecordRef for P.

  • 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 LLVMMetadataRef for P.

  • An opaque C API module reference for P.

  • An opaque LLVMNamedMDNodeRef for P.

  • Opaque C API reference to P.

  • The converted C++ Type pointer or C LLVMTypeRef.

  • Opaque C API use reference for P.

  • The opaque LLVMValueRef for P.

  • An opaque C API builder reference for P.

  • The array reinterpreted as LLVMTypeRef values.

  • The same array cast as opaque C API context references.

  • The array reinterpreted as opaque LLVMValueRef values.

Parameters

Name

Description

Attr

Attribute to wrap.

Err

Error whose payload is released into the C reference.

Model

The C++ CodeModel::Model value to wrap.

P

Basic block to wrap for the C API.

Tys

Array of Type pointers.

Vals

Array of Value pointers.

Created with MrDocs