10#include "llvm/ADT/APFloat.h"
11#include "llvm/Support/CheckedArithmetic.h"
20#include "mlir/IR/BuiltinTypeInterfaces.cpp.inc"
26unsigned FloatType::getWidth() {
27 return APFloat::semanticsSizeInBits(getFloatSemantics());
30unsigned FloatType::getFPMantissaWidth() {
31 return APFloat::semanticsPrecision(getFloatSemantics());
40 for (int64_t dim : shape) {
41 auto result = llvm::checkedMul(num, dim);
51 std::optional<int64_t> num = tryGetNumElements(shape);
52 assert(num.has_value() &&
"integer overflow in element count computation");
56 for (int64_t dim : shape)
Include the generated interface declarations.