ILGPU  0.9.0
ILGPU.Backends.OpenCL.CLIntrinsic Class Reference

Represents a specific handler for user defined code-generation functionality that is compatible with the CLBackend. More...

Inheritance diagram for ILGPU.Backends.OpenCL.CLIntrinsic:
ILGPU.IR.Intrinsics.IntrinsicImplementation ILGPU.IR.Intrinsics.IIntrinsicImplementation

Public Member Functions

delegate void Handler (CLBackend backend, CLCodeGenerator codeGenerator, Value value)
 Represents the handler delegate type of custom code-generation handlers. More...
 
 CLIntrinsic (MethodInfo targetMethod, IntrinsicImplementationMode mode)
 Constructs a new OpenCL intrinsic that can handle all architectures. More...
 
 CLIntrinsic (Type handlerType, IntrinsicImplementationMode mode)
 Constructs a new OpenCL intrinsic that can handle all architectures. More...
 
 CLIntrinsic (Type handlerType, string methodName, IntrinsicImplementationMode mode)
 Constructs a new OpenCL intrinsic that can handle all architectures. More...
 
- Public Member Functions inherited from ILGPU.IR.Intrinsics.IntrinsicImplementation
bool CanHandle (Backend backend)
 Determines whether the attribute is compatible with the given backend. More...
 
IntrinsicMapping< TDelegate > ResolveMapping< TDelegate > ()
 Resolves an intrinsic implementation for the current attribute. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILGPU.IR.Intrinsics.IntrinsicImplementation
 IntrinsicImplementation (BackendType backendType, MethodInfo targetMethod, IntrinsicImplementationMode mode)
 Constructs a new implementation. More...
 
 IntrinsicImplementation (BackendType backendType, Type handlerType, string methodName, IntrinsicImplementationMode mode)
 Constructs a new implementation. More...
 
- Properties inherited from ILGPU.IR.Intrinsics.IntrinsicImplementation
BackendType BackendType [get]
 Returns the associated backend type. More...
 
IntrinsicImplementationMode Mode [get]
 Returns the associated code-generator mode. More...
 
MethodInfo TargetMethod [get]
 Returns the user-defined target method. More...
 

Detailed Description

Represents a specific handler for user defined code-generation functionality that is compatible with the CLBackend.

Constructor & Destructor Documentation

ILGPU.Backends.OpenCL.CLIntrinsic.CLIntrinsic ( MethodInfo  targetMethod,
IntrinsicImplementationMode  mode 
)

Constructs a new OpenCL intrinsic that can handle all architectures.

Parameters
targetMethodThe associated target method.
modeThe code-generation mode.
ILGPU.Backends.OpenCL.CLIntrinsic.CLIntrinsic ( Type  handlerType,
IntrinsicImplementationMode  mode 
)

Constructs a new OpenCL intrinsic that can handle all architectures.

Parameters
handlerTypeThe associated target handler type.
modeThe code-generation mode.
ILGPU.Backends.OpenCL.CLIntrinsic.CLIntrinsic ( Type  handlerType,
string  methodName,
IntrinsicImplementationMode  mode 
)

Constructs a new OpenCL intrinsic that can handle all architectures.

Parameters
handlerTypeThe associated target handler type.
methodNameThe target method name (or null).
modeThe code-generator mode.

Member Function Documentation

delegate void ILGPU.Backends.OpenCL.CLIntrinsic.Handler ( CLBackend  backend,
CLCodeGenerator  codeGenerator,
Value  value 
)

Represents the handler delegate type of custom code-generation handlers.

Parameters
backendThe current backend.
codeGeneratorThe code generator.
valueThe value to generate code for.

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