[all-commits] [llvm/llvm-project] a85bd1: [mlir][FuncToLLVM] Add option for emitting opaque ...

zero9178 via All-commits all-commits at lists.llvm.org
Thu Feb 9 03:12:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a85bd1b11934fc707e7d36a04a92b7ac4e45d35b
      https://github.com/llvm/llvm-project/commit/a85bd1b11934fc707e7d36a04a92b7ac4e45d35b
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
    M mlir/lib/Conversion/LLVMCommon/Pattern.cpp
    M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
    M mlir/test/Conversion/FuncToLLVM/calling-convention.mlir
    M mlir/test/Conversion/FuncToLLVM/convert-argattrs.mlir
    M mlir/test/Conversion/FuncToLLVM/convert-data-layout.mlir
    M mlir/test/Conversion/FuncToLLVM/convert-funcs.mlir
    A mlir/test/Conversion/FuncToLLVM/convert-types-typed-pointers.mlir
    R mlir/test/Conversion/FuncToLLVM/convert-types.mlir
    M mlir/test/Conversion/FuncToLLVM/emit-c-wrappers-for-external-callers.mlir
    M mlir/test/Conversion/FuncToLLVM/emit-c-wrappers-for-external-functions.mlir
    M mlir/test/Conversion/FuncToLLVM/func-memref-return.mlir
    M mlir/test/Conversion/FuncToLLVM/func-memref.mlir
    M mlir/test/Conversion/FuncToLLVM/func-to-llvm.mlir
    M mlir/test/Conversion/FuncToLLVM/invalid.mlir
    A mlir/test/Conversion/FuncToLLVM/typed-pointers.mlir
    M mlir/test/lib/Conversion/FuncToLLVM/TestConvertCallOp.cpp

  Log Message:
  -----------
  [mlir][FuncToLLVM] Add option for emitting opaque pointers

Part of https://discourse.llvm.org/t/rfc-switching-the-llvm-dialect-and-dialect-lowerings-to-opaque-pointers/68179

FuncToLLVM contains some logic working with Memrefs and their lowerings and in the process creating pointer types, loads and allocas. This patch ports the code of these to be compatible with opaque pointers and adds a pass option to enable the use of opaque pointers within the pass.

For the migration effort, the tests have been rewritten to use opaque pointers with dedicated test files for typed pointer support

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




More information about the All-commits mailing list