Add gpu.shuffle op.
authorChristian Sigg <csigg@google.com>
Fri, 20 Dec 2019 10:52:21 +0000 (02:52 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 20 Dec 2019 10:52:52 +0000 (02:52 -0800)
commit42d46b4efa9d7b596c74c101a777f4464a8f1fd0
tree1329db2e71549b610e2eb121528ea8b3284411e7
parent7811ad3c2b312fb5eda5ed5f3a1d15b8e6085b24
Add gpu.shuffle op.

This will allow us to lower most of gpu.all_reduce (when all_reduce
doesn't exist in the target dialect) within the GPU dialect, and only do
target-specific lowering for the shuffle op.

PiperOrigin-RevId: 286548256
mlir/include/mlir/Dialect/GPU/GPUDialect.h
mlir/include/mlir/Dialect/GPU/GPUOps.td
mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
mlir/test/Dialect/GPU/invalid.mlir
mlir/test/Dialect/GPU/ops.mlir
mlir/test/mlir-cuda-runner/shuffle.mlir [new file with mode: 0644]