ILGPU  0.9.0
ILGPU.IR.Values.UseCollection Struct Reference

Represents an enumerable of uses that point to non-replaced nodes. More...

Classes

struct  Enumerator
 Returns an enumerator to enumerate all uses in the context of the parent scope. More...
 

Public Member Functions

readonly bool TryGetSingleUse (out Use use)
 Tries to resolve a single use. More...
 
readonly UseList Clone ()
 Clones this use collection into a new one. More...
 
readonly Enumerator GetEnumerator ()
 Returns an enumerator to enumerate all uses in the context of the parent scope. More...
 

Properties

Value Node [get]
 Returns the associated node. More...
 
ReadOnlySpan< UseUses [get]
 Returns all associated uses. More...
 
readonly bool HasAny [get]
 Returns true, if the collection contains at least one use. More...
 
readonly bool HasExactlyOne [get]
 Returns true, if the collection contains exactly one use. More...
 

Detailed Description

Represents an enumerable of uses that point to non-replaced nodes.

Member Function Documentation

readonly UseList ILGPU.IR.Values.UseCollection.Clone ( )

Clones this use collection into a new one.

Returns
The cloned use collection.
readonly Enumerator ILGPU.IR.Values.UseCollection.GetEnumerator ( )

Returns an enumerator to enumerate all uses in the context of the parent scope.

Returns
The enumerator.
readonly bool ILGPU.IR.Values.UseCollection.TryGetSingleUse ( out Use  use)

Tries to resolve a single use.

Parameters
useThe resolved use reference.
Returns
True, if the collection contains exactly one use.

Property Documentation

readonly bool ILGPU.IR.Values.UseCollection.HasAny
get

Returns true, if the collection contains at least one use.

readonly bool ILGPU.IR.Values.UseCollection.HasExactlyOne
get

Returns true, if the collection contains exactly one use.

Value ILGPU.IR.Values.UseCollection.Node
get

Returns the associated node.

ReadOnlySpan<Use> ILGPU.IR.Values.UseCollection.Uses
get

Returns all associated uses.


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