llvm-project/mlir/test/Conversion/StandardToLLVM
Manuel Freiberger 22954a0e40 Add integer bit-shift operations to the standard dialect.
Rename the 'shlis' operation in the standard dialect to 'shift_left'. Add tests
for this operation (these have been missing so far) and add a lowering to the
'shl' operation in the LLVM dialect.

Add also 'shift_right_signed' (lowered to LLVM's 'ashr') and 'shift_right_unsigned'
(lowered to 'lshr').

The original plan was to name these operations 'shift.left', 'shift.right.signed'
and 'shift.right.unsigned'. This works if the operations are prefixed with 'std.'
in MLIR assembly. Unfortunately during import the short form is ambigous with
operations from a hypothetical 'shift' dialect. The best solution seems to omit
dots in standard operations for now.

Closes tensorflow/mlir#226

PiperOrigin-RevId: 286803388
2019-12-22 10:02:13 -08:00
..
convert-argattrs.mlir Change conversion CLI flag from -lower-to-llvm to -convert-std-to-llvm 2019-11-19 00:34:51 -08:00
convert-funcs.mlir Make memref promotion during std->LLVM lowering the default calling convention 2019-12-16 05:17:14 -08:00
convert-memref-ops.mlir Introduce prefetch op: affine -> std -> llvm intrinsic 2019-12-18 10:00:04 -08:00
convert-to-llvmir.mlir Add integer bit-shift operations to the standard dialect. 2019-12-22 10:02:13 -08:00
standard-to-llvm.mlir Minor spelling tweaks 2019-12-09 09:23:48 -08:00