ILGPU  0.9.0
ILGPU.Backends.OpenCL.CLVariableAllocator Class Reference

Represents a specialized OpenCL variable allocator. More...

Inheritance diagram for ILGPU.Backends.OpenCL.CLVariableAllocator:
ILGPU.Backends.VariableAllocator ILGPU.Backends.OpenCL.CLCodeGenerator ILGPU.Backends.OpenCL.CLFunctionGenerator ILGPU.Backends.OpenCL.CLKernelFunctionGenerator

Public Member Functions

 CLVariableAllocator (CLTypeGenerator typeGenerator)
 Constructs a new register allocator. More...
 
string GetVariableType (Variable variable)
 Resolves the type name of the given variable. More...
 
- Public Member Functions inherited from ILGPU.Backends.VariableAllocator
Variable Allocate (Value value)
 Allocates a new variable. More...
 
Variable Allocate (Value value, ArithmeticBasicValueType basicValueType)
 Allocates a new variable. More...
 
AllocateAs< T > (Value value)
 Allocates a new variable as type T . More...
 
Variable AllocateType (ArithmeticBasicValueType basicValueType)
 Allocates the given type. More...
 
Variable AllocateType (BasicValueType basicValueType)
 Allocates the given type. More...
 
PointerVariable AllocatePointerType (PointerType pointerType)
 Allocates a pointer type. More...
 
Variable AllocateType (TypeNode typeNode)
 Allocates the given type. More...
 
Variable Load (Value value)
 Loads the given value. More...
 
LoadAs< T > (Value value)
 Loads the given value as variable type T . More...
 
void Bind (Value node, Variable targetVariable)
 Binds the given value to the target variable. More...
 

Static Public Member Functions

static Variable GetSharedMemoryAllocationVariable (in AllocaInformation allocaInfo)
 Returns a shared memory allocation variable reference. More...
 
static string GetSharedMemoryAllocationName (in AllocaInformation allocaInfo)
 Returns a unique shared memory allocation name. More...
 

Properties

CLTypeGenerator TypeGenerator [get]
 Returns the associated type generator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILGPU.Backends.VariableAllocator
 VariableAllocator ()
 Constructs a new variable allocator. More...
 

Detailed Description

Represents a specialized OpenCL variable allocator.

Constructor & Destructor Documentation

ILGPU.Backends.OpenCL.CLVariableAllocator.CLVariableAllocator ( CLTypeGenerator  typeGenerator)

Constructs a new register allocator.

Parameters
typeGeneratorThe associated type generator.

Member Function Documentation

static string ILGPU.Backends.OpenCL.CLVariableAllocator.GetSharedMemoryAllocationName ( in AllocaInformation  allocaInfo)
static

Returns a unique shared memory allocation name.

Parameters
allocaInfoThe source allocation info.
Returns
The allocation name.
static Variable ILGPU.Backends.OpenCL.CLVariableAllocator.GetSharedMemoryAllocationVariable ( in AllocaInformation  allocaInfo)
static

Returns a shared memory allocation variable reference.

Parameters
allocaInfoThe source allocation info.
Returns
The allocation variable reference pointing to the allocation object.
string ILGPU.Backends.OpenCL.CLVariableAllocator.GetVariableType ( Variable  variable)

Resolves the type name of the given variable.

Parameters
variableThe variable.
Returns
The resolved variable type name.

Property Documentation

CLTypeGenerator ILGPU.Backends.OpenCL.CLVariableAllocator.TypeGenerator
get

Returns the associated type generator.


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