[all-commits] [llvm/llvm-project] ed114b: [MLIR][LLVM] Copy byval attributes during inlining.

Johannes de Fine Licht via All-commits all-commits at lists.llvm.org
Wed Mar 22 07:39:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed114b6ffc953ac2c648f64287c44456a7d19d0c
      https://github.com/llvm/llvm-project/commit/ed114b6ffc953ac2c648f64287c44456a7d19d0c
  Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/inlining.mlir

  Log Message:
  -----------
  [MLIR][LLVM] Copy byval attributes during inlining.

Support inlining of function calls with the byval attribute on function
arguments by copying the pointee into a newly alloca'ed pointer at the
callsite before inlining.

The alignment attribute is not yet taken into account.

Reviewed By: ftynse, gysit

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




More information about the All-commits mailing list