Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new type based on a type from the .Net world.
 /// </summary>
 /// <param name="type">The source type.</param>
 /// <returns>The IR type.</returns>
 public TypeNode CreateType(Type type) =>
 TypeContext.CreateType(type);
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new type based on a type from the .Net world.
 /// </summary>
 /// <param name="type">The source type.</param>
 /// <param name="addressSpace">The address space for pointer types.</param>
 /// <returns>The IR type.</returns>
 public TypeNode CreateType(Type type, MemoryAddressSpace addressSpace) =>
 TypeContext.CreateType(type, addressSpace);
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the associated OpenCL type name.
 /// </summary>
 /// <param name="type">The managed type to use.</param>
 /// <returns>The resolved OpenCL type name.</returns>
 public string this[Type type] => this[TypeContext.CreateType(type)];