[all-commits] [llvm/llvm-project] a1ba1f: [mlir][emitc] Simplify inlining logic (NFCI) (#169...

Gil Rapaport via All-commits all-commits at lists.llvm.org
Sun Dec 7 00:54:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1ba1fa5788c4cc0e72b7af6a555eb046510e86c
      https://github.com/llvm/llvm-project/commit/a1ba1fa5788c4cc0e72b7af6a555eb046510e86c
  Author: Gil Rapaport <gil.rapaport at mobileye.com>
  Date:   2025-12-07 (Sun, 07 Dec 2025)

  Changed paths:
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp

  Log Message:
  -----------
  [mlir][emitc] Simplify inlining logic (NFCI) (#169978)

This change makes inlining logic in the translator simpler and more
consistent by

(a) Extending the inlining concept to include CExpression ops, which by
    definition are inlined if and only if they reside within an
    ExpressionOp.

(b) Concentraing all inlining decisions in `shouldBeInlined()` to make
    sure that ops get the same decision when queried as operations and
    as operands.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list