[all-commits] [llvm/llvm-project] 5b569e: [mlir] Add `Block::eraseArguments` that erases a s...
Jeff Niu via All-commits
all-commits at lists.llvm.org
Mon Aug 29 15:34:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5b569ed2cdfb42fcca90f637fc586d7c36834d43
https://github.com/llvm/llvm-project/commit/5b569ed2cdfb42fcca90f637fc586d7c36834d43
Author: Jeff Niu <jeff at modular.com>
Date: 2022-08-29 (Mon, 29 Aug 2022)
Changed paths:
M mlir/include/mlir/IR/Block.h
M mlir/lib/Conversion/TosaToSCF/TosaToSCF.cpp
M mlir/lib/Dialect/Affine/Utils/Utils.cpp
M mlir/lib/Dialect/SCF/Transforms/ParallelLoopTiling.cpp
M mlir/lib/IR/Block.cpp
Log Message:
-----------
[mlir] Add `Block::eraseArguments` that erases a subrange
This patch adds a an `eraseArguments` function that erases a subrange of
a block's arguments. This can be used inplace of the terrible pattern
```
block->eraseArguments(llvm::to_vector(llvm::seq(...)));
```
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D132890
More information about the All-commits
mailing list