llvm/mlir/lib/IR/Types.cpp

//===- Types.cpp - MLIR Type Classes --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Dialect.h"

usingnamespacemlir;
usingnamespacemlir::detail;

//===----------------------------------------------------------------------===//
// AbstractType
//===----------------------------------------------------------------------===//

void AbstractType::walkImmediateSubElements(
    Type type, function_ref<void(Attribute)> walkAttrsFn,
    function_ref<void(Type)> walkTypesFn) const {}

Type AbstractType::replaceImmediateSubElements(Type type,
                                               ArrayRef<Attribute> replAttrs,
                                               ArrayRef<Type> replTypes) const {}

//===----------------------------------------------------------------------===//
// Type
//===----------------------------------------------------------------------===//

MLIRContext *Type::getContext() const {}

bool Type::isFloat4E2M1FN() const {}
bool Type::isFloat6E2M3FN() const {}
bool Type::isFloat6E3M2FN() const {}
bool Type::isFloat8E5M2() const {}
bool Type::isFloat8E4M3() const {}
bool Type::isFloat8E4M3FN() const {}
bool Type::isFloat8E5M2FNUZ() const {}
bool Type::isFloat8E4M3FNUZ() const {}
bool Type::isFloat8E4M3B11FNUZ() const {}
bool Type::isFloat8E8M0FNU() const {}
bool Type::isFloat8E3M4() const {}
bool Type::isBF16() const {}
bool Type::isF16() const {}
bool Type::isTF32() const {}
bool Type::isF32() const {}
bool Type::isF64() const {}
bool Type::isF80() const {}
bool Type::isF128() const {}

bool Type::isIndex() const {}

bool Type::isInteger() const {}

/// Return true if this is an integer type with the specified width.
bool Type::isInteger(unsigned width) const {}

bool Type::isSignlessInteger() const {}

bool Type::isSignlessInteger(unsigned width) const {}

bool Type::isSignedInteger() const {}

bool Type::isSignedInteger(unsigned width) const {}

bool Type::isUnsignedInteger() const {}

bool Type::isUnsignedInteger(unsigned width) const {}

bool Type::isSignlessIntOrIndex() const {}

bool Type::isSignlessIntOrIndexOrFloat() const {}

bool Type::isSignlessIntOrFloat() const {}

bool Type::isIntOrIndex() const {}

bool Type::isIntOrFloat() const {}

bool Type::isIntOrIndexOrFloat() const {}

unsigned Type::getIntOrFloatBitWidth() const {}