[all-commits] [llvm/llvm-project] a938f3: [mlir] Fix bitwidth of memref-to-llvm constant.

Tobias Gysi via All-commits all-commits at lists.llvm.org
Wed Oct 12 07:17:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a938f3a9b58d1f7ccd2fc17c0935c12f94d41695
      https://github.com/llvm/llvm-project/commit/a938f3a9b58d1f7ccd2fc17c0935c12f94d41695
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir

  Log Message:
  -----------
  [mlir] Fix bitwidth of memref-to-llvm constant.

One constant generated in MemRefToLLVM had a hardcoded bitwidth of
64 bits. The fix uses the typeConverter to create a constant that
matches the bitwidth of the provided by the data layout. The issue was
detected in an attempt to add a verifier to the LLVM ICmp operation that
checks that the types of the compared arguments match.

Reviewed By: ftynse

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




More information about the All-commits mailing list