MLIR  19.0.0git
Functions
ODSSupport.cpp File Reference
#include "mlir/IR/ODSSupport.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Diagnostics.h"

Go to the source code of this file.

Functions

template<typename DenseArrayTy , typename T >
LogicalResult convertDenseArrayFromAttr (MutableArrayRef< T > storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError, StringRef denseArrayTyStr)
 

Function Documentation

◆ convertDenseArrayFromAttr()

template<typename DenseArrayTy , typename T >
LogicalResult convertDenseArrayFromAttr ( MutableArrayRef< T >  storage,
Attribute  attr,
function_ref< InFlightDiagnostic()>  emitError,
StringRef  denseArrayTyStr 
)

Definition at line 38 of file ODSSupport.cpp.

References copy(), mlir::emitError(), mlir::failure(), and mlir::success().