MLIR 23.0.0git
BytecodeImplementation.h File Reference
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/DialectInterface.h"
#include "mlir/IR/OpImplementation.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Twine.h"

Go to the source code of this file.

Classes

class  mlir::DialectVersion
 This class is used to represent the version of a dialect, for the purpose of polymorphic destruction. More...
class  mlir::DialectBytecodeReader
 This class defines a virtual interface for reading a bytecode stream, providing hooks into the bytecode reader. More...
class  mlir::DialectBytecodeWriter
 This class defines a virtual interface for writing to a bytecode stream, providing hooks into the bytecode writer. More...
class  mlir::BytecodeDialectInterface

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::detail
 AttrTypeReplacer.

Typedefs

template<typename T, typename... Ts>
using mlir::detail::has_get_checked_method = decltype(T::getChecked(std::declval<Ts>()...))

Functions

template<typename T, typename... Ts>
static LogicalResult mlir::readResourceHandle (DialectBytecodeReader &reader, FailureOr< T > &value, Ts &&...params)
 Helper for resource handle reading that returns LogicalResult.
template<typename T, typename... Ts>
auto mlir::get (MLIRContext *context, Ts &&...params)
 Helper method that injects context only if needed, this helps unify some of the attribute construction methods.
template<typename T, typename... Ts>
auto mlir::getChecked (function_ref< InFlightDiagnostic()> emitError, MLIRContext *context, Ts &&...params)
 Helper method analogous to get, but uses getChecked when available to allow graceful failure on invalid parameters instead of asserting.