anonymous_namespace{rtcompiler.cc}
anonymous_namespace{rtcompiler.cc}
Section titled “anonymous_namespace{rtcompiler.cc}”Functions
Section titled “Functions”| Return | Name | Description |
|---|---|---|
asmjit::TypeId |
dtype_to_typeid |
Convert the ncarray type system to corresponding asmjit type system. |
dtype_to_typeid
Section titled “dtype_to_typeid”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
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.
Returns
Section titled “Returns”typeid The asmjit TypeId that corresponds to the ncarray DType.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
dtype |
[DType](api-ncarray.md#dtype) |
The ncarray datatype to convert. |