MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / canBeNativeType

Function canBeNativeType

src/DataTypes/Native.h:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template <typename Type>
44static 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
57llvm::Type * toNativeType(llvm::IRBuilderBase & builder, const IDataType & type);

Callers 15

isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
isCompilableMethod · 0.50
executeImplMethod · 0.50
isCompilableConstantFunction · 0.50
isCompilableFunctionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected