llvm-project/mlir/lib
Lei Zhang 4ba45a778a [mlir][StandardToSPIRV] Fix conversion for signed remainder
Per the Vulkan's SPIR-V environment spec, "for the OpSRem and OpSMod
instructions, if either operand is negative the result is undefined."
So we cannot directly use spv.SRem/spv.SMod if either operand can be
negative. Emulate it via spv.UMod.

Because the emulation uses spv.SNegate, this commit also defines
spv.SNegate.

Differential Revision: https://reviews.llvm.org/D83679
2020-07-13 16:15:31 -04:00
..
Analysis [MLIR] IR changes to add yield semantics for affine.if and affine.parallel 2020-07-09 12:12:42 -07:00
Bindings Initial boiler-plate for python bindings. 2020-07-09 12:03:58 -07:00
Conversion [mlir][StandardToSPIRV] Fix conversion for signed remainder 2020-07-13 16:15:31 -04:00
Dialect [mlir][StandardToSPIRV] Fix conversion for signed remainder 2020-07-13 16:15:31 -04:00
EDSC [mlir] Remove EDSC BlockBuilder, BlockHandle and related functionality 2020-06-19 09:37:44 +02:00
ExecutionEngine [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
IR Fix some memory leak in MLIRContext with respect to registered types/attributes interfaces 2020-07-11 20:05:29 +00:00
Interfaces [mlir][Vector] Add a VectorUnrollInterface and expose UnrollVectorPattern. 2020-07-06 08:09:06 -04:00
Parser Fix one memory leak in the MLIRParser by using std::unique_ptr to hold the new block pointer 2020-07-11 20:05:37 +00:00
Pass [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
Reducer Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00
Support [MLIR] Fix linkage for libMLIR.so 2020-05-17 13:46:52 -07:00
TableGen [mlir][ODS] Add support for specifying the namespace of an interface. 2020-07-12 14:18:32 -07:00
Target [mlir] Convert function signatures before converting globals 2020-07-07 10:40:02 -07:00
Transforms DomTree: remove explicit use of DomTreeNodeBase::iterator 2020-07-08 18:18:49 +02:00
Translation [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
CMakeLists.txt Initial boiler-plate for python bindings. 2020-07-09 12:03:58 -07:00