MLIR 22.0.0git
ODSSupport.h File Reference

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.

Functions

LogicalResult mlir::convertFromAttribute (int64_t &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert an IntegerAttr attribute to an int64_t, or return an error if the attribute isn't an IntegerAttr.
Attribute mlir::convertToAttribute (MLIRContext *ctx, int64_t storage)
 Convert the provided int64_t to an IntegerAttr attribute.
LogicalResult mlir::convertFromAttribute (int32_t &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert an IntegerAttr attribute to an int32_t, or return an error if the attribute isn't an IntegerAttr.
Attribute mlir::convertToAttribute (MLIRContext *ctx, int32_t storage)
 Convert the provided int32_t to an IntegerAttr attribute.
LogicalResult mlir::convertFromAttribute (int8_t &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert an IntegerAttr attribute to an int8_t, or return an error if the attribute isn't an IntegerAttr.
Attribute mlir::convertToAttribute (MLIRContext *ctx, int8_t storage)
 Convert the provided int8_t to an IntegerAttr attribute.
LogicalResult mlir::convertFromAttribute (uint8_t &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert an IntegerAttr attribute to an uint8_t, or return an error if the attribute isn't an IntegerAttr.
Attribute mlir::convertToAttribute (MLIRContext *ctx, uint8_t storage)
 Convert the provided uint8_t to an IntegerAttr attribute.
LogicalResult mlir::convertFromAttribute (std::string &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Extract the string from attr into storage.
Attribute mlir::convertToAttribute (MLIRContext *ctx, const std::string &storage)
 Convert the given string into a StringAttr.
LogicalResult mlir::convertFromAttribute (bool &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Extract the boolean from attr into storage.
Attribute mlir::convertToAttribute (MLIRContext *ctx, bool storage)
 Convert the given string into a BooleanAttr.
LogicalResult mlir::convertFromAttribute (MutableArrayRef< int64_t > storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI64ArrayAttr to the provided storage.
LogicalResult mlir::convertFromAttribute (MutableArrayRef< int32_t > storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI32ArrayAttr to the provided storage.
LogicalResult mlir::convertFromAttribute (SmallVectorImpl< int64_t > &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI64ArrayAttr to the provided storage, which will be cleared before writing.
LogicalResult mlir::convertFromAttribute (SmallVectorImpl< int32_t > &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI32ArrayAttr to the provided storage, which will be cleared before writing.
Attribute mlir::convertToAttribute (MLIRContext *ctx, ArrayRef< int64_t > storage)
 Convert the provided ArrayRef<int64_t> to a DenseI64ArrayAttr attribute.
Attribute mlir::convertToAttribute (MLIRContext *ctx, ArrayRef< int32_t > storage)
 Convert the provided ArrayRef<int32_t> to a DenseI32ArrayAttr attribute.