ILGPU  0.9.0
ILGPU.IR.Values.Use Struct Reference

Represents the use of a single node. More...

Inheritance diagram for ILGPU.IR.Values.Use:

Public Member Functions

Use Refresh ()
 Refreshes the use with up-to-date replacement information. More...
 
Value Resolve ()
 Resolves the actual node with respect to replacement information. More...
 
ResolveAs< T > ()
 Resolves the actual value with respect to replacement information. More...
 
bool Equals (Use other)
 Returns true if the given use is equal to this use. More...
 
override bool Equals (object obj)
 Returns true if the given object is equal to this use. More...
 
override int GetHashCode ()
 Returns the hash code of this use. More...
 
override string ToString ()
 Returns the string representation of this use. More...
 

Static Public Member Functions

static implicit operator ValueReference (Use use)
 Implicitly converts the given use to the associated node reference. More...
 
static implicit operator Value (Use use)
 Implicitly converts the given use to the associated node. More...
 
static bool operator== (Use first, Use second)
 Returns true if the first and the second use are the same. More...
 
static bool operator!= (Use first, Use second)
 Returns true if the first and the second use are not the same. More...
 

Properties

Value Target [get]
 Returns the target reference. More...
 
int Index [get]
 Returns the argument index. More...
 

Detailed Description

Represents the use of a single node.

Member Function Documentation

bool ILGPU.IR.Values.Use.Equals ( Use  other)

Returns true if the given use is equal to this use.

Parameters
otherThe other use.
Returns
True, if the given id is equal to this use.
override bool ILGPU.IR.Values.Use.Equals ( object  obj)

Returns true if the given object is equal to this use.

Parameters
objThe other object.
Returns
True, if the given object is equal to this use.
override int ILGPU.IR.Values.Use.GetHashCode ( )

Returns the hash code of this use.

Returns
The hash code of this use.
static implicit ILGPU.IR.Values.Use.operator Value ( Use  use)
static

Implicitly converts the given use to the associated node.

Parameters
useThe use to convert.
static implicit ILGPU.IR.Values.Use.operator ValueReference ( Use  use)
static

Implicitly converts the given use to the associated node reference.

Parameters
useThe use to convert.
static bool ILGPU.IR.Values.Use.operator!= ( Use  first,
Use  second 
)
static

Returns true if the first and the second use are not the same.

Parameters
firstThe first use.
secondThe second use.
Returns
True, if the first and the second use are not the same.
static bool ILGPU.IR.Values.Use.operator== ( Use  first,
Use  second 
)
static

Returns true if the first and the second use are the same.

Parameters
firstThe first use.
secondThe second use.
Returns
True, if the first and the second use are the same.
Use ILGPU.IR.Values.Use.Refresh ( )

Refreshes the use with up-to-date replacement information.

Returns
The refreshed use.
Value ILGPU.IR.Values.Use.Resolve ( )

Resolves the actual node with respect to replacement information.

Returns
The actual node.
T ILGPU.IR.Values.Use.ResolveAs< T > ( )

Resolves the actual value with respect to replacement information.

Template Parameters
TThe target type.
Returns
The actual value.
Type Constraints
T :Value 
T :Resolve() 
T :as 
T :T 
override string ILGPU.IR.Values.Use.ToString ( )

Returns the string representation of this use.

Returns
The string representation of this use.

Property Documentation

int ILGPU.IR.Values.Use.Index
get

Returns the argument index.

Value ILGPU.IR.Values.Use.Target
get

Returns the target reference.


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