[all-commits] [llvm/llvm-project] 8304ab: [mlir] Avoid creating local OpBuilders in Standard...

ftynse via All-commits all-commits at lists.llvm.org
Fri Jun 26 06:38:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8304ab5799b4172462877ca7495115c659ec0be0
      https://github.com/llvm/llvm-project/commit/8304ab5799b4172462877ca7495115c659ec0be0
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

  Log Message:
  -----------
  [mlir] Avoid creating local OpBuilders in Standard-to-LLVM conversion

Conversions of allocation-related operations in Standard-to-LLVM need
declarations of "malloc" and "free" (or equivalents). They use locally created
OpBuilders pointed at the module level to declare these functions if necessary.
This is poorly compatible with the pattern infrastructure that is unaware of
new operations being created. Update the insertion point of the main rewriter
instead.

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




More information about the All-commits mailing list