ILGPU  0.9.0
ILGPU.Backends.PTX.PTXArgumentMapper Class Reference

Constructs mappings for PTX kernels. More...

Inheritance diagram for ILGPU.Backends.PTX.PTXArgumentMapper:
ILGPU.Backends.PointerViews.ViewArgumentMapper ILGPU.Backends.EntryPoints.ArgumentMapper ILGPU.ICache

Public Member Functions

 PTXArgumentMapper (Context context)
 Constructs a new PTX argument mapper. More...
 
ILLocal Map< TILEmitter > (in TILEmitter emitter, EntryPoint entryPoint)
 Creates code that maps the given parameter specification to a compatible representation. More...
 
- Public Member Functions inherited from ILGPU.Backends.EntryPoints.ArgumentMapper
void ClearCache (ClearCacheMode mode)
 Clears internal caches. More...
 

Static Public Member Functions

static void StoreKernelLength< TILEmitter > (in TILEmitter emitter, ILLocal argumentBuffer)
 Stores the kernel length argument of an implicitly grouped kernel. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILGPU.Backends.PointerViews.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 PTX kernels.

Members of this class are not thread safe.

Constructor & Destructor Documentation

ILGPU.Backends.PTX.PTXArgumentMapper.PTXArgumentMapper ( Context  context)

Constructs a new PTX argument mapper.

Parameters
contextThe current context.

Member Function Documentation

ILLocal ILGPU.Backends.PTX.PTXArgumentMapper.Map< TILEmitter > ( in TILEmitter  emitter,
EntryPoint  entryPoint 
)

Creates code that maps the given parameter specification to a compatible representation.

Template Parameters
TILEmitterThe emitter type.
Parameters
emitterThe target emitter to write to.
entryPointThe entry point.
Returns
A local that stores the native kernel argument pointers.
Type Constraints
TILEmitter :IILEmitter 
static void ILGPU.Backends.PTX.PTXArgumentMapper.StoreKernelLength< TILEmitter > ( in TILEmitter  emitter,
ILLocal  argumentBuffer 
)
static

Stores the kernel length argument of an implicitly grouped kernel.

Template Parameters
TILEmitterThe emitter type.
Parameters
emitterThe target emitter to write to.
argumentBufferThe current local holding the native argument pointers.
Type Constraints
TILEmitter :IILEmitter 

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