Skip to content

anonymous_namespace{rtcompiler.cc}

Return Name Description
asmjit::TypeId dtype_to_typeid Convert the ncarray type system to corresponding asmjit type system.

asmjit::TypeId dtype_to_typeid(DType dtype)

Convert the ncarray type system to corresponding asmjit type system.

This function only handles scalar datatypes. E.g. complex and vector types must be constructed using combinations of the returned type for their unit types (a complex is two TypeId::kFloat32 for example).

A char_ is converted to signed integer kInt8. A bool_ is converted to unsigned integer kUInt8, as these do not have corresponding types in asmjit.

typeid The asmjit TypeId that corresponds to the ncarray DType.

Parameter Type Description
dtype [DType](api-ncarray.md#dtype) The ncarray datatype to convert.