llvm-project/mlir/lib
Nicolas Vasilache 6ed61a26c2 [mlir] Simplify and better document std.view semantics
This [discussion](https://llvm.discourse.group/t/viewop-isnt-expressive-enough/991/2) raised some concerns with ViewOp.

In particular, the handling of offsets is incorrect and does not match the op description.
Note that with an elemental type change, offsets cannot be part of the type in general because sizeof(srcType) != sizeof(dstType).

Howerver, offset is a poorly chosen term for this purpose and is renamed to byte_shift.

Additionally, for all intended purposes, trying to support non-identity layouts for this op does not bring expressive power but rather increases code complexity.

This revision simplifies the existing semantics and implementation.
This simplification effort is voluntarily restrictive and acts as a stepping stone towards supporting richer semantics: treat the non-common cases as YAGNI for now and reevaluate based on concrete use cases once a round of simplification occurred.

Differential revision: https://reviews.llvm.org/D79541
2020-05-11 12:29:23 -04:00
..
Analysis [mlir] NFC: Rename LoopOps dialect to SCF (Structured Control Flow) 2020-05-11 15:04:27 +02:00
Conversion [mlir] Simplify and better document std.view semantics 2020-05-11 12:29:23 -04:00
Dialect [mlir] Simplify and better document std.view semantics 2020-05-11 12:29:23 -04:00
EDSC [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
ExecutionEngine [MLIR] Register JIT event listeners with RTDyldObjectLinkingLayer 2020-05-09 11:17:22 +02:00
IR Add Operation::moveAfter 2020-05-08 22:34:21 +00:00
Interfaces [mlir] Add NamedAttrList 2020-05-07 12:33:36 -07:00
Parser [mlir] Add NamedAttrList 2020-05-07 12:33:36 -07:00
Pass [mlir] Add NamedAttrList 2020-05-07 12:33:36 -07:00
Support [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
TableGen [mlir] Updated SideEffect interface definitions to use tablegen Resource objects. 2020-05-08 09:55:08 +02:00
Target [mlir][rocdl] Fix typo. NFC. 2020-05-07 11:55:47 +02:00
Transforms [mlir] NFC: Rename LoopOps dialect to SCF (Structured Control Flow) 2020-05-11 15:04:27 +02:00
Translation [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
CMakeLists.txt [mlir] Emit errors if global constructors are found within lib/ 2020-04-10 13:04:32 -07:00