ILGPU  0.9.0
ILGPU.IR.IValue Interface Reference

The base interface of all values. More...

Inheritance diagram for ILGPU.IR.IValue:
ILGPU.IR.INode ILGPU.IR.ILocation ILGPU.IR.IDumpable ILGPU.IR.Value ILGPU.IR.Values.ValueReference ILGPU.IR.Values.ArithmeticValue ILGPU.IR.Values.CastValue ILGPU.IR.Values.ClassValue ILGPU.IR.Values.CompareValue ILGPU.IR.Values.Conditional ILGPU.IR.Values.ConstantNode ILGPU.IR.Values.ConvertValue ILGPU.IR.Values.HandleValue ILGPU.IR.Values.LoadFieldAddress ILGPU.IR.Values.MemoryValue ILGPU.IR.Values.MethodCall ILGPU.IR.Values.NewView ILGPU.IR.Values.Parameter ILGPU.IR.Values.PhiValue ILGPU.IR.Values.PointerValue ILGPU.IR.Values.StructureOperationValue ILGPU.IR.Values.StructureValue ILGPU.IR.Values.TerminatorValue ILGPU.IR.Values.UndefinedValue ILGPU.IR.Values.ViewPropertyValue

Public Member Functions

Value Resolve ()
 Resolves the actual value with respect to replacement information. More...
 
ResolveAs< T > ()
 Resolves the actual value with respect to replacement information. More...
 
void Accept< T > (T visitor)
 Accepts a value visitor. More...
 
void Replace (Value other)
 Replaces this value with the given value. More...
 
- Public Member Functions inherited from ILGPU.IR.ILocation
string FormatErrorMessage (string message)
 Formats an error message to include specific location information. More...
 
- Public Member Functions inherited from ILGPU.IR.IDumpable
void Dump (TextWriter textWriter)
 Dumps this object to the given text writer. More...
 

Properties

ValueKind ValueKind [get]
 Returns the current value kind. More...
 
TypeNode Type [get]
 Returns the associated type information. More...
 
BasicBlock BasicBlock [get]
 Returns the parent basic block. More...
 
BasicValueType BasicValueType [get]
 Returns the associated basic value type. More...
 
ReadOnlySpan< ValueReferenceNodes [get]
 Returns all associated nodes. More...
 
UseCollection Uses [get]
 Returns all associated uses. More...
 
- Properties inherited from ILGPU.IR.INode
NodeId Id [get]
 Returns the unique node id. More...
 
Location Location [get]
 Returns the associated location. More...
 

Detailed Description

The base interface of all values.

Member Function Documentation

void ILGPU.IR.IValue.Accept< T > ( visitor)

Accepts a value visitor.

Template Parameters
TThe type of the visitor.
Parameters
visitorThe visitor.

Implemented in ILGPU.IR.Values.SetField, ILGPU.IR.Values.GetField, ILGPU.IR.Values.StructureValue, ILGPU.IR.Values.BuilderTerminator, ILGPU.IR.Values.SwitchBranch, ILGPU.IR.Values.IntAsFloatCast, ILGPU.IR.Value, ILGPU.IR.Values.SubWarpShuffle, ILGPU.IR.Values.FloatAsIntCast, ILGPU.IR.Values.IfBranch, ILGPU.IR.Values.WarpShuffle, ILGPU.IR.Values.LaneIdxValue, ILGPU.IR.Values.TernaryArithmeticValue, ILGPU.IR.Values.ViewCast, ILGPU.IR.Values.WarpSizeValue, ILGPU.IR.Values.PhiValue, ILGPU.IR.Values.Store, ILGPU.IR.Values.GroupDimensionValue, ILGPU.IR.Values.Broadcast, ILGPU.IR.Values.SetArrayElement, ILGPU.IR.Values.StringValue, ILGPU.IR.Values.UnconditionalBranch, ILGPU.IR.Values.AddressSpaceCast, ILGPU.IR.Values.LoadFieldAddress, ILGPU.IR.Values.SwitchPredicate, ILGPU.IR.Values.BinaryArithmeticValue, ILGPU.IR.Values.GridDimensionValue, ILGPU.IR.Values.Load, ILGPU.IR.Values.AtomicCAS, ILGPU.IR.Values.GetArrayElement, ILGPU.IR.Values.GroupIndexValue, ILGPU.IR.Values.PrimitiveValue, ILGPU.IR.Values.PointerCast, ILGPU.IR.Values.CompareValue, ILGPU.IR.Values.MemoryBarrier, ILGPU.IR.Values.ReturnTerminator, ILGPU.IR.Values.GetViewLength, ILGPU.IR.Values.Barrier, ILGPU.IR.Values.LoadElementAddress, ILGPU.IR.Values.GetArrayExtent, ILGPU.IR.Values.GenericAtomic, ILGPU.IR.Values.UnaryArithmeticValue, ILGPU.IR.Values.GridIndexValue, ILGPU.IR.Values.ConvertValue, ILGPU.IR.Values.MethodCall, ILGPU.IR.Values.ValueReference, ILGPU.IR.Values.Alloca, ILGPU.IR.Values.PredicateBarrier, ILGPU.IR.Values.IfPredicate, ILGPU.IR.Values.SubViewValue, ILGPU.IR.Values.IntAsPointerCast, ILGPU.IR.Values.Parameter, ILGPU.IR.Values.DebugOperation, ILGPU.IR.Values.NewView, ILGPU.IR.Values.ArrayValue, ILGPU.IR.Values.NullValue, ILGPU.IR.Values.AcceleratorTypeValue, ILGPU.IR.Values.HandleValue, and ILGPU.IR.Values.UndefinedValue.

Type Constraints
T :IValueVisitor 
void ILGPU.IR.IValue.Replace ( Value  other)

Replaces this value with the given value.

Parameters
otherThe other value.

Implemented in ILGPU.IR.Value, and ILGPU.IR.Values.ValueReference.

Value ILGPU.IR.IValue.Resolve ( )

Resolves the actual value with respect to replacement information.

Returns
The actual value.

Implemented in ILGPU.IR.Value, and ILGPU.IR.Values.ValueReference.

T ILGPU.IR.IValue.ResolveAs< T > ( )

Resolves the actual value with respect to replacement information.

Template Parameters
TThe target type.
Returns
The actual value.

Implemented in ILGPU.IR.Value, and ILGPU.IR.Values.ValueReference.

Type Constraints
T :Value 

Property Documentation

BasicBlock ILGPU.IR.IValue.BasicBlock
get

Returns the parent basic block.

BasicValueType ILGPU.IR.IValue.BasicValueType
get

Returns the associated basic value type.

ReadOnlySpan<ValueReference> ILGPU.IR.IValue.Nodes
get

Returns all associated nodes.

TypeNode ILGPU.IR.IValue.Type
get

Returns the associated type information.

UseCollection ILGPU.IR.IValue.Uses
get

Returns all associated uses.

ValueKind ILGPU.IR.IValue.ValueKind
get

Returns the current value kind.


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