GPU dialect: introduce custom syntax for gpu.launch
authorAlex Zinenko <zinenko@google.com>
Mon, 6 May 2019 09:30:50 +0000 (02:30 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:29:57 +0000 (08:29 -0700)
commitb7b75cf74cb07897e9d3148af66a6d26f00409cd
tree7c12dcea22447d8c28b3164f547ecab0c65e6bdb
parentd3380a504fed2f521becb2ccbab81e70e53ceb65
GPU dialect: introduce custom syntax for gpu.launch

    This syntax removes boilerplate and verbose list of region arguments in the
    header of the entry block.  It groups operands into segments related to GPU
    blocks, GPU threads as well as the operands that are forwarded to the kernel.
    The two former segments are also used to give names to the region arguments
    that are used for GPU blocks and threads inside the kernel body region.

--

PiperOrigin-RevId: 246792329
mlir/g3doc/Dialects/GPU.md
mlir/include/mlir/GPU/GPUDialect.h
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/GPU/IR/GPUDialect.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/GPU/ops.mlir