[all-commits] [llvm/llvm-project] b23c82: [mlir][NFC] Clean up builder usage around constant...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Fri Jun 30 05:01:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b23c8225e8f914d9b0fe987c443eb19fca05344e
https://github.com/llvm/llvm-project/commit/b23c8225e8f914d9b0fe987c443eb19fca05344e
Author: Matthias Springer <me at m-sp.org>
Date: 2023-06-30 (Fri, 30 Jun 2023)
Changed paths:
M mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
M mlir/lib/Conversion/BufferizationToMemRef/BufferizationToMemRef.cpp
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
M mlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp
M mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
M mlir/lib/Dialect/MemRef/Transforms/ResolveShapedTypeResultDims.cpp
Log Message:
-----------
[mlir][NFC] Clean up builder usage around constants/non-foldable ops
* Use `create` instead of `createOrFold` for constant ops. Constants cannot be folded any further.
* Use `create` instead of `createOrFold` for ops that do not have a folder.
* Use C++ op builders that take an `int` instead of creating a `ConstantIndexOp`.
* Create `tensor::DimOp` instead of `linalg::createOrFoldDimOp` when it is certain that the operand is a tensor.
Differential Revision: https://reviews.llvm.org/D154196
More information about the All-commits
mailing list