[all-commits] [llvm/llvm-project] 5d075b: [MLIR][SPIRVToLLVM] SPIR-V types size in bytes fun...

George Mitenkov via All-commits all-commits at lists.llvm.org
Thu Jul 9 07:45:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d075beae73f3d9570230c0780e74dc32dda39a9
      https://github.com/llvm/llvm-project/commit/5d075beae73f3d9570230c0780e74dc32dda39a9
  Author: George Mitenkov <georgemitenk0v at gmail.com>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h
    M mlir/lib/Dialect/SPIRV/SPIRVTypes.cpp

  Log Message:
  -----------
  [MLIR][SPIRVToLLVM] SPIR-V types size in bytes function

Added `getSizeInBytes()` function as a class member to several SPIR-V types:
`ScalarType`, `ArrayType` and `VectorType`. This function aims at exposing
the functionality of `getTypeNumBytes()` from `SPIRVLowering.cpp`. Support
of more types will be added on demand.

Reviewed By: antiagainst

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




More information about the All-commits mailing list