#include "mlir/IR/ODSSupport.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Diagnostics.h"
usingnamespacemlir;
LogicalResult
mlir::convertFromAttribute(int64_t &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
Attribute mlir::convertToAttribute(MLIRContext *ctx, int64_t storage) { … }
LogicalResult
mlir::convertFromAttribute(int32_t &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
Attribute mlir::convertToAttribute(MLIRContext *ctx, int32_t storage) { … }
LogicalResult
mlir::convertFromAttribute(std::string &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
Attribute mlir::convertToAttribute(MLIRContext *ctx,
const std::string &storage) { … }
LogicalResult
mlir::convertFromAttribute(bool &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
Attribute mlir::convertToAttribute(MLIRContext *ctx, bool storage) { … }
template <typename DenseArrayTy, typename T>
LogicalResult
convertDenseArrayFromAttr(MutableArrayRef<T> storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError,
StringRef denseArrayTyStr) { … }
LogicalResult
mlir::convertFromAttribute(MutableArrayRef<int64_t> storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
LogicalResult
mlir::convertFromAttribute(MutableArrayRef<int32_t> storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
template <typename DenseArrayTy, typename T>
LogicalResult
convertDenseArrayFromAttr(SmallVectorImpl<T> &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError,
StringRef denseArrayTyStr) { … }
LogicalResult
mlir::convertFromAttribute(SmallVectorImpl<int64_t> &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
LogicalResult
mlir::convertFromAttribute(SmallVectorImpl<int32_t> &storage, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
Attribute mlir::convertToAttribute(MLIRContext *ctx,
ArrayRef<int64_t> storage) { … }