[all-commits] [llvm/llvm-project] e0ea70: [mlir] ConvertStandardToLLVM: do not rely on comma...

ftynse via All-commits all-commits at lists.llvm.org
Mon Feb 3 04:50:51 PST 2020

  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e0ea706a59b9032b7f3590478080adf4f3e1486a
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-02-03 (Mon, 03 Feb 2020)

  Changed paths:
    M mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h
    M mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp

  Log Message:
  [mlir] ConvertStandardToLLVM: do not rely on command line options internally

The patterns for converting `std.alloc` and `std.dealoc` can be configured to
use `llvm.alloca` instead of calling `malloc` and `free`. This configuration
has been only possible through a command-line flag, despite the presence of a
(misleading) parameter in the pass constructor. Use the parameter instead and
only initalize it from the command line flags if the pass is constructed from
the mlir-opt registration.

More information about the All-commits mailing list