| 42 | |
| 43 | template <typename Type> |
| 44 | static constexpr bool canBeNativeType() |
| 45 | { |
| 46 | if constexpr (std::is_same_v<Type, Float32> || std::is_same_v<Type, Float64>) |
| 47 | return true; |
| 48 | else if constexpr (is_integer<Type> && sizeof(Type) <= MAX_NATIVE_INT_SIZE) |
| 49 | return true; |
| 50 | else if constexpr (is_decimal<Type> && sizeof(Type) <= MAX_NATIVE_INT_SIZE) |
| 51 | return true; |
| 52 | else |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | /// Cast type to native LLVM type |
| 57 | llvm::Type * toNativeType(llvm::IRBuilderBase & builder, const IDataType & type); |
no outgoing calls
no test coverage detected