[all-commits] [llvm/llvm-project] 6c69d3: [MLIR][SPIRV] Add initial support for OpSpecConsta...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Tue Dec 8 06:09:24 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c69d3d68e9a4438b47422e49c0f2d69e2b8e1b7
      https://github.com/llvm/llvm-project/commit/6c69d3d68e9a4438b47422e49c0f2d69e2b8e1b7
  Author: ergawy <kareem.ergawy at gmail.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/SPIRVStructureOps.td
    M mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
    M mlir/test/Dialect/SPIRV/structure-ops.mlir

  Log Message:
  -----------
  [MLIR][SPIRV] Add initial support for OpSpecConstantOp.

This commit adds initial support for SPIR-V OpSpecConstantOp
instruction. The following is introdcued:

- A new `spv.specConstantOperation` operation consisting of a single
region and of 2 operations within that regions (more details in the
docs of the op itself).
- A new `spv.yield` instruction that acts a terminator for
`spv.specConstantOperation`.

For now, the generic form of the new op is supported (i.e. no custom
parsing or printing). This will be done in a follow up patch.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D92232




More information about the All-commits mailing list