[all-commits] [llvm/llvm-project] a048d7: [MLIR][LLVM] Only disallow inlining for selected f...

definelicht via All-commits all-commits at lists.llvm.org
Fri Feb 17 00:19:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a048d7394be54008d0f69506cefa359cfc6117a2
      https://github.com/llvm/llvm-project/commit/a048d7394be54008d0f69506cefa359cfc6117a2
  Author: Johannes de Fine Licht <johannes.definelicht at nextsilicon.com>
  Date:   2023-02-17 (Fri, 17 Feb 2023)

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

  Log Message:
  -----------
  [MLIR][LLVM] Only disallow inlining for selected function attributes.

This loosens the requirement of no passthrough function attribute being
present to checking for specific attributes that prevent inlining. Since
these attributes are no longer strictly passthrough, they should
eventually be upgraded to some form of addressable attributes.

Drops the expensive StringSwitches over call and function attributes in
favor of selectively disallowing attributes that prevent inlining
(similiar to the LLVM inliner), thereby moving to a less conservative
approach.

Reviewed By: gysit

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




More information about the All-commits mailing list