11 #include "llvm/ADT/APFloat.h"
12 #include "llvm/ADT/Sequence.h"
21 #include "mlir/IR/BuiltinTypeInterfaces.cpp.inc"
27 unsigned FloatType::getWidth() {
28 return APFloat::semanticsSizeInBits(getFloatSemantics());
31 unsigned FloatType::getFPMantissaWidth() {
32 return APFloat::semanticsPrecision(getFloatSemantics());
39 constexpr int64_t ShapedType::kDynamic;
43 for (int64_t dim : shape) {
45 assert(num >= 0 &&
"integer overflow in element count computation");
static int64_t getNumElements(Type t)
Compute the total number of elements in the given type, also taking into account nested types.
Include the generated interface declarations.