llvm::ConstantDataSequential::isElementTypeCompatible

Return true if Ty can be an element type of a ConstantDataSequential.

Synopsis

Declared in <llvm/IR/Constants.h>

static
bool
isElementTypeCompatible(Type* Ty);

Description

ConstantDataArray only works with normal float and int types that are stored densely in memory, not with things like i42 or x86_f80.

Return Value

True if the type can be an element of a ConstantDataSequential.

Parameters

NameDescription
TyThe proposed element type.