[all-commits] [llvm/llvm-project] 5b02a4: [mlir][MemRef] Fix MemRefCastOpLowering for 32 bit...

Adrian Kuegel via All-commits all-commits at lists.llvm.org
Fri Feb 11 03:37:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b02a480858f9c49f5bab74b06403af2fc6fad1b
      https://github.com/llvm/llvm-project/commit/5b02a480858f9c49f5bab74b06403af2fc6fad1b
  Author: Adrian Kuegel <akuegel at google.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Conversion/StandardToLLVM/calling-convention.mlir

  Log Message:
  -----------
  [mlir][MemRef] Fix MemRefCastOpLowering for 32 bit index type.

The lowering creates llvm.insertvalue with the rank value, so it needs to use
index type instead of 64 bit integer type. Otherwise, we get an error:

llvm.insertvalue' op Type mismatch: cannot insert 'i64' into '!llvm.struct<(i32, ptr<i8>)>'

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




More information about the All-commits mailing list