MLIR
18.0.0git
|
#include "mlir/Dialect/DLTI/DLTI.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/DialectImplementation.h"
#include "llvm/ADT/TypeSwitch.h"
#include "mlir/Dialect/DLTI/DLTIDialect.cpp.inc"
Go to the source code of this file.
Classes | |
class | mlir::impl::DataLayoutEntryStorage |
class | mlir::impl::DataLayoutSpecStorage |
Namespaces | |
mlir | |
This header declares functions that assist transformations in the MemRef dialect. | |
mlir::impl | |
Attribute collections provide a dictionary-like interface. | |
Functions | |
static void | overwriteDuplicateEntries (SmallVectorImpl< DataLayoutEntryInterface > &oldEntries, ArrayRef< DataLayoutEntryInterface > newEntries) |
Given a list of old and a list of new entries, overwrites old entries with new ones if they have matching keys, appends new entries to the old entry list otherwise. More... | |
static LogicalResult | combineOneSpec (DataLayoutSpecInterface spec, DenseMap< TypeID, DataLayoutEntryList > &entriesForType, DenseMap< StringAttr, DataLayoutEntryInterface > &entriesForID) |
Combines a data layout spec into the given lists of entries organized by type class and identifier, overwriting them if necessary. More... | |
|
static |
Combines a data layout spec into the given lists of entries organized by type class and identifier, overwriting them if necessary.
Fails to combine if the two entries with identical keys are not compatible.
Definition at line 195 of file DLTI.cpp.
References mlir::DataLayoutDialectInterface::defaultCombine(), mlir::failure(), mlir::Type::getContext(), mlir::Type::getDialect(), mlir::MLIRContext::getLoadedDialect(), overwriteDuplicateEntries(), and mlir::success().
Referenced by mlir::DataLayoutSpecAttr::combineWith().
|
static |
Given a list of old and a list of new entries, overwrites old entries with new ones if they have matching keys, appends new entries to the old entry list otherwise.
Definition at line 170 of file DLTI.cpp.
Referenced by combineOneSpec().