[all-commits] [llvm/llvm-project] a40767: [MLIR][SPIRV] Add (de-)serialization support for S...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Sun Jan 10 23:04:17 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a40767ec8851b997e4dcc9987078bd02670f8c7f
      https://github.com/llvm/llvm-project/commit/a40767ec8851b997e4dcc9987078bd02670f8c7f
  Author: ergawy <kareem.ergawy at gmail.com>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
    M mlir/lib/Target/SPIRV/Deserialization.cpp
    M mlir/lib/Target/SPIRV/Serialization.cpp
    M mlir/test/Dialect/SPIRV/IR/structure-ops.mlir
    M mlir/test/Target/SPIRV/spec-constant.mlir

  Log Message:
  -----------
  [MLIR][SPIRV] Add (de-)serialization support for SpecConstantOpeation.

This commit adds support for (de-)serializing SpecConstantOpeation. One
thing worth noting is that during deserialization, we assign a fake ID to
enclosed ops inside SpecConstantOpeation. We need to do this in order
for deserialization logic to properly update ID to value map and to
later reference the created value from the sibling 'spv::YieldOp'.

Reviewed By: antiagainst

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




More information about the All-commits mailing list