[all-commits] [llvm/llvm-project] cadb7c: [mlir] SCF: provide function_ref builders for IfOp
ftynse via All-commits
all-commits at lists.llvm.org
Wed May 27 07:13:19 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: cadb7ccf2cebcaa2d546db77223bde3d69a162af
https://github.com/llvm/llvm-project/commit/cadb7ccf2cebcaa2d546db77223bde3d69a162af
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-05-27 (Wed, 27 May 2020)
Changed paths:
M mlir/include/mlir/Dialect/SCF/EDSC/Builders.h
M mlir/include/mlir/Dialect/SCF/SCF.h
M mlir/include/mlir/Dialect/SCF/SCFOps.td
M mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
M mlir/lib/Dialect/SCF/EDSC/Builders.cpp
M mlir/lib/Dialect/SCF/SCF.cpp
Log Message:
-----------
[mlir] SCF: provide function_ref builders for IfOp
Now that OpBuilder is available in `build` functions, it becomes possible to
populate the "then" and "else" regions directly when building the "if"
operation. This is desirable in more structured forms of builders, especially
in when conditionals are mixed with loops. Provide new `build` APIs taking
callbacks for body constructors, similarly to scf::ForOp, and replace more
clunky edsc::BlockBuilder uses with these. The original APIs remain available
and go through the new implementation.
Differential Revision: https://reviews.llvm.org/D80527
More information about the All-commits
mailing list