MLIR  20.0.0git
Namespaces | Functions
ODSSupport.h File Reference
#include "mlir/IR/Attributes.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/Support/LLVM.h"

Go to the source code of this file.

Namespaces

 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. More...
 
Attribute mlir::convertToAttribute (MLIRContext *ctx, int64_t storage)
 Convert the provided int64_t to an IntegerAttr attribute. More...
 
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. More...
 
Attribute mlir::convertToAttribute (MLIRContext *ctx, int32_t storage)
 Convert the provided int32_t to an IntegerAttr attribute. More...
 
LogicalResult mlir::convertFromAttribute (std::string &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Extract the string from attr into storage. More...
 
Attribute mlir::convertToAttribute (MLIRContext *ctx, const std::string &storage)
 Convert the given string into a StringAttr. More...
 
LogicalResult mlir::convertFromAttribute (bool &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Extract the boolean from attr into storage. More...
 
Attribute mlir::convertToAttribute (MLIRContext *ctx, bool storage)
 Convert the given string into a BooleanAttr. More...
 
LogicalResult mlir::convertFromAttribute (MutableArrayRef< int64_t > storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI64ArrayAttr to the provided storage. More...
 
LogicalResult mlir::convertFromAttribute (MutableArrayRef< int32_t > storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError)
 Convert a DenseI32ArrayAttr to the provided storage. More...
 
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. More...
 
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. More...
 
Attribute mlir::convertToAttribute (MLIRContext *ctx, ArrayRef< int64_t > storage)
 Convert the provided ArrayRef<int64_t> to a DenseI64ArrayAttr attribute. More...