ILGPU  0.9.0
ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter Struct Reference

Represents a general PTX command emitter. More...

Inheritance diagram for ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter:

Public Member Functions

 CommandEmitter (StringBuilder target)
 Constructs a new command emitter using the given target. More...
 
void AppendNonLocalAddressSpace (MemoryAddressSpace addressSpace)
 Appends the given non-local address space. More...
 
void AppendAddressSpace (MemoryAddressSpace addressSpace)
 Appends the given address space More...
 
void AppendRegisterMovementSuffix (BasicValueType basicValueType)
 Appends a specialized basic type suffix for mov instructions. More...
 
void AppendSuffix (BasicValueType basicValueType)
 Appends the given command basic value type suffix. More...
 
void AppendSuffix (string suffix)
 Appends the given command postfix. More...
 
void AppendVectorSuffix (int vectorLength)
 Appends the given vector length suffix. More...
 
void AppendArgument (ConstantRegister argument)
 Append the given register argument. More...
 
void AppendArgument (HardwareRegister argument)
 Append the given register argument. More...
 
void AppendArgument (PrimitiveRegister argument)
 Append the given register argument. More...
 
void AppendVectorArgument (PrimitiveRegister[] arguments)
 Append the given vector register arguments. More...
 
void AppendArgumentValue (HardwareRegister argument)
 Append the value given register argument. More...
 
void AppendArgumentValue (HardwareRegister argument, int offset)
 Append the value given register argument. More...
 
void AppendNull (PTXRegisterKind kind)
 Appends the constant value 'null' of the given type. More...
 
void AppendConstant (long value)
 Appends a constant. More...
 
void AppendConstant (ulong value)
 Appends a constant. More...
 
void AppendConstant (float value)
 Appends a constant. More...
 
void AppendConstant (double value)
 Appends a constant. More...
 
void AppendOffset (int offset)
 Appends an offset computation. More...
 
void AppendLabel (string label)
 Appends a reference to the given label. More...
 
void AppendRawValue (string value)
 Appends the given raw value. More...
 
void AppendRawValue (string value, int offset)
 Appends the given raw value. More...
 
void AppendRawValueReference (string valueReference)
 Appends the given value reference. More...
 
void Dispose ()
 

Detailed Description

Represents a general PTX command emitter.

Constructor & Destructor Documentation

ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.CommandEmitter ( StringBuilder  target)

Constructs a new command emitter using the given target.

Parameters
targetThe target builder.

Member Function Documentation

void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendAddressSpace ( MemoryAddressSpace  addressSpace)

Appends the given address space

Parameters
addressSpaceThe address space.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendArgument ( ConstantRegister  argument)

Append the given register argument.

Parameters
argumentThe register argument.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendArgument ( HardwareRegister  argument)

Append the given register argument.

Parameters
argumentThe register argument.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendArgument ( PrimitiveRegister  argument)

Append the given register argument.

Parameters
argumentThe register argument.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendArgumentValue ( HardwareRegister  argument)

Append the value given register argument.

Parameters
argumentThe register argument.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendArgumentValue ( HardwareRegister  argument,
int  offset 
)

Append the value given register argument.

Parameters
argumentThe register argument.
offsetThe offset in bytes.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendConstant ( long  value)

Appends a constant.

Parameters
valueThe constant to append.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendConstant ( ulong  value)

Appends a constant.

Parameters
valueThe constant to append.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendConstant ( float  value)

Appends a constant.

Parameters
valueThe constant to append.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendConstant ( double  value)

Appends a constant.

Parameters
valueThe constant to append.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendLabel ( string  label)

Appends a reference to the given label.

Parameters
labelThe label.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendNonLocalAddressSpace ( MemoryAddressSpace  addressSpace)

Appends the given non-local address space.

Parameters
addressSpaceThe address space.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendNull ( PTXRegisterKind  kind)

Appends the constant value 'null' of the given type.

Parameters
kindThe register kind.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendOffset ( int  offset)

Appends an offset computation.

Parameters
offsetThe constant offset in bytes.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendRawValue ( string  value)

Appends the given raw value.

Parameters
valueThe raw value.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendRawValue ( string  value,
int  offset 
)

Appends the given raw value.

Parameters
valueThe raw value.
offsetThe offset in bytes.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendRawValueReference ( string  valueReference)

Appends the given value reference.

Parameters
valueReferenceThe value reference.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendRegisterMovementSuffix ( BasicValueType  basicValueType)

Appends a specialized basic type suffix for mov instructions.

Parameters
basicValueTypeThe type suffix.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendSuffix ( BasicValueType  basicValueType)

Appends the given command basic value type suffix.

Parameters
basicValueTypeThe type suffix.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendSuffix ( string  suffix)

Appends the given command postfix.

Parameters
suffixThe postfix.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendVectorArgument ( PrimitiveRegister[]  arguments)

Append the given vector register arguments.

Parameters
argumentsThe register arguments.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.AppendVectorSuffix ( int  vectorLength)

Appends the given vector length suffix.

Parameters
vectorLengthThe vector length.
void ILGPU.Backends.PTX.PTXCodeGenerator.CommandEmitter.Dispose ( )


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