ILGPU  0.9.0
ILGPU.IR.Types.ArrayType Class Reference

Represents an array type. More...

Inheritance diagram for ILGPU.IR.Types.ArrayType:
ILGPU.IR.Types.ObjectType ILGPU.IR.Types.IAddressSpaceType ILGPU.IR.Types.TypeNode ILGPU.IR.Node ILGPU.IR.Types.ITypeNode ILGPU.IR.INode ILGPU.IR.INode ILGPU.IR.ILocation ILGPU.IR.IDumpable ILGPU.IR.ILocation ILGPU.IR.IDumpable

Public Member Functions

override int GetHashCode ()
 
override bool Equals (object obj)
 
override string ToString ()
 
- Public Member Functions inherited from ILGPU.IR.Types.TypeNode
bool HasFlags (TypeFlags typeFlags)
 Returns true if the given flags are set. More...
 
As< T > (ILocation location)
 Converts the current type to the given type T . More...
 
override string FormatErrorMessage (string message)
 Formats an error message to include the current debug information. More...
 
override int GetHashCode ()
 Returns the hash code of this type node. More...
 
override bool Equals (object obj)
 Returns true if the given object is equal to the current type. More...
 
override string ToString ()
 Returns the string representation of this node. More...
 
- Public Member Functions inherited from ILGPU.IR.Node
virtual void Dump (TextWriter textWriter)
 Dumps this method to the given text writer. More...
 
string ToReferenceString ()
 Returns the string representation of this node as reference. More...
 
override string ToString ()
 Returns the string representation of this node. More...
 

Public Attributes

MemoryAddressSpace AddressSpace => MemoryAddressSpace.Local
 Returns the associated address space. More...
 
- Public Attributes inherited from ILGPU.IR.Types.TypeNode
Context Context => TypeContext.Context
 Returns the parent ILGPU context. More...
 
bool IsVoidType => this is VoidType
 Returns true if the current type is a VoidType. More...
 
bool IsStringType => this is StringType
 Returns true if the current type is a StringType. More...
 
bool IsPrimitiveType => this is PrimitiveType
 Returns true if the current type is a PrimitiveType. More...
 
bool IsViewOrPointerType => this is AddressSpaceType
 Returns true if the current type is a PointerType or a ViewType. More...
 
bool IsPointerType => this is PointerType
 Returns true if the current type is a PointerType. More...
 
bool IsViewType => this is ViewType
 Returns true if the current type is a ViewType. More...
 
bool IsObjectType => this is ObjectType
 Returns true if the current type is an ObjectType. More...
 
bool IsStructureType => this is StructureType
 Returns true if the current type is a StructureType. More...
 
bool IsArrayType => this is ArrayType
 Returns true if the current type is a ArrayType. More...
 
bool IsRootType
 Returns true if this type is a root object type. More...
 
BasicValueType BasicValueType
 Returns the basic value type. More...
 
bool IsLowered
 Returns true if this type corresponds to its lowered representation. More...
 
Type ManagedType => managedType # GetManagedType()
 The type representation in the managed world. More...
 

Protected Member Functions

override Type GetManagedType ()
 Creates a managed array type. More...
 
override string ToPrefixString ()
 
- Protected Member Functions inherited from ILGPU.IR.Types.ObjectType
 ObjectType (IRTypeContext typeContext)
 Constructs a new object type. More...
 
- Protected Member Functions inherited from ILGPU.IR.Types.TypeNode
 TypeNode (IRTypeContext typeContext)
 Constructs a new type. More...
 
void AddFlags (TypeFlags typeFlags)
 Adds the given flags to the current type. More...
 
- Protected Member Functions inherited from ILGPU.IR.Node
 Node (Location location)
 Constructs a new node that is marked as replaceable. More...
 
void InferLocation< T > (ReadOnlySpan< T > elements)
 Infers the location (if required) of the current node. More...
 

Properties

TypeNode ElementType [get]
 Returns the element type of the array. More...
 
int Dimensions [get]
 Returns the number of dimension. More...
 
- Properties inherited from ILGPU.IR.Types.TypeNode
IRTypeContext TypeContext [get]
 Returns the parent type context. More...
 
int Size [get, protected set]
 The size of the type in bytes (if the type is in its lowered representation). More...
 
int Alignment [get, protected set]
 The type alignment in bytes (if the type is in its lowered representation). More...
 
TypeFlags Flags [get]
 Returns all type flags. More...
 
- Properties inherited from ILGPU.IR.Node
Location Location [get]
 Returns the associated location. More...
 
NodeId Id [get]
 Returns the unique node id. More...
 
- Properties inherited from ILGPU.IR.INode
NodeId Id [get]
 Returns the unique node id. More...
 
Location Location [get]
 Returns the associated location. More...
 
- Properties inherited from ILGPU.IR.Types.ITypeNode
Type ManagedType [get]
 The type representation in the managed world. More...
 
- Properties inherited from ILGPU.IR.Types.IAddressSpaceType
TypeNode ElementType [get]
 Returns the underlying element type. More...
 
MemoryAddressSpace AddressSpace [get]
 Returns the associated address space. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ILGPU.IR.Types.TypeNode
static long Align (long offset, int fieldAlignment)
 Computes a properly aligned offset in bytes for the given field size. More...
 
static int Align (int offset, int fieldAlignment)
 Computes a properly aligned offset in bytes for the given field size. More...
 

Detailed Description

Represents an array type.

Member Function Documentation

override bool ILGPU.IR.Types.ArrayType.Equals ( object  obj)

override int ILGPU.IR.Types.ArrayType.GetHashCode ( )

override Type ILGPU.IR.Types.ArrayType.GetManagedType ( )
protectedvirtual

Creates a managed array type.

Implements ILGPU.IR.Types.TypeNode.

override string ILGPU.IR.Types.ArrayType.ToPrefixString ( )
protectedvirtual

Implements ILGPU.IR.Node.

override string ILGPU.IR.Types.ArrayType.ToString ( )

Member Data Documentation

MemoryAddressSpace ILGPU.IR.Types.ArrayType.AddressSpace => MemoryAddressSpace.Local

Returns the associated address space.

Property Documentation

int ILGPU.IR.Types.ArrayType.Dimensions
get

Returns the number of dimension.

TypeNode ILGPU.IR.Types.ArrayType.ElementType
get

Returns the element type of the array.


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