MLIR  20.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)
 
template<typename DenseArrayTy , typename T >
LogicalResult convertDenseArrayFromAttr (SmallVectorImpl< T > &storage, Attribute attr, function_ref< InFlightDiagnostic()> emitError, StringRef denseArrayTyStr)
 

Function Documentation

◆ convertDenseArrayFromAttr() [1/2]

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

Definition at line 82 of file ODSSupport.cpp.

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

◆ convertDenseArrayFromAttr() [2/2]

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

Definition at line 113 of file ODSSupport.cpp.

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