llvm-project/mlir/lib
HazemAbdelhafez 02022ff2e3 [mlir][spirv] Enhance AccessChainOp index type handling
This patch extends the AccessChainOp index type handling to be able to deal with
all Integer type indices (i.e., all bit-widths and signedness symantics).

There were two ways of achieving this:
1- Backward compatible: The new way of handling the indices will assume that
   an index type is i32 by default if not specified in the assembly format,
   this way all the old tests would pass correctly.
2- Enforce the format: This unifies the spv.AccessChain Op format and all the old
   tests had to be updated to reflect this change or else they fail.

I picked option-2 to unify the Op format and avoid having optional index-type fields
that can lead to somewhat confusing tests format and multiple representations for
the same Op with undocumented assumption that an index is i32 unless stated.
Nonetheless, reverting to option-1 should be straightforward if preferred or needed.

Differential Revision: https://reviews.llvm.org/D81763
2020-06-22 10:11:33 -04:00
..
Analysis [MLIR] Fix memref region compute for 0-d memref accesses 2020-06-16 13:59:53 +05:30
Conversion [mlir] make the bitwidth of device side index computations configurable 2020-06-22 11:43:37 +02:00
Dialect [mlir][spirv] Enhance AccessChainOp index type handling 2020-06-22 10:11:33 -04:00
EDSC [mlir] Remove EDSC BlockBuilder, BlockHandle and related functionality 2020-06-19 09:37:44 +02:00
ExecutionEngine [MLIR][NFC] Eliminate .getBlocks() when not needed 2020-06-19 14:16:21 -07:00
IR [mlir] [VectorOps] Improve vector.constant_mask lowering 2020-06-19 10:40:08 -07:00
Interfaces [MLIR][cmake] refactor lib/Interfaces/CMakeLists.txt 2020-05-15 14:37:09 -07:00
Parser [mlir][NFC] Split Parser into several different files. 2020-06-10 17:17:13 -07:00
Pass [MLIR][cmake] don't glob for sources. 2020-05-13 23:21:01 -07:00
Support [MLIR] Fix linkage for libMLIR.so 2020-05-17 13:46:52 -07:00
TableGen [mlir][ods] Look through OpVariable for type constraint 2020-06-18 12:51:51 -07:00
Target [MLIR][NFC] Eliminate .getBlocks() when not needed 2020-06-19 14:16:21 -07:00
Transforms [MLIR][NFC] Eliminate .getBlocks() when not needed 2020-06-19 14:16:21 -07: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