llvm-project/mlir/lib
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
..
Analysis NFC: Remove unnecessary 'llvm::' prefix from uses of llvm symbols declared in `mlir` namespace. 2019-12-18 09:29:20 -08:00
Conversion Add integer bit-shift operations to the standard dialect. 2019-12-22 10:02:13 -08:00
Dialect Add integer bit-shift operations to the standard dialect. 2019-12-22 10:02:13 -08:00
EDSC Add integer bit-shift operations to the standard dialect. 2019-12-22 10:02:13 -08:00
ExecutionEngine NFC: Cleanup non-conforming usages of namespaces. 2019-12-18 10:46:48 -08:00
IR Allow dialect to create friendly names for region arguments 2019-12-19 22:16:07 -08:00
Parser Introduce prefetch op: affine -> std -> llvm intrinsic 2019-12-18 10:00:04 -08:00
Pass NFC: Remove unnecessary 'llvm::' prefix from uses of llvm symbols declared in `mlir` namespace. 2019-12-18 09:29:20 -08:00
Quantizer NFC: Cleanup non-conforming usages of namespaces. 2019-12-18 10:46:48 -08:00
Support NFC: Remove unnecessary 'llvm::' prefix from uses of llvm symbols declared in `mlir` namespace. 2019-12-18 09:29:20 -08:00
TableGen Unique trait list during ODS Operator trait construction 2019-12-19 16:44:56 -08:00
Target Detemplatize ModuleTranslation::lookupValues 2019-12-19 11:35:57 -08:00
Transforms Add integer bit-shift operations to the standard dialect. 2019-12-22 10:02:13 -08:00
Translation mlir-translate: support -verify-diagnostics 2019-11-07 11:42:46 -08:00
CMakeLists.txt NFC: Move AffineOps dialect to the Dialect sub-directory. 2019-08-20 15:36:39 -07:00