[all-commits] [llvm/llvm-project] 1e4cfe: [mlir][SPIRVToLLVM] Propagate location attribute f...

Weiwei via All-commits all-commits at lists.llvm.org
Mon Oct 4 09:15:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e4cfe5e4f21a0667cab4baecb65e3ea791ee695
      https://github.com/llvm/llvm-project/commit/1e4cfe5e4f21a0667cab4baecb65e3ea791ee695
  Author: Weiwei Li <weiwei.li1 at huawei.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVStructureOps.td
    M mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
    M mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
    M mlir/test/Conversion/SPIRVToLLVM/memory-ops-to-llvm.mlir
    M mlir/test/Target/SPIRV/decorations.mlir

  Log Message:
  -----------
  [mlir][SPIRVToLLVM] Propagate location attribute from spv.GlobalVariable to llvm.mlir.global

This patch is mainly to propogate location attribute from spv.GlobalVariable to llvm.mlir.global.

It also contains three small changes.

1. Remove the restriction on UniformConstant In SPIRVToLLVM.cpp;
2. Remove the errorCheck on relaxedPrecision when deserializering SPIR-V in Deserializer.cpp
3. In SPIRVOps.cpp, let ConstantOp take signedInteger too.

Co-authered: Alan Liu <alanliu.yf at gmail.com> and Xinyi Liu <xyliuhelen at gmail.com>

Reviewed by:antiagainst

Differential revision: https://reviews.llvm.org/D110207




More information about the All-commits mailing list