HomePhabricator

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

Authored by ftynse on Mon, Feb 3, 4:49 AM.

Description

[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.

Details

Committed
ftynseMon, Feb 3, 4:50 AM
Parents
rG0ce57731da9b: [clang] Add a missing change of bdbdf748225525bb18cd0ffeb51c3e713f7b8e1b, fix…
Branches
Unknown
Tags
Unknown