forked from OSchip/llvm-project
3ba14fa0ce
Data layout information allows to answer questions about the size and alignment properties of a type. It enables, among others, the generation of various linear memory addressing schemes for containers of abstract types and deeper reasoning about vectors. This introduces the subsystem for modeling data layouts in MLIR. The data layout subsystem is designed to scale to MLIR's open type and operation system. At the top level, it consists of attribute interfaces that can be implemented by concrete data layout specifications; type interfaces that should be implemented by types subject to data layout; operation interfaces that must be implemented by operations that can serve as data layout scopes (e.g., modules); and dialect interfaces for data layout properties unrelated to specific types. Built-in types are handled specially to decrease the overall query cost. A concrete default implementation of these interfaces is provided in the new Target dialect. Defaults for built-in types that match the current behavior are also provided. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D97067 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CallInterfaces.cpp | ||
CastInterfaces.cpp | ||
ControlFlowInterfaces.cpp | ||
CopyOpInterface.cpp | ||
DataLayoutInterfaces.cpp | ||
DerivedAttributeOpInterface.cpp | ||
InferTypeOpInterface.cpp | ||
LoopLikeInterface.cpp | ||
SideEffectInterfaces.cpp | ||
VectorInterfaces.cpp | ||
ViewLikeInterface.cpp |