getConstantIntValue extracts constant values from all constant-like ops, not just arith::ConstantIndexOp.
Depends On: D154343
Paths
| Differential D154356
[mlir][NFC] Use `getConstantIntValue` instead of casting to `ConstantIndexOp` ClosedPublic Authored by springerm on Jul 3 2023, 8:26 AM.
Details Summary getConstantIntValue extracts constant values from all constant-like ops, not just arith::ConstantIndexOp. Depends On: D154343
Diff Detail
Event Timelinespringerm added a child revision: D154361: [mlir][SCF] Add `loop.promote_if_one_iteration` transform op.Jul 3 2023, 8:51 AM This revision is now accepted and ready to land.Jul 4 2023, 4:36 AM Closed by commit rGcb7bda2ace81: [mlir][NFC] Use `getConstantIntValue` instead of casting to `ConstantIndexOp` (authored by springerm). · Explain WhyJul 4 2023, 5:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 537059 mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
mlir/lib/Dialect/Affine/Analysis/AffineStructures.cpp
mlir/lib/Dialect/Affine/Analysis/Utils.cpp
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
mlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/lib/Dialect/SCF/IR/SCF.cpp
mlir/lib/Dialect/SCF/Utils/Utils.cpp
mlir/lib/Dialect/SparseTensor/IR/CMakeLists.txt
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
|