ILGPU  0.9.0
ILGPU.Backends.OpenCL.CLArgumentMapper Class Reference

Constructs mappings for CL kernels. More...

Inheritance diagram for ILGPU.Backends.OpenCL.CLArgumentMapper:
ILGPU.Backends.SeparateViews.ViewArgumentMapper ILGPU.Backends.EntryPoints.ArgumentMapper ILGPU.ICache

Public Member Functions

 CLArgumentMapper (Context context)
 Constructs a new OpenCL argument mapper. More...
 
void Map< TILEmitter > (in TILEmitter emitter, ILLocal kernel, SeparateViewEntryPoint entryPoint)
 Creates code that maps all parameters of the given entry point using OpenCL API calls. More...
 
- Public Member Functions inherited from ILGPU.Backends.EntryPoints.ArgumentMapper
void ClearCache (ClearCacheMode mode)
 Clears internal caches. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILGPU.Backends.SeparateViews.ViewArgumentMapper
 ViewArgumentMapper (Context context)
 Constructs a new view argument mapper. More...
 
sealed override Type MapViewType (Type viewType, Type elementType)
 Maps an internal view type to a pointer implementation type. More...
 
sealed override void MapViewInstance< TILEmitter, TSource, TTarget > (in TILEmitter emitter, Type elementType, TSource source, TTarget target)
 Maps an internal view instance to a pointer instance. More...
 
- Protected Member Functions inherited from ILGPU.Backends.EntryPoints.ArgumentMapper
 ArgumentMapper (Context context)
 Constructs a new argument mapper. More...
 
Type MapStructType (Type structType)
 Maps the given structure type to a compatible structure type. More...
 
Type RegisterTypeMapping (Type type, Type mappedType)
 Registers a type mapping entry and returns the mapped type. More...
 
Type MapType (Type type)
 Maps the given source type to a compatible target type. More...
 
void MapStructInstance< TILEmitter, TSource, TTarget > (in TILEmitter emitter, TSource source, TTarget target)
 Maps a specific structure instance. More...
 
void MapInstance< TILEmitter, TSource, TTarget > (in TILEmitter emitter, TSource source, TTarget target)
 Maps a value instance. More...
 
void Map< TILEmitter, TMappingHandler > (in TILEmitter emitter, in TMappingHandler mappingHandler, in ParameterCollection parameters)
 Creates code that maps the given parameter specification to a compatible representation. More...
 
- Static Protected Member Functions inherited from ILGPU.Backends.EntryPoints.ArgumentMapper
static void MapViews< TILEmitter, TMappingHandler > (in TILEmitter emitter, in TMappingHandler mappingHandler, SeparateViewEntryPoint entryPoint)
 Creates code that maps (potentially nested) views of kernel arguments separately. More...
 
- Properties inherited from ILGPU.Backends.EntryPoints.ArgumentMapper
Context Context [get]
 Returns the associated context. More...
 
TypeInformationManager TypeInformationManager [get]
 Returns the associated type-information manager. More...
 

Detailed Description

Constructs mappings for CL kernels.

Members of this class are not thread safe.

Constructor & Destructor Documentation

ILGPU.Backends.OpenCL.CLArgumentMapper.CLArgumentMapper ( Context  context)

Constructs a new OpenCL argument mapper.

Parameters
contextThe current context.

Member Function Documentation

void ILGPU.Backends.OpenCL.CLArgumentMapper.Map< TILEmitter > ( in TILEmitter  emitter,
ILLocal  kernel,
SeparateViewEntryPoint  entryPoint 
)

Creates code that maps all parameters of the given entry point using OpenCL API calls.

Template Parameters
TILEmitterThe emitter type.
Parameters
emitterThe target emitter to write to.
kernelA local that holds the kernel driver reference.
entryPointThe entry point.
Type Constraints
TILEmitter :IILEmitter 

The documentation for this class was generated from the following file: