[all-commits] [llvm/llvm-project] ed5363: [MLIR] Add getBody() method to SingleImplicitBlock...
Alexander Belyaev via All-commits
all-commits at lists.llvm.org
Mon Apr 27 12:49:35 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ed5363a6747b7e7914efa216b82438124587c862
https://github.com/llvm/llvm-project/commit/ed5363a6747b7e7914efa216b82438124587c862
Author: Alexander Belyaev <pifon at google.com>
Date: 2020-04-27 (Mon, 27 Apr 2020)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIROps.td
M mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
M mlir/include/mlir/Dialect/LoopOps/LoopOps.td
M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
M mlir/include/mlir/IR/Builders.h
M mlir/include/mlir/IR/OpDefinition.h
M mlir/lib/Transforms/Utils/LoopUtils.cpp
Log Message:
-----------
[MLIR] Add getBody() method to SingleImplicitBlockTerminator op trait.
Many ops with this trait have `getBody()` and `getBodyBuilder()` methods defined in `extraClassDeclaration` in tablegen. `getBody()` implementation is the same accross all these ops, but `getBodyBuilder()` can return builders with varying insertion points set. In this PR, `getBody()` is moved into `SingleImplicitBlockTerminator` struct and `getBodyBuilder()` is replaced with `OpBuilder::atBlock(End|Terminator)(op.getBody);`.
Differential Revision: https://reviews.llvm.org/D78864
More information about the All-commits
mailing list